apache / casbin-gateway
See what every AI coding agent on your machine is doing, and whether the API behind it is the one you paid for. Claude Code, Codex, Cursor, Gemini CLI and more: one endpoint for 44 model vendors, A–F API authenticity grading, per-agent permissions, usage and prompt records.
Why this job: says: coding agent, ai coding; topics: coding-agent, claude-code, codex, cursor, opencode, gemini-cli, codex-cli
What it does
- Is the API behind that key what it was sold as?. a reseller can quietly swap in a cheaper model or fake a cache hit, and none of it shows up in the traffic. Authenticity asks the upstream directly and grades it A–F.
- Switch every agent's provider from one place. change an API key or base URL once, and every agent pointed at Gateway picks it up.
- Keep going when a provider runs out. a key out of credit, a rate limit or a relay that is down moves the request on to the next provider, across vendors and APIs, and model routing rules decide which model each request is actually sent and
- Pool several subscriptions. hold several Claude, ChatGPT or Copilot accounts, start each conversation on the plan whose quota resets soonest, keep it there while its prompt cache lasts, see what every plan has left, and start a 5-hour wind
- Add a provider, an MCP server, a prompt or a skill from a link — click a vendor's "add this" button on the web and Gateway opens with what the link carries, before any of it is written.
Get started
No single install command. Read the steps in the README (opens in new tab)
- Maintenance
- Active
- Last commit 9 days ago
- Stars
- 648
- +2 this week
- Licence
- Apache-2.0
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- 1 releases
- None marked latest
- Built with
- Go
- 65% of the code
Is it looked after?
- Contributors
- 2
- Last 90 days
- Issues
- 96% closed
- 3 still open
- Pull requests
- 81 merged
- 1 waiting
- Releases
- 1
- 1 in the last year
- No contributing guide
- Security policy (opens in new tab)
- Code of conduct (opens in new tab)
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| decolua / 9router | 32,150 | yesterday | MIT | No downloads |
| johannesjo / parallel-code | 1,083 | 2 days ago | MIT | Mac, Linux |
| panxunying / ai-coding-welfare | 1,293 | today | MIT | No downloads |
More: languages, topics and project record
Languages
- Go 65%
- TypeScript 33%
- JavaScript 1%
- Python <1%
Topics
- access-control
- agent-monitoring
- ai-agent
- ai-gateway
- anthropic
- api-proxy
- casbin
- claude-code
- codex
- codex-cli
- coding-agent
- cursor
Project record
- JobCoding agents
- StatusListed
- Commits589
- Forks73
- Watching6
- Stars in 28 days+7
- CreatedMay 13, 2017
- First seen by usNov 7, 2026
- CheckedNov 7, 2026
