# AZ-Gruppe work machine opencode overrides. # The shared base module lives in m3ta-nixpkgs: # modules/home-manager/coding/opencode.nix (coding.opencode options) # Only work-specific provider config and model assignments live here. {inputs, ...}: { coding.opencode = { enable = true; agentsInput = inputs.agents; externalSkills = [ { src = inputs.skills-anthropic; selectSkills = ["pdf" "docx" "frontend-design"]; } {src = inputs.skills-vercel;} ]; # AZ-Gruppe LiteLLM endpoint + available models extraSettings = { provider = { litellm = { npm = "@ai-sdk/openai-compatible"; name = "LiteLLM (AZ-Gruppe)"; options.baseURL = "https://llm.az-gruppe.com/v1"; models = { "gpt-5.2" = { name = "GPT-5.2"; limit = { context = 400000; output = 128000; }; }; "gpt-5.3-codex" = { name = "GPT-5.3 Codex"; limit = { context = 400000; output = 128000; }; }; "claude-haiku-4-5" = { name = "Claude Haiku 4.5"; options = { thinking = { type = "enabled"; budget_tokens = 16000; }; }; limit = { context = 200000; output = 64000; }; }; "claude-sonnet-4-6" = { name = "Claude Sonnet 4.6"; options = { thinking = { type = "enabled"; budget_tokens = 16000; }; }; limit = { context = 200000; output = 64000; }; }; "claude-opus-4-6" = { name = "Claude Opus 4.6"; options = { thinking = { type = "enabled"; budget_tokens = 16000; }; }; limit = { context = 200000; output = 128000; }; }; }; }; }; }; # Model assignments for oh-my-opencode — all via AZ LiteLLM ohMyOpencodeSettings = { agents = { sisyphus.model = "litellm/claude-opus-4-6"; oracle.model = "litellm/claude-sonnet-4-6"; librarian.model = "litellm/claude-sonnet-4-6"; explore.model = "litellm/claude-haiku-4-5"; multimodal-looker.model = "litellm/gpt-5.3-codex"; prometheus.model = "litellm/claude-opus-4-6"; metis.model = "litellm/claude-opus-4-6"; momus.model = "litellm/claude-opus-4-6"; atlas.model = "litellm/claude-sonnet-4-6"; }; categories = { visual-engineering.model = "zai-coding-plan/glm-5"; ultrabrain.model = "litellm/claude-opus-4-6"; deep.model = "litellm/claude-sonnet-4-6"; artistry.model = "zai-coding-plan/glm-5.1"; quick.model = "litellm/claude-haiku-4-5"; unspecified-low.model = "litellm/claude-sonnet-4-6"; unspecified-high.model = "litellm/claude-opus-4-6"; writing.model = "zai-coding-plan/glm-5.1"; }; }; }; }