claudecode project
| .github | ||
| assets | ||
| rust | ||
| src | ||
| tests | ||
| .gitignore | ||
| CLAW.md | ||
| PARITY.md | ||
| README.md | ||
Claw Code
Claw Code is an open source Claude Code with Rust implementation. It is a local coding-agent CLI that provides an interactive agent shell, one-shot prompts, workspace-aware tools, plugin support, and resumeable sessions.
Start here
- Install Rust stable and Cargo.
- Set up credentials for the model provider you want to use.
- Run the CLI from the
rust/workspace.
First run
From the repository root:
cd rust
Build the CLI:
cargo build --release -p claw-cli
Start the interactive shell:
cargo run --bin claw -- --help
cargo run --bin claw --
Run a single prompt:
cargo run --bin claw -- prompt "summarize this workspace"
Install it locally if you want the binary on your PATH:
cargo install --path crates/claw-cli --locked
Authentication
Use whichever provider you have access to.
Anthropic-compatible models:
export ANTHROPIC_API_KEY="..."
export ANTHROPIC_BASE_URL="https://api.anthropic.com"
Grok models:
export XAI_API_KEY="..."
export XAI_BASE_URL="https://api.x.ai"
You can also authenticate through the CLI:
cargo run --bin claw -- login
Common commands
cargo run --bin claw -- prompt "review the latest changes"
cargo run --bin claw -- init
cargo run --bin claw -- logout
cargo run --bin claw -- --resume session.json /status
Run claw --help for the full command list, including agents, skills, system-prompt output, and slash-command flows.
Repository layout
.
├── rust/ # Active Rust workspace and CLI/runtime implementation
├── src/ # Python porting workspace and support code
├── tests/ # Python verification
├── CLAW.md # Repo-specific working notes
└── README.md # This guide
Development
Use the Rust workspace for local verification:
cd rust
cargo fmt
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
If you change the Python workspace in src/, keep the matching tests in tests/ updated too.
Notes
- This repo is an open source Claude Code-style Rust implementation, not the original Claude Code source.
CLAW.mdcontains the workflow guidance for contributors working in this tree.