← Back to Discover

Crab Code

An open-source terminal coding agent written in Rust that works with several LLM providers and follows Claude Code's toolset, permission model and interaction patterns.

Coding agentsCommand-line tools

What it does

Crab Code is an agentic coding command-line tool written in Rust. It opens an interactive terminal interface, or it can answer a single prompt or run non-interactively with the -p flag. It can use Anthropic, OpenAI, DeepSeek, Bedrock, Vertex or a custom endpoint, selected through a TOML config file, environment variables or command-line flags. The repository says it follows Claude Code's toolset, permission model and interaction patterns, and it supports MCP. You build it from source with Cargo. The repository describes itself as in active development, reports a large test suite, and is released under the MIT license.

Capabilities

  • Interactive terminal interface plus single-shot and non-interactive modes
  • Works with Anthropic, OpenAI, DeepSeek, Bedrock, Vertex or a custom endpoint
  • Allow and deny permission rules for tools such as Bash, Read and Edit
  • Layered configuration from user, project, local, environment and command-line sources
  • MCP support

When to use it

  • You want a terminal coding agent whose source you can build and inspect yourself
  • You need to switch between model providers or point at your own endpoint
  • You already use Claude Code-style permission rules and want a similar workflow in a Rust tool