{ programs.opencode = { enable = true; settings = { theme = "opencode"; plugin = ["oh-my-opencode"]; formatter = { alejandra = { command = ["alejandra" "-q" "-"]; extensions = [".nix"]; }; }; mcp = { Ref = { type = "local"; command = [ "sh" "-c" "REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest" ]; enabled = true; }; Anytype = { type = "local"; command = [ "sh" "-c" "OPENAPI_MCP_HEADERS=$(cat /run/agenix/anytype-key) exec bunx @anyproto/anytype-mcp" ]; }; }; }; }; home.file.".config/opencode/oh-my-opencode.json".text = '' { "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", "agents": { "Sisyphus": { "model": "anthropic/claude-opus-4-5" }, "librarian": { "model": "anthropic/claude-sonnet-4-5" }, "explore": { "model": "opencode/big-pickle" }, "oracle": { "model": "anthropic/claude-sonnet-4-5" }, "frontend-ui-ux-engineer": { "model": "anthropic/claude-opus-4-5" }, "document-writer": { "model": "anthropic/claude-opus-4-5" }, "multimodal-looker": { "model": "anthropic/claude-opus-4-5" } }, "disabled_mcps": ["context7"] } ''; }