roz.toml), a project-level agent instructions file (AGENTS.md), and environment variables.
roz.toml
The primary configuration file. Created byroz setup and stored in your project root.
Agent Section
| Key | Type | Default | Description |
|---|---|---|---|
model | string | "claude-sonnet-4-20250514" | LLM model to use. |
provider | string | "anthropic" | LLM provider: anthropic, openai, google, ollama. |
max_context_tokens | integer | 200000 | Context window budget. The agent warns when usage exceeds 30%. |
Spatial Section
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Enable spatial (OODA) mode for physical robot control. |
safety_filter | bool | true | Enable the safety filter that clamps all channel values. |
control_rate_hz | integer | 100 | WASM controller execution frequency. |
Sim Section
| Key | Type | Default | Description |
|---|---|---|---|
default_robot | string | "ur5" | Robot type for roz sim start when no argument is given. |
auto_start | bool | true | Automatically start the sim container when launching roz. |
Server Section
| Key | Type | Default | Description |
|---|---|---|---|
api_url | string | "http://localhost:8080" | API endpoint for cloud sessions. |
AGENTS.md
A Markdown file in your project root that provides project-specific instructions to the agent. The agent reads this file at session start and includes it as a system context block.Environment Variables
| Variable | Required | Description |
|---|---|---|
ANTHROPIC_API_KEY | For Anthropic provider | API key for Claude models. |
OPENAI_API_KEY | For OpenAI provider | API key for GPT models. |
GOOGLE_API_KEY | For Google provider | API key for Gemini models. |
OLLAMA_URL | For Ollama provider | Ollama server URL (default: http://localhost:11434). |
ROZ_API_URL | For cloud sessions | API server endpoint. |
DATABASE_URL | For roz-server | PostgreSQL connection string. |
NATS_URL | For roz-server/worker | NATS server URL. |
roz.toml. You can also set them in a .env file in the project root.
LLM Provider Configuration
Anthropic (default)
OpenAI
Ollama (local)
No API key needed. Start the Ollama server first:API Authentication
For cloud deployments (roz-server), API keys use the schemeroz_sk_<random>. Pass the key as a Bearer token:
Source Code
Configuration handling:crates/roz-cli/src/commands/config.rs