Open-source AI coding agent. 55+ models. Pay per use with USDC via x402.
npm install # install dependencies
npm run build # compile TypeScript
npm run dev # watch mode
npm start # launch agentsrc/
├── index.ts # CLI entry point
├── agent/ # Agent loop and orchestration
├── commands/ # Built-in agent commands
├── tools/ # Agent tools (file edit, shell, search, etc.)
├── router/ # Model routing logic
├── session/ # Session management
├── wallet/ # USDC wallet (Base/Solana)
├── mcp/ # MCP server integration
├── ui/ # Ink-based terminal UI
├── config.ts # Configuration
├── pricing.ts # Per-model pricing
├── stats/ # Usage statistics
├── proxy/ # Request proxying
└── banner.ts # Startup banner
@blockrun/llm— LLM gateway SDK (x402 payments)@modelcontextprotocol/sdk— MCP protocolink/react— Terminal UIcommander— CLI framework
- TypeScript strict mode
- ESM (
"type": "module") - Node >= 20
- Apache-2.0 license
- npm registry:
@blockrun/runcode