Crab Code

AI coding assistant
in your terminal

Install in one command. Pay with Alipay. Start coding smarter with Crab Pro — an AI that reads, writes, and refactors code alongside you.

Get Started View on GitHub
Terminal
📱

Pay with Alipay

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).

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.

  • 9 Rust crates — modular architecture: CLI, runtime, API, tools, commands, plugins, telemetry
  • 57K+ lines of Rust — production-grade, memory-safe, zero undefined behavior
  • Built-in tool execution — file read/write, bash, glob, grep, git, all native
  • Session persistence — auto-saved sessions, resume anytime with --resume latest
crab-code/rust/crates/ ├── rusty-claude-cli/ CLI binary + REPL ├── runtime/ Session, prompt, hooks ├── api/ Provider clients ├── tools/ File ops, bash, search ├── commands/ Slash command registry ├── plugins/ Plugin lifecycle ├── telemetry/ Usage tracking ├── compat-harness/ Parity testing └── mock-anthropic-service/

Extensible with Skills & MCP

Add custom skills and connect external tools via the Model Context Protocol.

Skills

Drop a markdown file into .crab-code/skills/ and it becomes a slash command.

# .crab-code/skills/review/SKILL.md --- name: review description: Code review with best practices --- Review the current diff for: - Security vulnerabilities - Performance issues - Code style violations $ crab-code > /review # runs your custom skill

MCP Servers

Connect databases, APIs, and external tools. The agent calls them as needed.

# .crab-code/settings.json { "mcpServers": { "postgres": { "command": "npx", "args": ["@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"] } } } > show me the top 10 users by revenue MCP postgres: running query...

Simple, transparent pricing

No subscriptions. No hidden fees. Pay only for what you use.

Free

Try it out

10K
tokens on signup
  • Full CLI access
  • Email registration only
  • No credit card needed
Start Free
Popular

Pay as you go

Top up anytime

$5 / M tokens
≈ ¥36 / million tokens
  • Powered by Crab Pro
  • Pay via Alipay
  • ~200+ coding sessions per ¥100
Get Started