Skip to main content

Module config

Module config 

Source
Expand description

Configuration management for Magellan

Loads settings from ~/.config/magellan/config.toml

§Config File Format

[llm]
provider = "ollama"  # ollama, openai, anthropic, custom
base_url = "http://localhost:11434"
model = "codellama"
api_key = ""  # For cloud providers

[registry]
auto_scan = true
scan_roots = ["/home/feanor/Projects"]

Structs§

Config
Root Magellan configuration
LlmConfig
LLM configuration
RegistryConfig
Registry configuration

Enums§

LlmProvider
LLM provider type

Functions§

default_config_path
Get the default config path: ~/.config/magellan/config.toml
load
Load configuration from default location
load_from
Load configuration from a specific path
save
Save configuration to default location
save_to
Save configuration to a specific path