Skip to content

Config Reference

PieKBS is configured via config.yaml in the KB root directory.

Example

yaml
server:
  port: 8766
  api_key: "your-secret-key"   # omit to disable auth

distill:
  provider: openai              # openai | anthropic | ollama
  model: gpt-4o-mini
  api_key: "${OPENAI_API_KEY}"
  base_url: ""                  # optional, for custom endpoints

watcher:
  debounce_ms: 500              # file change debounce delay

server

KeyDefaultDescription
port8766HTTP server port
api_keyAPI key for MCP auth. Omit to disable.

distill

Required for piekbs distill and piekbs synthesize.

KeyDefaultDescription
providerLLM provider: openai, anthropic, ollama
modelModel name
api_keyAPI key (supports env var substitution)
base_urlCustom API endpoint (optional)

watcher

KeyDefaultDescription
debounce_ms500Milliseconds to wait after last file change before triggering distill

Released under the MIT License.