Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AI-powered CLI coding agent with 20+ built-in tools, MCP support, and multi-model providers

License

Notifications You must be signed in to change notification settings

echoVic/blade-code

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🗡️ Blade Code

新一代 AI 编程助手(CLI)

npm version License Node.js Version PRs Welcome

English | 简体中文


📸 启动界面

Blade Code 启动界面

✨ 核心特性

  • 🤖 智能对话 - 上下文理解、多轮协作、可继续会话
  • 🆓 开箱即用 - 内置免费 GLM-4.7 模型,可选自定义模型
  • 🛠️ 丰富工具 - 20+ 内置工具:文件/搜索/Shell/Git/Web 等
  • 🔗 扩展能力 - MCP、插件与 Skills 系统
  • 📋 结构化工作流 - Spec / Plan / Subagents
  • 🔒 安全可控 - default/autoEdit/plan/yolo 权限模式与工具白/黑名单
  • 🎨 现代 UI - React + Ink 终端 UI,支持 Markdown 与高亮

🚀 快速开始

npx blade-code

npm install -g blade-code
#
pnpm add -g blade-code

blade
blade "帮我分析这个项目"
blade --print "写一个快排算法"

默认使用内置免费模型;要使用自有模型,可运行 blade 按提示配置。


⚙️ 可选配置

配置文件支持全局和项目级:~/.blade/config.json.blade/config.json。 更多配置项见文档。

{
  "provider": "openai-compatible",
  "apiKey": "${BLADE_API_KEY}",
  "baseUrl": "https://api.openai.com/v1",
  "model": "gpt-4o-mini"
}

🧰 命令速览

常用命令

  • blade 启动交互式界面
  • blade mcp 管理 MCP 服务器
  • blade doctor 环境自检
  • blade update 检查更新
  • blade install 安装指定版本(实验)

常用选项

  • --print/-p 打印模式(适合管道)
  • --output-format 输出格式(text/json/stream-json)
  • --permission-mode 权限模式
  • --resume/-r 恢复会话 / --session-id 指定会话

📖 文档


🤝 贡献

git clone https://github.com/echoVic/blade-code.git
cd blade-code && pnpm install && pnpm dev

💬 交流群

添加小助手微信 VIc-Forever,备注「Blade」拉你进群。


🔗 相关资源


⭐ Star History

Star History Chart

📄 许可证

MIT - Made with ❤️ by echoVic

About

AI-powered CLI coding agent with 20+ built-in tools, MCP support, and multi-model providers

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.