Skip to main content

Module config

Module config 

Source
Expand description

Project configuration loaded from .ctx/config.toml.

An optional, committed TOML file that sets per-project defaults so teams don’t have to pass the same flags/env vars on every invocation. Currently it configures the embedding backend; more sections can be added over time.

[embedding]
provider = "ollama"            # local | openai | ollama
model = "qwen3-embedding:8b"   # provider-specific (Ollama/OpenAI model)
# host = "http://localhost:11434"  # Ollama only

Precedence for the resolved settings is always CLI flag > environment variable > this file > built-in default, so the config never overrides an explicit request.

Structs§

CtxConfig
Top-level .ctx/config.toml contents. Unknown keys are ignored so older binaries tolerate newer config files.
EmbeddingConfig
[embedding] section: default provider and provider-specific settings.

Constants§

CONFIG_FILE
Config file name inside .ctx/.