cheapcode

MahmoodKhalil57/cheapcode
★ 0 stars TypeScript 💻 Code/Dev Tools Updated today
General-agent routing intelligence layer for opencode. 5 tier-IDs (cheap/cheap-fast/smart/smart-fast/auto/local); auto tier classifies tasks by failure-mode signature and dispatches to the documented value-optimum frontier model. Multi-account routing + MCP server for cross-UI account management. Zero patches to opencode upstream.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "cheapcode": {
      "command": "npx",
      "args": [
        "-y",
        "MahmoodKhalil57/cheapcode"
      ]
    }
  }
}

README Excerpt

> A general-agent **routing intelligence layer** for opencode. Knows where each top frontier model fails (speed limits, intelligence limits, cost per task) and dispatches each task to its documented value-optimum model. **Status:** v1.x (M16–M19 shipped, 2026-05-04). Multi-account-per-provider in the fork UI (M16), credential-aware auto-router with cooldown / quota / temporal-anchor / sycophancy-probe / orchestrate composition (M17, 388 tests, first real paired-benchmark receipt), Eve-curated hu

Tools (9)

autoauto (router)cheapcheap-fast (race-K)cheapcode_general_agent_routes_optimallyclassificationsmartsmart (gpt-5-mini)smart-fast (haiku-4.5)