Claude Code model router
Gatekeeper
Routes each request to the right AI agent or skill before your AI picks one. Your rules decide what code can; Jev (TypeSafe) makes the typed call. Installs as Claude Code hooks.
Install
git clone https://github.com/AgriciDaniel/gatekeeper.gitFrom the README
Gatekeeper decides which AI agent or skill should handle a request, before your AI picks one. Commands you type go straight through; the plain requests, where the AI would otherwise guess, get checked by your rules and judged by Jev. Each decision costs a fraction of a cent and takes about half a second.
The engine and rulebooks are tool-neutral. Today it installs as a Claude Code hook.
A gate is a YAML rulebook. Code decides what code can decide (slash commands, keywords, field checks). Jev, TypeSafe's System One model, answers the one semantic question left ("which of these handlers owns this request?") as a typed Choice with a probability for every option. Confidence bands then turn that answer into a verdict:
Every hook decision is logged with the rules that fired, Jev's answers, the band, the cost and the rulebook version, so you tune thresholds from evidence instead of guessing.
See it work
The marketing-team example routes marketing requests across 24 skills owned by 11 roles:
In the second prompt, no single skill is confident, but the skills it could be all belong to one role, so the gate still gives a useful answer. That is rollup: group: Jev picks the fine label and code adds up the probabilities by group.
Two ways to use it
1. Agent selection for Claude Code (gates/agent-selection.yaml). The roster is whatever you have installed: ~/.claude/agents, ~/.claude/skills and your enabled plugins. Two hooks run it:
- UserPromptSubmit judges your prompt and adds the route as context.
- PreToolUse on Agent, Task and Skill denies a call that breaks a confident route or a forbid rule (in enforce mode only).
2. Routing to Markdown procedures (roster.sources: [index]). For setups where the assistant reads a SKILL.md and follows it instead of launching a…Details
- Repository
- AgriciDaniel/gatekeeper
- Website
- skool.com/ai-marketing-hub
- Language
- Python
- License
- MIT
- Last updated
- 23 September 2026
- Topics
- agent-orchestrationagent-routingai-agentsai-routerclaude-codeclaude-code-hooksdeveloper-toolsjevllm-routingmulti-agentpythontypesafe
FAQ
What is Gatekeeper?
Routes each request to the right AI agent or skill before your AI picks one. Your rules decide what code can; Jev (TypeSafe) makes the typed call. Installs as Claude Code hooks. It is a model router for Claude Code, from AgriciDaniel/gatekeeper on GitHub.
How do I install Gatekeeper?
Clone AgriciDaniel/gatekeeper from GitHub and follow the setup steps in its README.
Is Gatekeeper popular?
AgriciDaniel/gatekeeper has 25 GitHub stars and 4 forks. It was last updated on 23 September 2026.
More model routers & proxies
Dsv4 CC Proxy
25HosheaLi/dsv4-cc-proxy
Anthropic API 兼容性代理 — 修复 DeepSeek V4 的 3 个不兼容问题,让 Claude Code 稳定运行。Make DeepSeek V4 work flawlessly with Claude Code.
ClaudeGate
32Santosh-Prasad-Verma/ClaudeGate
High-performance bridge proxy connecting Claude Code CLI & Anthropic SDK to ANY OpenAI-compatible LLM provider (DeepSeek, OpenRouter, Groq, Ollama, Gemini, OpenAI) with zero-crash streaming, failover & secret redaction.
Claude Proxy
34sunflower0305/claude-proxy
Claude Code / Claude Agent SDK proxy for DeepSeek, Qwen, GLM, MiniMax, Kimi and MiMo via Anthropic Messages API with observability
Aweswitch
28Wehuman01/aweswitch
CLI proxy for switching AI model profiles (Claude Code, Codex, etc.)
Freemodel Auto Router
25will-17173/freemodel-auto-router
一个聚合多个服务商的免费模型,自动切换可用模型的桌面工具,并可将 OpenCode Go 订阅转为 Claude Code 可用代理。
Alan Code Agent
25tboulet/Alan-Code-agent
Open-source Python implementation of a Claude-Code-like agent (Gemini CLI, Codex, Copilot...). Usable in CLI, GUI, or as a python library to build upon. Works with any LiteLLM compatible API key, and several local model providers (vLLM, SGLang, Ollama).
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.