Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quick Start

1. Set up your API key

The easiest way to get started is with clawzero init:

clawzero init

This interactively prompts for your API keys and generates ~/.config/clawzero/config.toml.

Alternatively, set your API key via environment variable:

export ANTHROPIC_API_KEY="sk-ant-..."

See Environment Variables for other providers.

2. Run your first prompt

# One-shot mode — sends a prompt, shows the result, and exits
clawzero "Write a fibonacci function in Rust"

3. Start an interactive session

# Interactive REPL with TUI (default when stdin is a TTY)
clawzero chat

4. Use a different model

# Use OpenAI GPT-4o
export OPENAI_API_KEY="sk-..."
clawzero --model openai/gpt-4o "Hello"

# Use a local Ollama model
clawzero --model ollama/llama3 "Hello"

5. Explore further