Skip to content

Configuration

Hosomaki is zero-configuration by default. The optional config file lets you override the LLM provider, model, endpoint, and output behavior.

Config file

Hosomaki searches for a config file named config.yaml in:

  1. ~/.config/hosomaki/
  2. $HOME

Example

yaml
# ~/.config/hosomaki/config.yaml
ai:
  provider: ollama
  endpoint: http://localhost:11434
  model: llama3.2:3b
  timeout: 120s        # increase for slow hardware or large models
output:
  color: true
  language: en
KeyDefaultDescription
ai.providerollamaAI backend (currently only ollama is supported)
ai.endpointhttp://localhost:11434Ollama API endpoint
ai.modelllama3.2:3bAny model available via ollama list
ai.timeout120sRequest timeout
output.colortrueColorized terminal output
output.languageenLanguage for AI responses

Environment variables

Every config key can be overridden with an environment variable prefixed HOSOMAKI_, using the nested key path:

bash
HOSOMAKI_AI_MODEL=mistral hosomaki status
HOSOMAKI_AI_ENDPOINT=http://gpu-box:11434 hosomaki doctor