Docs / CLI & headless
rabbit-cli.
Overview
rabbit-cli brings the Rabbit agent to the terminal -- no GUI required. It runs a focused subset of the agent's tools (read, search, tree, edit, shell, web) against any provider you configure. Ideal for CI pipelines, code review bots, and remote execution.
Install
npm install -g rabbit-cli # or run directly npx rabbit-cli "refactor auth module to use JWT"
Usage
# Interactive REPL rabbit # One-shot task, then exit rabbit "add input validation to all API routes" # Print mode (non-interactive, same as above) rabbit -p "write unit tests for utils.ts" # Configure provider / model / API key rabbit config
Configuration
rabbit config writes ~/.rabbit-cli/config.json. Provider and model can also be set via environment variables:
ANTHROPIC_API_KEY/OPENAI_API_KEY/DEEPSEEK_API_KEY/GEMINI_API_KEY/OPENROUTER_API_KEY…RABBIT_PROVIDER-- anthropic, openai, deepseek, gemini, groq, mistral, xai, openrouter, qwen, moonshot, localRABBIT_MODEL-- model id
On startup it also loads your project rules into the system prompt:.rabbitrules, AGENTS.md, .cursorrules,.windsurfrules, and any .rabbit-ide/rules/ files.
Output
Output is streamed to the terminal with tool-call summaries. Use-p for non-interactive runs in scripts and CI, where the agent completes the task and exits.