
**Open-source alternative to Claude Code, built from scratch in Rust.**
[](https://www.rust-lang.org/)
[](LICENSE)
[](https://github.com/lingcoder/crab-code/actions/workflows/ci.yml)
[](#contributing)
**English** | [**中文**](README.zh-CN.md)
---
> **Active Development** — 4970 tests · 26 crates · ~161k LOC
Crab Code is a Rust-native agentic coding CLI. It aligns with Claude Code's toolset, permission model, and interaction patterns while supporting any LLM provider (Anthropic / OpenAI / DeepSeek / Bedrock / Vertex).
## Quick Start
```bash
git clone https://github.com/lingcoder/crab-code.git && cd crab-code
cargo build --release
export ANTHROPIC_API_KEY=sk-ant-...
./target/release/crab # Interactive TUI
./target/release/crab "explain this codebase" # Single-shot
./target/release/crab -p "fix the bug" # Non-interactive
```
See `crab --help` for more. Config lives at `~/.crab/config.toml` (snake_case TOML); the full loading & merge spec is in [`docs/config-design.md`](docs/config-design.md).
## Configuration
Config sources, low → high priority:
```
defaults < plugin < user < project < local < --config