{
  "$schema": "https://opencode.ai/config.json",
  "compaction": {
    "auto": true,
    "threshold": 0.5,
    "prune": true,
    "reserved": 8192
  },
  "small_model": "local-gateway/qwythos-9b-mtp-q6",
  "plugin": [
    "@whisperopencode/push",
    "openslimedit@latest",
    "opencode-ignore",
    "envsitter-guard@latest",
    "@tarquinen/opencode-dcp@latest"
  ],
  "mcp": {
    "filesystem": {
      "enabled": true
    },
    "git": {
      "enabled": true
    },
    "sequential-thinking": {
      "enabled": true
    },
    "time": {
      "enabled": true
    },
    "memory": {
      "enabled": true
    },
    "fetch": {
      "enabled": true
    },
    "brave-search": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@modelcontextprotocol/server-brave-search"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "BSA0FaB0RdOIt0Jhj72NK3bIaI6pjjB"
      }
    },
    "tavily-search": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@tavily/mcp"
      ],
      "env": {
        "TAVILY_API_KEY": "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"
      }
    },
    "firecrawl": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@firecrawl/mcp"
      ],
      "env": {
        "FIRECRAWL_API_KEY": "fc-a97bf555ef7c4eeb909ee3621ae6c4f4"
      }
    },
    "context7": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  },
  "provider": {
    "local-gateway": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Local Gateway (llama-swap)",
      "options": {
        "baseURL": "http://127.0.0.1:9292/v1",
        "setCacheKey": true
      },
      "models": {
        "qwen36-35b-mtp": {
          "name": "Qwen 3.6 35B MoE + MTP",
          "limit": {
            "context": 230000,
            "output": 16384
          }
        },
        "gemma-26b-200k": {
          "name": "Gemma 4 26B A4B QAT (MTP)",
          "limit": {
            "context": 230000,
            "output": 16384
          }
        },
        "glm-4.7-flash": {
          "name": "GLM 4.7 Flash 30B",
          "limit": {
            "context": 200000,
            "output": 16384
          }
        },
        "ornith-35b-q6-mtp": {
          "name": "Ornith 35B MoE + MTP (Q6_K)",
          "limit": {
            "context": 131072,
            "output": 16384
          }
        },
        "qwythos-9b-mtp-q6": {
          "name": "Qwythos 9B MTP (Q6_K)",
          "limit": {
            "context": 131072,
            "output": 16384
          }
        },
        "ornith-9b-q6": {
          "name": "Ornith 9B (Q5_K_M)",
          "limit": {
            "context": 98304,
            "output": 16384
          }
        }
      }
    },
    "openrouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenRouter",
      "options": {
        "baseURL": "https://openrouter.ai/api/v1",
        "apiKey": "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",
        "setCacheKey": true
      },
      "models": {
        "qwen/qwen3-coder": {
          "name": "Qwen 3 Coder",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        },
        "minimax/minimax-m3": {
          "name": "MiniMax M3",
          "limit": {
            "context": 950000,
            "output": 65536
          }
        },
        "google/gemma-4-31b-it": {
          "name": "Gemma 4 31B IT",
          "limit": {
            "context": 240000,
            "output": 16384
          }
        },
        "qwen/qwen3.7-max": {
          "name": "Qwen 3.7 Max",
          "limit": {
            "context": 120000,
            "output": 32768
          }
        }
      }
    },
    "deepseek": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepSeek",
      "options": {
        "baseURL": "https://api.deepseek.com/v1",
        "apiKey": "sk-56336c59061241ae9bb04e40da2703c3",
        "setCacheKey": true
      },
      "models": {
        "deepseek-v4-flash": {
          "name": "DeepSeek V4 Flash",
          "limit": {
            "context": 950000,
            "output": 16384
          }
        },
        "deepseek-v4-pro": {
          "name": "DeepSeek V4 Pro",
          "limit": {
            "context": 55000,
            "output": 8192
          }
        }
      }
    },
    "nvidia-nim": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "NVIDIA Nim",
      "options": {
        "baseURL": "https://integrate.api.nvidia.com/v1",
        "apiKey": "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",
        "setCacheKey": true
      },
      "models": {
        "nvidia/llama-3.3-nemotron-super-49b-v1": {
          "name": "Nemotron Super 49B",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        },
        "nvidia/llama-3.3-nemotron-super-49b-v1.5": {
          "name": "Nemotron Super 49B v1.5",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        },
        "meta/llama-3.3-70b-instruct": {
          "name": "Llama 3.3 70B",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        },
        "meta/llama-4-maverick-17b-128e-instruct": {
          "name": "Llama 4 Maverick 17B",
          "limit": {
            "context": 950000,
            "output": 16384
          }
        },
        "mistralai/mistral-large-3-675b-instruct-2512": {
          "name": "Mistral Large 3 675B",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        },
        "deepseek-ai/deepseek-v4-flash": {
          "name": "DeepSeek V4 Flash (NVIDIA)",
          "limit": {
            "context": 950000,
            "output": 16384
          }
        },
        "deepseek-ai/deepseek-v4-pro": {
          "name": "DeepSeek V4 Pro (NVIDIA)",
          "limit": {
            "context": 55000,
            "output": 8192
          }
        },
        "qwen/qwen3-next-80b-a3b-instruct": {
          "name": "Qwen 3 Next 80B",
          "limit": {
            "context": 120000,
            "output": 16384
          }
        }
      }
    }
  },
  "model": "local-gateway/qwen36-35b-mtp",
  "instructions": [
    "FABLE_BRAIN.md"
  ]
}