A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
github.com/portkey-ai/gatewayIndexed at 669825cUp to date with upstream
AI Gateway routes requests to 250+ LLMs using a single fast, friendly API—consuming client prompts plus provider configuration, applying routing/reliability guardrails, and producing streamed model responses (and optional realtime events) back to your app. In addition to core routing, it includes an MCP Gateway that provides a centralized control plane for managing MCP (Model Context Protocol) servers across your organization, so teams can govern “what tools can run” alongside “which models can answer.”
Written by gpt-5.4-nano from the index
661 files and 2,373 symbols in 5 modules, led by TypeScript (581 files) and JavaScript (6).
Code health
This codebase scores 7.4 out of 10 for code health, which we rate good. It also scores maintainability 7.8 and static performance 9.9 out of 10. The three are scored separately and never blended into one number.
On the leaderboards:#17 of 37 TypeScript repos
2 things worth doing this quarter.
Fix 1 broken reference in .github/README.cn.md
The document points readers and agents at a path this repository no longer has.
Delete 26 unused symbols and files (562 lines)
Nothing in the graph reaches them, across 14 files; every reader and agent pays to skip them.
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.
https://api.repowise.dev/mcp/portkey-ai/gatewayOne command, run anywhere. Adds the server to your local Claude Code config.
Docsclaude mcp add --transport http repowise https://api.repowise.dev/mcp/portkey-ai/gateway \ --header "Authorization: Bearer rw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This repo is public, so anyone with a Repowise account and an API key can connect.
Try asking
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.
Sign in with GitHub and we check that you are an admin or maintainer of portkey-ai/gateway. Then add a badge to the README that links readers here.
Add this URL as a custom connector and sign in with repowise when asked. No API key to copy.
https://api.repowise.dev/mcp/portkey-ai/gatewayFor maintainers
Every badge is public, cached, and updates on its own after every index. Nothing to install.
Links to this page, with no score on it. Adding it also re-indexes the repo every week.
[](https://repowise.dev/repo/portkey-ai/gateway?src=badge_wiki)The repo's health score out of 10, from the latest index.
[](https://repowise.dev/repo/portkey-ai/gateway?src=badge_health)A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.
[](https://repowise.dev/repo/portkey-ai/gateway?src=badge_card)A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API. This page is a map of the portkey-ai/gateway repository, written primarily in TypeScript, rebuilt from the source each time it is indexed. Repowise parses every symbol, computes a dependency graph, scores per-file code health from complexity, duplication, test coverage and churn, mines git history for hotspots and ownership, and lifts the architectural decisions into documentation you can read here or query through MCP.
The codebase has 661 files and 2,373 symbols in 5 modules, led by TypeScript, JavaScript and Dockerfile. Code health is 7.4 out of 10, rated good.
Use the links above to open each view, or connect this repository to your agent for grounded answers inside Claude, Cursor, Codex or VS Code.