Crab Code banner
lingcoder lingcoder

Crab Code

AI community

Description

πŸ¦€ Open-source alternative to Claude Code, built from scratch in Rust. Agentic coding CLI β€” thinks, plans, and executes with any LLM. Compatible with Claude Code workflows.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Crab Code

**Open-source alternative to Claude Code, built from scratch in Rust.**

[![Rust](https://img.shields.io/badge/Built%20with-Rust-orange?logo=rust)](https://www.rust-lang.org/) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![CI](https://github.com/lingcoder/crab-code/actions/workflows/ci.yml/badge.svg)](https://github.com/lingcoder/crab-code/actions/workflows/ci.yml) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing)

**English** | [**δΈ­ζ–‡**](README.zh-CN.md)


**Active Development** β€” 4927 tests Β· 25 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

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      (file layer)
                                                            <
                                                       env  <  CLI flag    (runtime layer)
  • User: ~/.crab/config.toml (or $CRAB_CONFIG_DIR/config.toml)
  • Project: $PWD/.crab/config.toml (committed)
  • Local: $PWD/.crab/config.local.toml (gitignored)
  • --config : CLI-injected file
  • -c key.path=value: dotted runtime override (T