能力标签
mercury-agent Agent工作流
🛠
AI工具

mercury-agent Agent工作流

基于 TypeScript · 开源 AI 工具,GitHub 社区精选
英文名:mercury-agent
⭐ 2.2k Stars 🍴 229 Forks 💻 TypeScript 📄 MIT 🏷 AI 8.2分
8.2AI 综合评分
AI工作流权限控制Token预算多渠道TypeScript
✦ AI Skill Hub 推荐

mercury-agent Agent工作流 是 AI Skill Hub 本期精选AI工具之一。已获得 2.2k 颗 GitHub Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

mercury-agent Agent工作流 是一款基于 TypeScript 的开源工具,在 GitHub 上收获 2k+ Star,是AI工作流、权限控制、Token预算、多渠道领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

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

**安装与环境准备**
mercury-agent 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 将持续追踪 mercury-agent Agent工作流 的版本更新,及时通知重要功能变化。

📋 工具概览

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

GitHub Stars
⭐ 2.2k
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
持续维护,定期更新
开源协议
MIT
AI 综合评分
8.2 分
工具类型
AI工具
Forks
229

📖 中文文档

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

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

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

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

# 方式三:项目依赖安装
npm install mercury-agent

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

# 基本用法
mercury-agent [options] <input>

# Node.js 代码中使用
const mercury_agent = require('mercury-agent');

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

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

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

简介

<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/cosmicstack-labs/mercury-agent/main/docs/img/readme-hero-dark.png"> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/cosmicstack-labs/mercury-agent/main/docs/img/readme-hero-light.png"> <img alt="Mercury Agent" src="https://raw.githubusercontent.com/cosmicstack-labs/mercury-agent/main/docs/img/readme-hero-light.png" width="520"> </picture> </p>

The soul-driven AI agent that lives on your machine.
It asks before it acts, remembers what matters, and keeps working when you walk away.

<p align="center"> <a href="https://www.npmjs.com/package/@cosmicstack/mercury-agent"><img src="https://img.shields.io/npm/v/@cosmicstack/mercury-agent?color=0ea5e9&label=npm" alt="npm version"></a> <a href="https://github.com/cosmicstack-labs/mercury-agent/blob/main/.github/badges/downloads-breakdown.json"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcosmicstack-labs%2Fmercury-agent%2Fmain%2F.github%2Fbadges%2Fdownloads.json" alt="total npm downloads"></a> <a href="https://github.com/cosmicstack-labs/mercury-agent/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/cosmicstack-labs/mercury-agent/ci.yml?branch=main&label=CI" alt="CI"></a> <a href="https://github.com/cosmicstack-labs/mercury-agent/stargazers"><img src="https://img.shields.io/github/stars/cosmicstack-labs/mercury-agent?style=flat&color=f59e0b" alt="GitHub stars"></a> <a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/@cosmicstack/mercury-agent?color=16a34a" alt="node"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/cosmicstack-labs/mercury-agent?color=64748b" alt="MIT license"></a> <a href="https://discord.gg/5emMpMJy5J"><img src="https://img.shields.io/badge/discord-join-5865F2?logo=discord&logoColor=white" alt="Discord"></a> </p>

<p align="center"> <a href="https://trendshift.io/repositories/30943?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-30943" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/30943/daily" alt="cosmicstack-labs%2Fmercury-agent | Trendshift" width="250" height="55"/></a> </p>

<p align="center"> <a href="https://mercuryagent.sh">Website</a> · <a href="https://mercuryagent.sh/docs">Docs</a> · <a href="#quickstart">Quickstart</a> · <a href="CHANGELOG.md">Changelog</a> · <a href="https://discord.gg/5emMpMJy5J">Discord</a> · <a href="README.zh-CN.md">简体中文</a> </p>

---

Most AI agents forget you by morning, run whatever the model decides, and stop the moment you close the laptop. Mercury doesn't.

Mercury is an open-source agent with a personality you write yourself, a memory that stays on your disk, and a permission system that sits between the model and your machine. Message it from your terminal, Telegram, Discord, Slack or Signal and you reach the same agent, with the same memory, running as one background process you own.

It reads and writes your files, runs commands, ships code through git and GitHub, researches the web and keeps a schedule. Every one of those actions is checked against rules you set, and every turn stays inside a daily token budget.

Then it goes further:

  • Mercury Code turns it into a careful pair programmer inside your repository, one that only says "done" after the tests pass.
  • Mercury Bots gives it a team. Persistent specialists research, write and ship on their own schedule, then drop finished files in a folder you can open, or straight into your Telegram chat.

Install it in one line. Talk to it from anywhere. It is still there tomorrow, and it still remembers.

Features

Build from source

Requirements: Node.js 22+, and Bun 1.3+ only if you want standalone binaries.

git clone https://github.com/cosmicstack-labs/mercury-agent.git
cd mercury-agent
npm install
npm run build        # dist/ plus the web UI
npm test             # vitest
node dist/index.js   # run your build

Standalone binaries:

npm run build:bin       # this machine only (release/smoke/)
npm run build:bin:all   # all targets: macOS arm64/x64, Linux x64/arm64 (+ no-AVX2 build), Windows x64 (+ no-AVX2 build)

Release binaries are unsigned. On macOS, sign with codesign and notarize before distributing your own builds.

Quickstart

1. Install. The installer downloads a standalone binary for your OS and CPU and verifies its checksum. No Node.js needed.

```bash

Reference

<details> <summary><b>CLI commands</b></summary>

CommandWhat it does
mercuryStart Mercury, or attach to it if it is already running
mercury upInstall the login service and make sure Mercury is running
mercury attachAttach this terminal to the running runtime
mercury code [dir]Open Mercury Code in a directory
mercury start [-d] / stop / restartControl the runtime
mercury status / logsShow status and recent logs
mercury doctor [--platform]Reconfigure; --platform prints a compatibility report
mercury setupRun the setup wizard again
mercury upgrade [--force]Upgrade to the latest version
mercury telegram / discord / slack / signalManage channel access
mercury botsdoctor, list, storage
mercury skillssearch, browse, view, install, remove, update, doctor
mercury cloudconnect, disconnect, status, login, models
mercury serviceinstall, uninstall, status
mercury web-reset-passwordReset the dashboard password
mercury uninstall [--purge-data]Remove Mercury, optionally with all data

</details>

<details> <summary><b>In-chat commands</b></summary>

These run locally and do not use tokens. /help lists everything.

CommandWhat it does
/menuCommand picker
/status, /trace [id]Configuration and usage; what a turn did
/new, /sessionsFresh conversation; list and switch sessions
/modelsList providers; /models use <provider> to switch
/budget, /saverToken budget; Token Saver mode
/permissionsSwitch between Ask Me and Allow All
/memoryInspect and manage the Second Brain
/code, /wsMercury Code; workspace view
/research [topic]Deep research mode
/bg, /agentsBackground tasks; sub-agents
/bots, /bot <id> <task>Bot fleet; give a bot a task
/tools, /skillsLoaded tools; installed skills
/cloud, /spotifyMercury Cloud models; Spotify controls
/stop, /halt, /resetStop work, stop everything, reset context
/whatsnewWhat changed in this version

</details>

<details> <summary><b>Built-in tools</b></summary>

AreaTools
Filesread_file, write_file, create_file, edit_file, list_dir, delete_file, send_file, approve_scope
Shellrun_command, cd, approve_command
Gitgit_status, git_diff, git_log, git_add, git_commit, git_push
GitHubcreate_pr, review_pr, list_issues, create_issue, github_api (when GITHUB_TOKEN is set)
Webfetch_url
Skillsinstall_skill, list_skills, use_skill
Schedulerschedule_task, list_scheduled_tasks, cancel_scheduled_task
Memorysave_memory, search_memory
Agentsdelegate_task, list_agents, stop_agent, dispatch_bot
Interactionask_user, update_plan, send_message, budget_status
Spotifysearch, playback, queue, devices, playlists and more (when connected)

</details>

<details> <summary><b>Files and configuration</b></summary>

Everything Mercury stores lives in ~/.mercury/, never in your project.

PathContents
mercury.yamlMain configuration: providers, channels, budget, web
.envAPI keys and tokens
soul/*.mdPersonality: soul, persona, taste, heartbeat
permissions.yamlScopes and approval rules
skills/Installed skills
schedules.yamlScheduled tasks
sessions/Conversations
memory/second-brain/Second Brain database
bots/Bot personas, journals, queues and permissions
boards.dbKanban boards
daemon.log, daemon.pidRuntime log and process id

</details>

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

成熟的开源Agent框架,权限与预算控制设计先进,TypeScript生态友好,维护活跃且社区反馈积极,是企业级AI应用的优选方案。

📚 实用指南(长尾问题)
适合谁
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
mercury-agent 中文教程mercury-agent 安装报错怎么办mercury-agent Agent 工作流mercury-agent 与同类工具对比mercury-agent 最佳实践mercury-agent 适合谁用

⚡ 核心功能

👥 适合谁
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

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

🎯 使用场景

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

⚖️ 优点与不足

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

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

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

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

通过配置文件或API参数设置budget字段,支持按任务/模型/时间段粒度控制
💡 AI Skill Hub 点评

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

📚 深入学习 mercury-agent Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 mercury-agent
原始描述 开源AI工作流:Soul-driven AI agent with permission-hardened tools, token budgets, and multi-ch。⭐2.2k · TypeScript
Topics AI工作流权限控制Token预算多渠道TypeScript
GitHub https://github.com/cosmicstack-labs/mercury-agent
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/cosmicstack-labs/mercury-agent 🌐 官方网站  https://mercury.cosmicstack.org/

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

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →