Prerequisites
- WorkBuddy / CodeBuddy installed (codebuddy.cn)
- A ClearMaas API key starting with
sk-
Setup via models.json
WorkBuddy supports file-based model configuration. Create or editmodels.json:
User-level (all projects): ~/.codebuddy/models.json
Project-level (single project): .codebuddy/models.json
Project-level settings override user-level for matching model IDs.
Adding ClearMaas
Setup via UI
Since 2025, WorkBuddy supports graphical model configuration:- Open WorkBuddy settings
- Navigate to Models or AI Settings
- Click Add Custom Model or Add Provider
- Fill in:
Capabilities like tool calling and image input are auto-populated when selecting standard vendors.
Model format
When specifying the model ID, use ClearMaas’sprovider/model-name format:
Ollama and local models
WorkBuddy also supports local models via Ollama. If you have both Ollama and ClearMaas configured, WorkBuddy can route between them:- Ollama:
http://localhost:11434/v1/chat/completions - ClearMaas:
https://api.clearmaas.com/v1/chat/completions
Custom protocol for gateways
If your ClearMaas URL uses non-standard paths, enable Custom Protocol in the advanced settings to skip path validation.Verification
- After adding ClearMaas, select the model from the model picker
- Ask a coding question or run a task
- Check your ClearMaas dashboard to confirm the request was routed