Configuration
Configuration
Section titled “Configuration”Set environment variables or a future config.toml (planned). Precedence: CLI flags > environment.
Environment Variables
Section titled “Environment Variables”| Variable | Purpose | Default |
|---|---|---|
CYBERZARD_PROVIDER | Provider selection: openai, anthropic, xai, none | none |
CYBERZARD_MODEL | Override default model per provider | Provider default |
CYBERZARD_MAX_CONTEXT_BYTES | Upper bound for model context payload | 20000 |
CYBERZARD_NO_HISTORY | Disable transcript retention | unset |
OPENAI_API_KEY | API key for OpenAI provider | — |
ANTHROPIC_API_KEY | API key for Anthropic provider | — |
XAI_API_KEY | API key for xAI (Grok) provider | — |
Note:
CYBERZARD_MODEL_PROVIDERis supported for backward compatibility butCYBERZARD_PROVIDERis preferred.
Provider Setup
Section titled “Provider Setup”OpenAI
Section titled “OpenAI”export CYBERZARD_PROVIDER=openaiexport OPENAI_API_KEY=sk-...Anthropic
Section titled “Anthropic”export CYBERZARD_PROVIDER=anthropicexport ANTHROPIC_API_KEY=sk-ant-...xAI (Grok)
Section titled “xAI (Grok)”export CYBERZARD_PROVIDER=xaiexport XAI_API_KEY=xai-...Or per-invocation without changing your shell environment:
cyberzard --provider anthropic advisecyberzard --provider xai adviseCheck Available Providers
Section titled “Check Available Providers”Use the providers command to see which providers are available:
cyberzard providersThis shows a table with:
- Provider name and default model
- Package installation status
- API key configuration status
- Whether auto-detection would select it
Data storage
Section titled “Data storage”- Chat history is persisted to
cyberzard_agent.sqlitein the project directory. - Use
cyberzard chat --session <id>to segment conversations (each session has its own history). - Clear the current session during chat with
/clear.