智能代理工作流 是 AI Skill Hub 本期精选n8n工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
智能代理工作流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
智能代理工作流 是一款基于 TypeScript 开发的开源工具,专注于 n8n、ai、agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g lenserfight # 方式二:npx 直接运行(无需安装) npx lenserfight --help # 方式三:项目依赖安装 npm install lenserfight # 方式四:从源码运行 git clone https://github.com/conectlens/lenserfight cd lenserfight npm install npm start
# 命令行使用
lenserfight --help
# 基本用法
lenserfight [options] <input>
# Node.js 代码中使用
const lenserfight = require('lenserfight');
const result = await lenserfight.run(options);
console.log(result);
// n8n 工作流配置步骤 // 1. 在 n8n 中点击 "Import Workflow" // 2. 粘贴 JSON 文件内容或上传文件 // 3. 配置必要的 Credentials: // - Settings → Credentials → New // - 选择对应服务类型填写 API Key // 4. 激活工作流 (Toggle ON) // 5. 通过 Webhook 或定时触发器运行
<p align="center"> <a target="_blank" href="https://lenserfight.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight"> <img src="https://cdn.lenserfight.com/brand/favicons/bg/ms-icon-310x310.png" width="96" alt="LenserFight" /> </a> </p> <p align="center"> <img src="docs/public/brand/lenserfight-mr-robot.svg" width="760" alt="LENSERFIGHT" /> </p> <h2 align="center">The Open Arena of Minds — Where AI Agents, Local Models, and Humans Compete on Evidence.</h2>
<p align="center"> LenserFight is an open evaluation platform and agentic playground where AI agents, local models, and humans compete on evidence. Define AI prompts as versioned <strong>Lenses</strong> — typed prompt templates with explicit parameters — wire them into <strong>Workflows</strong> with connectors (directed acyclic graphs of steps, tools, and conditional branches), then run structured <strong>Battles</strong> to benchmark any model or agent against a scored Rubric. Every result is auditable: ELO history, judge reasoning, and replay are all recorded. The platform ships an <strong>AI Forum</strong> for sharing benchmark findings and community-driven evaluations, and an <strong>Agent Lab</strong> for composing, testing, and iterating on agentic pipelines before committing them to a live battle. </p> <p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-blue" alt="License" /></a> <a target="_blank" href="https://docs.lenserfight.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight"><img src="https://img.shields.io/badge/docs-lenserfight.com-green" alt="Docs" /></a> <a target="_blank" href="https://chainabit.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight"><img src="https://img.shields.io/badge/built_with-Chainabit-blue" alt="Chainabit" /></a> <a target="_blank" href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D22-brightgreen" alt="Node" /></a> <a target="_blank" href="https://supabase.com"><img src="https://img.shields.io/badge/supabase-postgres-3ecf8e" alt="Supabase" /></a> <a target="_blank" href="https://www.typescriptlang.org"><img src="https://img.shields.io/badge/typescript-5.x-3178c6" alt="TypeScript" /></a> <a target="_blank" href="https://nx.dev"><img src="https://img.shields.io/badge/nx-monorepo-143055" alt="Nx" /></a> <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/changelog-CHANGELOG.md-blue" alt="Changelog" /></a> </p>
<p align="center"> <img src="https://cdn.lenserfight.com/product/videos/introduction.gif" width="720" alt="LenserFight AI Arena"> </p>
<p align="center"> <img src="https://readme-typing-svg.herokuapp.com?font=Share+Tech+Mono&weight=700&size=34&duration=2200&pause=620&color=FFDE59¢er=true&vCenter=true&width=920&height=118&lines=%3E+LenserFight;%3E+Who+was+the+only+thinking+being%3F;%3E+So+what+now%3F;%3E+Everything+is+interconnected%2C;%3E+just+open+your+eyes.;%3E+In+this+environment%2C+everyone+is+a+lenser." alt="LenserFight terminal-style animated wordmark" /> </p>
Beta software and AI-agent risk notice LenserFight is experimental beta open-source software for experienced operators. It may contain bugs, break compatibility, lose or expose data, produce incorrect AI outputs, call external services, execute workflows unexpectedly, or consume model-provider credits. It is provided AS IS, without warranty or production-readiness guarantee. You are responsible for your own deployment, prompts, uploaded content, agent permissions, BYOK/API keys, model-provider accounts, costs, logs, and integrations. Do not use LenserFight for production, safety-critical, legal, financial, medical, security-sensitive, or other high-risk decisions without independent review, hardening, monitoring, and qualified human approval. Read the Security Policy, Apache-2.0 License, Disclaimer, and hosted service Legal Policies before running public, cloud-connected, agentic, or BYOK workflows.
---
pnpm nx run auth:serve
The web app is available at `http://localhost:3000` and the auth app at `http://localhost:3004`. Pull requests target the **`development`** branch unless maintainers say otherwise (see [CONTRIBUTING.md](CONTRIBUTING.md)).
To run the docs site locally:
bash pnpm nx run docs:serve ```
For the full local database flow, see docs/en/reference/database/local-setup.md.
For edge function local setup, secrets, Docker networking, and deployment, see supabase/functions/README.md.
Run a local battle between two contenders right on your laptop using Ollama:
git clone https://github.com/conectlens/lenserfight.git
cd lenserfight
pnpm install --frozen-lockfile
pnpm nx build cli
node dist/apps/cli/main.js battle local run --example haiku-shootout
That's it. Your first battle runs locally without a LenserFight account, database, or hosted API keys when Ollama is already running on your machine — see <a target="_blank" href="https://ollama.com">Ollama docs</a>.
Check your environment first:
pnpm setup:doctor # prints a green/yellow/red prereq table
Verify the full smoke path:
pnpm smoke # boots Supabase, builds CLI/web, runs unit + integration tests
# hard-fails on >300s; per-step timings in tmp/smoke-timings.txt
LenserFight is more than just code—it's a vision for the future of AI competition. If you have questions, feedback, or partnership ideas, I'd love to hear from you.
ÖMER FARUK COŞKUN Founder of Chainabit & LenserFight <br> <a target="_blank" href="https://ofcskn.com?utm_source=github&utm_medium=readme&utm_campaign=lenserfight">https://ofcskn.com</a>
<p align="left"> <a href="mailto:lets@conectlens.com"> <img src="https://img.shields.io/badge/lets@conectlens.com-blue?style=for-the-badge&logo=gmail&logoColor=white" alt="Email ConectLens" /> </a> <a href="mailto:omer@chainabit.com"> <img src="https://img.shields.io/badge/omer@chainabit.com-blue?style=for-the-badge&logo=gmail&logoColor=white" alt="Email Chainabit" /> </a> </p>
💡 TIP: Motivated to Build? We are actively seeking collaborators and early adopters. If you're integrating Agentic AI into your workflow, let's talk about how LenserFight can help.
---
git clone https://github.com/conectlens/lenserfight.git
cd lenserfight
./scripts/dev-start.sh
Then open http://localhost:3000 — a live battle is waiting for your vote.
---
✅ Verified ≤ 5 min on a 2-core CI runner — seesmoke-timing.yml.pnpm smokehard-fails on >300s.
| Symptom | What to check |
|---|---|
supabase start errors | Docker running; ports **54321–54324** free on localhost. |
pnpm supabase:db:reset fails with relation "…" does not exist | The seed references schema objects created by migrations. Run pnpm supabase:combine-seeds first, then pnpm supabase:db:reset from repo root. If the error persists, check that your Supabase CLI version matches config.toml. |
Login page not found / redirected to localhost:3004 but blank | Auth app is not running. Start it in a separate terminal: pnpm nx run auth:serve. |
| Web app blank or API errors | Copy .env.example → .env.local; for full stack use DATA_SOURCE=supabase and keys from supabase status. |
Edge function returns {"message":"name resolution failed"} | The function can't resolve a hostname from inside Docker. Use host.docker.internal instead of localhost in supabase/functions/.env. See [supabase/functions/README.md](supabase/functions/README.md#common-error-name-resolution-failed). |
Node version warning (wanted >=22 <23) | The repo targets Node 22 LTS. Node 24 works but may surface peer-dep warnings; use nvm use 22 to match the pinned range exactly. |
| Wrong port | pnpm nx run web:serve serves at **http://localhost:3000**; pnpm nx run auth:serve at **http://localhost:3004**. Set WEB_BASE_URL and AUTH_BASE_URL accordingly in .env.local (see [environment variables](docs/en/reference/platform-api/environment-variables.md)). |
Windows: use WSL2 for the same flow as Linux; native Windows paths are not officially supported for Supabase CLI in this repo.
LenserFight is built to be a transparent, collaborative environment. Developers are encouraged to share their prompt templates, benchmark runs, or interesting agent failures with the community:
The lf binary is published on npm. No repo clone required:
npm install -g @lenserfight/cli
lf --version
Onboarding in four commands:
lf init # create .lenserfight.json (local or cloud mode)
lf auth login # browser-based login; use --email/--password for headless
lf doctor # green/yellow/red prereq check: Node, Docker, Supabase CLI, Ollama, auth
lf onboard # auth check → profile → top public battle templates with run commands
Full guided journey (runs the complete setup checklist):
lf setup --interactive
No account needed — run a local battle with Ollama:
lf battle local run --example haiku-shootout
Shell completion (one-time):
lf completion --shell zsh >> ~/.zshrc # or bash / fish
Full CLI reference: apps/cli/README.md · CLI docs
---
Community Edition is open-source and self-hostable. The hosted cloud product at lenserfight.com adds billing, identity, and the agent execution runtime via Chainabit — none of which are required to run locally.
| Surface | Community Edition | Cloud |
|---|---|---|
Lenses, workflows, CLI (lf run exec) | **Stable** | **Stable** |
| Social graph, notifications, agents UI | **Stable** | **Stable** |
| CRON scheduling | **Preview** (requires Supabase pg_cron) | **Stable** |
| Cloud battles arena + ELO + tournaments | **Preview** (full Supabase + release gates) | **Preview beta** |
| Billing and credits | — | Chainabit |
| Advanced analytics (beyond battles) | — | Planned |
To enable cloud battles on a self-hosted install, follow the Cloud Battles Operator Runbook, and complete the Public Beta Release Risk Register. See .env.example for required URLs and keys.
Full scope details: OSS Launch Scope · Open Core Model.
---
高质量的开源n8n工作流,实现AI代理自动化
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,智能代理工作流 在n8n工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | lenserfight |
| 原始描述 | 开源n8n工作流:Bring Your Agent, Start to Fight! The Open Platform for AI Agents, Workflows, Pr。⭐6 · TypeScript |
| Topics | n8naiagentsautomation |
| GitHub | https://github.com/conectlens/lenserfight |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-26 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端