Skip to main content

Overview

The zeroclaw agent command launches an interactive chat session with your configured AI provider. It supports both interactive REPL mode and single-shot message execution.

Basic Usage

Command Syntax

Options

Core Options

string
Single message mode (don’t enter interactive mode). Send one message and exit.
string
Provider to use (openrouter, anthropic, openai, openai-codex, gemini, etc.). Overrides config default.
string
Model to use. Overrides config default.
float
default:"0.7"
Temperature (0.0 - 2.0). Controls response randomness.

Hardware Options

string[]
Attach a peripheral board. Format: board:pathExample: nucleo-f401re:/dev/ttyACM0

Security & Autonomy

enum
Autonomy level for agent execution.Options:
  • read_only - Agent can only read, no modifications
  • supervised - Agent requires approval for actions
  • full - Agent can execute actions autonomously
integer
Maximum shell/tool actions per hour. Rate limiting for safety.

Agent Behavior

integer
Maximum tool-call iterations per message. Prevents infinite loops.
integer
Maximum conversation history messages to retain in context.
boolean
Enable compact context mode (smaller prompts for limited models).

Memory Options

enum
Memory backend to use.Options:
  • sqlite - SQLite-based persistent memory
  • markdown - Markdown file-based memory
  • lucid - Advanced vector memory backend
  • none - Disable memory

Examples

Interactive Session

Single Message Mode

Advanced Usage

Interactive Mode

When running without --message, the agent enters interactive mode with these features:
  • Persistent conversation history - Context maintained across messages
  • Tool execution approval - In supervised mode, prompts before actions
  • Multi-turn interactions - Follow-up questions and iterative refinement
  • Session memory - Conversation saved to configured memory backend

Interactive Commands

Terminal Output

Interactive Session Example

Single Message Example

Configuration

The agent respects these configuration settings from config.toml:
Command-line flags override config file settings for the current session only.

Exit Codes

  • 0 - Success
  • 1 - General error
  • 2 - Configuration error
  • 130 - Interrupted (Ctrl+C)

See Also