git404hub

ultraworkers/claw-code

190,377RustAudience · developerComplexity · 3/5Setup · moderate

tl;dr

Open-source Rust CLI tool that runs an AI coding agent in your terminal, letting you send prompts and commands to Claude via API.

vibe map

mindmap
  root((claw-code))
    What it does
      AI agent harness
      Terminal CLI tool
      Rust implementation
    How to use
      Set API key
      Build from source
      Run claw commands
    Key commands
      claw doctor
      claw prompt
    Setup
      macOS Linux Windows
      Cargo build
      PATH installation
    Documentation
      USAGE.md
      PARITY.md
      ROADMAP.md

what people make with this

VIBE 1

Build and run an AI coding agent locally in your terminal to automate coding tasks.

VIBE 2

Study the open-source Rust implementation of an agent harness and contribute improvements.

VIBE 3

Integrate Claude API access into your development workflow via command-line interface.

stack

RustCargoAnthropic API

setup vibes

Difficulty · moderate time til it works · 30min

Requires Anthropic API key and Rust/Cargo installation.

License information not provided in the explanation.

in plain english

Claw Code is the public Rust implementation of the claw command-line agent harness — a tool you run in your terminal to drive an AI coding agent. The repository ultraworkers/claw-code is the source of truth for the Rust workspace and the claw CLI binary, with a companion Python reference workspace alongside it.

How it works: you clone the repo, build it with cargo from the rust/ subdirectory, set an API key environment variable (ANTHROPIC_API_KEY or similar — it requires an API key, not a subscription login), and then run commands like claw doctor for a health check that validates your API key, model access, and tool configuration, or claw prompt "say hello" to send a request through the agent. The repository is build-from-source only; the README warns that the claw-code crate on crates.io is a deprecated stub that does NOT install the working binary, so you must compile it yourself or install the upstream agent-code binary instead.

Someone would use Claw Code if they want an open-source, locally-built CLI agent harness in Rust, perhaps to study the implementation, contribute to it, or run it on top of their own API access. The README walks through setup on macOS, Linux, and Windows (with PowerShell as a supported path), how to locate the binary after build, optional PATH-installation approaches, and how to run the workspace test suite. Documentation is organized into separate files: USAGE.md for task-oriented commands, PARITY.md for Rust-port status, ROADMAP.md for upcoming work, and PHILOSOPHY.md for project intent. The full README is longer than what was provided.

prompts (copy fr)

prompt 1
I want to set up claw-code on my machine. Walk me through cloning the repo, building it with cargo, setting my ANTHROPIC_API_KEY, and running claw doctor to verify everything works.
prompt 2
Show me how to use claw prompt to send a coding task to the AI agent and what the output looks like.
prompt 3
I'm interested in contributing to claw-code. What does PARITY.md tell me about the Rust port status, and what's on the ROADMAP.md?
prompt 4
How do I install the claw binary to my PATH after building it so I can run it from anywhere in my terminal?
peek the repo → explain another one

Generated 2026-05-18 · Model: sonnet-4-6 · double-check against the repo, no cap.