Claude Code model router
Sparda
AI writes. SPARDA proves. A deterministic, offline gate that catches when an AI edit removes a guard, exposes a route, or breaks an invariant — no API key, right in the agent edit loop.
Install
/plugin marketplace add zakariagharzouli/spardaRun inside Claude Code, then /plugin to pick what to install from it.
npx sparda-mcp apocalypse # prove the tree is safe to deploy — exit 1 on any real risk, or on an unverified premiseFound in the project README. Check it for setup steps after installing.
git clone https://github.com/zakariagharzouli/sparda.gitFrom the README
SPARDA 🇫🇷 Français — _L'IA écrit. SPARDA prouve._ Un gate déterministe et hors-ligne qui détecte quand une modif d'IA retire une garde, expose une route ou casse un invariant — sans clé API, directement dans la boucle d'édition de l'agent. Pour tout comprendre en 10 minutes (douleur, architecture, vision) : SPARDA-EXPLIQUE.md. AI writes. SPARDA proves. L'IA écrit. SPARDA prouve. The trust layer for AI-written backends. SPARDA compiles your backend — routes, database queries, state mutations, guards, side-effects — into one deterministic behavior graph, then statically proves what can and can't break before you ship: no unguarded mutation, no broken invariant, no non-atomic aggregate write. 100% local · deterministic · zero API key · no cloud account. It fails loudly on a real risk, and when it can only see part of your app it says PROVEN (PARTIAL) — never a false green. And when it can prove it was not even looking at your whole app, it says PREMISE NOT VERIFIED and claims nothing at all. 60-second proof From your Express, FastAPI, Flask, Next.js, NestJS or Medusa app — nothing to configure: Under the hood it compiles your backend into one language-agnostic graph — the Unified Behavior Graph (UBG), serialized as .sparda/ubg.json under the SBIR specification (SPARDA Behavior IR) — and every command is a pass over that graph. The wedge — catch an AI edit that removes a guard, in the loop The one thing a text-diff review and a pattern scanner structurally can't do: prove that this specific edit dropped a protection the previous version had. sparda gate diffs the behavior graph before/after an edit and blocks a regression — deterministic, offline, sub-second, exit 2 (the Claude Code PostToolUse contract that stops the agent's edit loop). See it end-to-end in one…
Details
- Repository
- zakariagharzouli/sparda
- Language
- JavaScript
- Last updated
- 16 September 2026
- Topics
- ai-agentsai-code-reviewauthorizationbolaclaude-codeguardrailsmcpsecuritystatic-analysistrust-layer
- Listed in
- awesome-claude-code
FAQ
What is Sparda?
AI writes. SPARDA proves. A deterministic, offline gate that catches when an AI edit removes a guard, exposes a route, or breaks an invariant — no API key, right in the agent edit loop. It is a model router for Claude Code, from zakariagharzouli/sparda on GitHub.
How do I install Sparda?
Run npx sparda-mcp apocalypse # prove the tree is safe to deploy — exit 1 on any real risk, or on an unverified premise, then follow the setup in the README.
Is Sparda popular?
zakariagharzouli/sparda has 9 GitHub stars and 1 forks, and is included in 1 curated Claude Code list. It was last updated on 16 September 2026.
More model routers & proxies
Remora CC
26Nanako0129/remora-cc
Session-scoped GPT-5.6 agent routing for Claude Code
Gemini Claude Bridge
6weijiafu14/gemini-claude-bridge
Production-grade Gemini ↔ Anthropic Claude protocol converter. Use Gemini as Claude Code backend.
Infinite Claude Code
29juanitogit/infinite-claude-code
Infinite, 100% Free, Zero-latency Multi-provider AI Router for Claude Code CLI & Desktop with real-time SSE streaming, auto-failover across 51 providers, and Cyber HUD telemetry.
Claude Overlay
3mzmmoazam/claude-overlay
Manage project-level Claude Code configuration for custom model providers (Databricks, Bedrock, OpenRouter, LiteLLM, Cloudflare)
Claude Code Proxy
26sunjackson/claude-code-proxy
一个功能强大的跨平台桌面应用,用于管理 Claude Code 的本地代理服务
Permafrost
25jianzhichun/permafrost
Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.