- 🤖 Smart Chat - Context-aware, multi-turn collaboration with session continuity
- 🌐 Dual Interface - CLI terminal + Web UI, switch as you like
- 🛠️ Rich Tooling - 20+ built-in tools: file/search/shell/git/web and more
- 🔍 Smart Search - WebSearch with multi-provider fallback (Exa → DuckDuckGo → SearXNG)
- 🔗 Extensible - MCP, plugins, and Skills system
- 📋 Structured Workflows - Spec / Plan / Subagents
- 🔒 Secure Control - Permission modes: default/autoEdit/plan/yolo/spec + allow/deny lists
- 🎨 Modern UI - React + Ink TUI / React + Vite Web UI
# Quick try
npx blade-code
# Global install
npm install -g blade-code
# or
pnpm add -g blade-code
# CLI mode
blade
blade "Help me analyze this project"
blade --print "Write a quicksort"
blade --headless "Analyze this repo and propose a refactor"
blade --headless --output-format jsonl "Run the full agent loop in CI"
# Web UI mode (new in 0.2.0)
blade web # Start and open browser
blade serve --port 3000 # Headless server modeRun
bladeand type/model addto configure your model on first launch.
Config supports global and project scope: ~/.blade/config.json or .blade/config.json.
See docs for the full schema.
{
"provider": "openai-compatible",
"apiKey": "${BLADE_API_KEY}",
"baseUrl": "https://api.openai.com/v1",
"model": "gpt-4o-mini"
}Common Commands
bladestart interactive CLIblade webstart Web UI (new in 0.2.0)blade servestart headless server (new in 0.2.0)blade mcpmanage MCP serversblade doctorenvironment checkblade updatecheck for updates
Common Options
--print/-pprint mode (pipe-friendly)--headlessfull agent mode without Ink UI, prints streamed events to the terminal--output-formatoutput: text/json/stream-json/jsonl--permission-modepermission mode--resume/-rresume session /--session-idset session
Headless Mode
blade --headless "..."runs the full agent loop without the interactive Ink UI- default permission mode is
yolo, unless explicitly overridden with--permission-mode --output-format jsonlemits a stable machine-friendly event stream for CI, sandbox runs, and tests
git clone https://github.com/echoVic/blade-code.git
cd blade-code && pnpm install && pnpm devAdd WeChat VIc-Forever, remark "Blade" to join the group.
- NPM Package
- Discord Community - Join our Discord server
- Report Issues

