Environment Variables
| Variable | Description | |---|---|---| |PORT | Server port. Defaults to 4096. |
| OPENAI_API_KEY | Enables the codex provider. |
| ANTHROPIC_API_KEY | Enables the claude provider. |
Providers can be listed even when they are not configured. A request fails if it targets a
provider without the matching API key.
When 0x0 server starts in an interactive terminal and neither provider key is present, it asks
for OPENAI_API_KEY and ANTHROPIC_API_KEY. Values entered at the prompt are used only for that
server process. Add exports to your shell config for durable setup:
Server URL
The server binds through Bun and prints its local URL on boot:State
Agent sessions use local git worktrees and refs. The default state root is:- A detached agent worktree
- A baseline ref
- An agent-head ref
- A
sessions.jsonregistry