Top up tokens directly from your terminal. Run crab-code pay <amount>, scan the QR code with Alipay, and your tokens are credited instantly.
⌨
Run command
→
▦
Scan QR
→
✓
Tokens credited
Install in seconds
One command on any platform. macOS, Linux, and Windows.
curl -fsSL https://crabcode.ai/install.sh | sh
Downloads the latest binary for your platform (macOS / Linux, x64 / arm64).
irm https://crabcode.ai/install.ps1 | iex
Downloads the latest binary for Windows x64.
brew install crab-code/tap/crab-code
macOS only. Homebrew tap auto-updated with each release.
1
Login
crab-code login
Email + verification code
2
Top Up
crab-code pay 10
Scan Alipay QR in terminal
3
Code
crab-code "fix this bug"
AI reads & writes code for you
Built with Rust. Blazing fast.
Unlike TypeScript-based CLI tools, Crab Code is a native Rust binary. Zero runtime overhead, instant startup, minimal memory.
Startup Time
TS~800ms
Rust~5ms
160x faster
Memory Usage
TS~120MB
Rust~18MB
6.7x lighter
Install Size
TS~250MB
Rust~20MB
12x smaller
Single static binary. No Node.js, no node_modules, no runtime dependencies.
Self-developed AI agent
Crab Code is not a wrapper or proxy. It's a ground-up Rust implementation of an autonomous coding agent with its own tool system, session management, and plugin architecture.