- Environment variables (
API_KEY,MODEL,BASE_URL) - YAML config file (
configs/cogos.yaml, created bycogos init) - Dataclass defaults
Config File
Generated bycogos init:
Config File Resolution
| Priority | Path | Description |
|---|---|---|
| 1 | Explicit path (-c / from_file("...")) | User-specified |
| 2 | configs/cogos.yaml | User config (created by cogos init) |
Key Settings
| Config Key | Description | Default |
|---|---|---|
chatbot.context_rounds | Number of recent chat rounds included as conversation context. When exceeded, schema memory is auto-injected. Set to 0 for single-turn. | 10 |
agent.schema_update_rounds | Auto-update schema from chat context every N rounds. Set to 0 to disable. | 0 |
persistence.schemas_dir | Directory for standalone schema files shared across sessions. Backups are stored in backups/ subdirectory. | ./schemas |
Supported LLM Providers
Any OpenAI-compatible API works:| Provider | base_url | model example |
|---|---|---|
| OpenAI | https://api.openai.com/v1 | gpt-4o |
| OpenRouter | https://openrouter.ai/api/v1 | google/gemini-2.5-flash |
| vLLM | http://localhost:8000/v1 | meta-llama/Llama-3-8b |