能力标签
Franklin Agent工作流
🛠
AI工具

Franklin Agent工作流

基于 TypeScript · 开源 AI 工具,GitHub 社区精选
英文名:Franklin
⭐ 626 Stars 🍴 43 Forks 💻 TypeScript 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
AI代理加密钱包自主智能体USDC支付工作流自动化
✦ AI Skill Hub 推荐

Franklin Agent工作流 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

Franklin Agent工作流 是一款基于 TypeScript 的开源工具,在 GitHub 上收获 1k+ Star,是AI代理、加密钱包、自主智能体、USDC支付领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
Franklin Agent工作流 依赖 TypeScript 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 TypeScript 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 Franklin Agent工作流 的版本更新,及时通知重要功能变化。

📋 工具概览

Franklin Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 AI代理、加密钱包、自主智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 626
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
正常维护,社区驱动
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
AI工具
Forks
43

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Franklin Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 AI代理、加密钱包、自主智能体 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g franklin

# 方式二:npx 直接运行(无需安装)
npx franklin --help

# 方式三:项目依赖安装
npm install franklin

# 方式四:从源码运行
git clone https://github.com/BlockRunAI/Franklin
cd Franklin
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
franklin --help

# 基本用法
franklin [options] <input>

# Node.js 代码中使用
const franklin = require('franklin');

const result = await franklin.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# franklin 配置说明
# 查看配置选项
franklin --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export FRANKLIN_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 81/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<br>

<img src="assets/terminal-banner.png" alt="Franklin Agent terminal" width="680">

<br><br>

Franklin Agent

The AI agent with a wallet.

<p> Other agents just talk. Franklin Agent holds your USDC <em>and puts it to work</em> —<br> trading, research, and autonomous tasks with real budgets, real guardrails, real outcomes.<br> One wallet. Every model. Every paid API. Pay only for outcomes — not subscriptions. </p>

<p> <a href="https://npmjs.com/package/@blockrun/franklin"><img src="https://img.shields.io/npm/v/@blockrun/franklin.svg?style=flat-square&color=FFD700&label=npm" alt="npm"></a> <a href="https://npmjs.com/package/@blockrun/franklin"><img src="https://img.shields.io/npm/dm/@blockrun/franklin.svg?style=flat-square&color=10B981&label=downloads" alt="downloads"></a> <a href="https://github.com/BlockRunAI/Franklin/stargazers"><img src="https://img.shields.io/github/stars/BlockRunAI/Franklin?style=flat-square&color=FFD700&label=stars" alt="stars"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache_2.0-blue?style=flat-square" alt="license"></a> <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-strict-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript"></a> <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/Node-%E2%89%A520-339933?style=flat-square&logo=node.js&logoColor=white" alt="Node"></a> <a href="https://x402.org"><img src="https://img.shields.io/badge/x402-native-10B981?style=flat-square" alt="x402"></a> <a href="https://t.me/blockrunAI"><img src="https://img.shields.io/badge/chat-telegram-26A5E4?style=flat-square&logo=telegram&logoColor=white" alt="telegram"></a> </p>

<p> <a href="#quick-start">Quick&nbsp;start</a> · <a href="#two-ways-to-pay">Two&nbsp;ways&nbsp;to&nbsp;pay</a> · <a href="#franklin-desktop-beta">Desktop</a> · <a href="#yopo">YOPO</a> · <a href="#a-new-category">Category</a> · <a href="#what-franklin-can-execute">What&nbsp;it&nbsp;does</a> · <a href="#smart-router">Smart&nbsp;Router</a> · <a href="#the-comparison">Comparison</a> · <a href="#how-it-works">Architecture</a> · <a href="#community">Community</a> </p>

</div>

---

Features

💼 Wallet-native economic execution Franklin can decide what is worth paying for, route the call, sign the micropayment, and keep going until the goal is done or the budget is exhausted.

📈 Trading signals Ask "what's BTC looking like?" — Franklin fetches live price data, computes RSI/MACD/Bollinger/volatility, and synthesizes a signal.

🎨 AI image generation Ask "generate a logo" — Franklin calls DALL-E / GPT Image, saves the result locally, paid from your wallet.

🧠 76 models via one wallet Anthropic, OpenAI, Google, xAI, DeepSeek, GLM, Kimi, Minimax, NVIDIA free tier. One wallet, one interface, automatic fallback.

💳 x402 micropayments (YOPO) HTTP 402 native. Every paid action is a signed USDC micropayment via EIP-712 — non-custodial, your keys never leave your machine. YOPO: you pay only for outcomes.

🧠 Learned model router Trained on 2M+ real requests. Classifies your task and picks the best model from 76 LLMs. Four profiles (auto/eco/premium/free). Adapts to your usage over time.

</td> <td width="50%" valign="top">

🛠 16 built-in tools Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Task, ImageGen, VideoGen, MemoryRecall, AskUser, SubAgent, TradingSignal, TradingMarket, TradingPortfolio, TradingOpenPosition, TradingClosePosition, TradingHistory.

💾 Persistent sessions Every turn is streamed to disk with metadata. Resume any session by ID. Survives crashes, reboots, and compaction.

🔍 Full-text session search franklin search "payment loop" from the CLI, or /session-search "payment loop" in chat.

📊 Cost insights franklin insights shows spend breakdowns, trends, and projections. Never wonder where the USDC went.

⚡ Anthropic prompt caching Multi-turn Sonnet/Opus sessions use ephemeral cache breakpoints to reduce input spend on long conversations.

🔌 Plugin SDK + MCP Core is workflow-agnostic. Add new verticals without touching the loop. Discover external tools automatically through MCP.

</td> </tr> </table>

---

1. Install

npm install -g @blockrun/franklin

Quick start

Requires Node.js 20.19+ (Node 22 LTS recommended). Check with node -v. Older Node crashes at startup with ERR_REQUIRE_ESM.

```bash

3. (optional) Unlock Sonnet, Opus, GPT, Gemini, Grok + every paid API.

Pick ONE — a USDC wallet, or a prepaid API key.

b) API key — sign up and top up at https://user.blockrun.ai

franklin login brk_live_...


Either route unlocks the same thing: **$5** buys you every frontier model and every paid tool in the BlockRun gateway. The wallet route needs zero signup, zero credit card, zero phone verification. The key route needs an account but no crypto.

**No global install? Just run it directly** — no permissions, no `-g`:
bash npx @blockrun/franklin ```

Getting an API key

  1. Sign up at user.blockrun.ai.
  2. Top up your balance from the dashboard.
  3. Create a key — it looks like brk_live_....
  4. Give it to Franklin:
franklin login brk_live_...     # verifies the key, then stores it at ~/.blockrun/api-key (0600)
franklin login                  # show the active pay mode without changing it
franklin logout                 # remove the key and fall back to the wallet

Or set it in the environment instead, which takes precedence over the stored key and is the right choice for CI and servers:

export BLOCKRUN_API_KEY=brk_live_...

Prefer a GUI? Try Franklin for VS Code

Franklin for VS Code — Beta is here

The same agent ships as a VS Code extension — chat panel, model picker, wallet balance, image / video generation, inline diff cards — all driven by the wallet you already funded for the CLI.

VS Code → Extensions  (Cmd+Shift+X / Ctrl+Shift+X)
        → search "Franklin" → Install
        → click the Franklin icon in the Activity Bar

Free models work immediately. Paid models, image gen, and video gen use your selected payment method: funded API account credit or a USDC wallet. The CLI and the extension share the same ~/.blockrun/ config and session history, so jumping between terminal and VS Code is seamless.

The comparison

Coding agentsEditor IDEsChatbots**Franklin**
Writes code⚠️
**Spends money for you**✅ **USDC wallet, x402**
**Buys data + APIs + images + search**✅ **55+ APIs, one wallet**
Picks best model per task❌ single-vendor❌ plan-tied✅ **Smart Router, 76 models**
Pricing modelSubscriptionSubscriptionSubscription**YOPO** — per outcome, USDC
Monthly fee$20–$200$20–$40$20+**$0**
Rate-limitedYesYesYesNo — limited only by wallet
Works when provider goes down✅ **routes to another**
IdentityVendor accountVendor accountAccount / email✅ **wallet, no signup**
Start free, no KYC
SourceClosedClosedClosed**Apache 2.0, local-first**

Franklin is the economic agent category in one sentence: software with a wallet that can spend toward a result.

---

Install troubleshooting

SymptomCauseFix
npm error EACCES … mkdir '/usr/local/lib/node_modules'Your global npm folder is owned by root (common when Node was installed from the macOS .pkg).Don't use sudo. Either run npx @blockrun/franklin (no global install needed), or switch to a user-owned Node via a version manager — see below.
Error [ERR_REQUIRE_ESM] … rpc-websockets … require() of ES Module … uuidNode is older than 20.19. Franklin's Solana deps need the require(esm) support added in Node 20.19.0.Upgrade to Node 20.19+ or 22 LTS (see below). This is the #1 cause of a crash on first run.
npm warn EBADENGINE … required: { node: '>=20.x' }Node is older than 20.19.Upgrade to Node 20.19+ or 22 LTS. The warning alone is harmless, but on old Node the run will also crash — upgrade.

The clean, permanent fix for both is a user-owned Node so global installs never touch root-owned system folders:

```bash

🇨🇳 中文文档镜像 AI 翻译 2026-07-06
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Franklin Agent 是一款具备原生钱包能力的 AI Agent。不同于仅能编写代码的传统 Agent,Franklin 能够通过自主支配资金来完成任务。它通过统一的钱包管理所有模型和付费 API 的调用,让开发者只需为最终结果付费,而无需为各种订阅服务买单,真正实现了从“编写代码”到“执行任务”的跨越。

⚡ 功能介绍

Franklin 具备原生经济执行能力,能够自主判断任务价值、路由调用并签署微支付,直至达成目标或预算耗尽。它还内置了强大的交易信号功能,支持实时获取价格数据并计算 RSI、MACD、Bollinger 等技术指标。此外,它还集成了 AI 图像处理与多种工具调用能力,使其成为一个具备金融感知力的智能体。

🛠 安装步骤(Docker/pip/源码)

您可以通过 npm 全局安装 Franklin:执行 `npm install -g @blockrun/franklin` 即可完成部署。如果您不想进行全局安装,也可以直接使用 `npx @blockrun/franklin` 进行即时运行,这种方式无需特殊权限,非常适合快速测试。

🚀 使用教程

在使用前,请确保您的环境已安装 Node.js 20.19+ 版本(强烈推荐使用 Node 22 LTS),可以通过 `node -v` 进行检查。若 Node 版本过低,可能会在启动时遇到 `ERR_REQUIRE_ESM` 错误。安装完成后,即可通过命令行直接启动 Franklin 进行交互。

⚙️ 配置说明(含 MCP / env)

Franklin 采用极简的配置流程,无需注册账号、绑定信用卡或手机验证。您可以通过 `franklin setup base` 或 `franklin setup solana` 初始化钱包,并使用 `franklin balance` 查看地址与 USDC 余额。只需向钱包转入 5 美元的 USDC,即可解锁 BlockRun 网关中所有的前沿模型(如 Claude Sonnet/Opus、GPT 等)及付费工具。

❓ FAQ 摘要

针对安装过程中可能遇到的权限问题,如 `npm error EACCES`(通常由于 macOS 的 .pkg 安装导致全局目录归 root 所有),建议不要使用 `sudo`。您可以选择使用 `npx` 直接运行,或者通过修改 npm 全局目录的所有权来解决权限冲突。

🎯 aiskill88 AI 点评 A 级 2026-05-21

革新性AI代理框架,首次实现自主经济决策能力。TypeScript优秀实现,社区活跃度高。风险管理需强化,适合有区块链基础的开发者。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台

⚡ 核心功能

  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

❓ 常见问题 FAQ

设置支出限额、多签验证和审计日志,定期审查交易记录和权限配置。
💡 AI Skill Hub 点评

经综合评估,Franklin Agent工作流 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 Franklin Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 Franklin
原始描述 开源AI工作流:The AI agent with a wallet — spends USDC autonomously to get real work done. Apa。⭐626 · TypeScript
Topics AI代理加密钱包自主智能体USDC支付工作流自动化
GitHub https://github.com/BlockRunAI/Franklin
License Apache-2.0
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/BlockRunAI/Franklin 🌐 官方网站  https://franklin.run

收录时间:2026-05-16 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。