Claude Code Gateway | Portkey

Claude Code gateway for enterprise teams

Route Claude Code through Portkey to get centralized logs, enforce usage policies, track costs, and control access, so your teams can scale it safely and reliably.

Book a demo

Get started for free

Powering 3000+ GenAI teams

Get the control layer Claude Code is missing

Portkey's Claude Code gateway brings visibility, governance, and performance so platform teams can manage usage without slowing teams down.

Get cost visibility across providers

Track token usage and cost per request broken down by provider, route, team, and user.

Learn More

Increase throughput with multi-provider routing

Use routing strategies like fallbacks and load balancing across Anthropic, Bedrock, and Vertex AI providers to maintain throughput even when you hit rate limits.

Learn More

Get end-to-end visibility with detailed logging

Log every Claude Code request with metadata like team, user, provider, route, and token usage.

Learn More

Govern Claude Code usage with fine-grained controls

Set up role-based access, apply rate limits, and manage credentials centrally through the Claude Code gateway.

Learn More

Enforce content policies with guardrails

Protect your AI stack from threats like prompt injections and data leaks using built-in guardrails, without compromising performance.

Learn More

Reduce latency and spend with caching

Speed up repeated requests with simple and semantic caching

Learn More

Built for scale and control

An OpenTelemetry-compatible module that offers end-to-end observability

Fallbacks

Automatically reroute Claude Code requests when a provider fails.

Retries

Retry failed or timed-out requests with configurable logic.

Load Balancing

Distribute traffic intelligently across Claude Code providers to optimize performance.

Analytics Dashboard

Track usage, cost, latency, and error rates across teams and environments.

Guardrails

Enforce prompt filters, token limits, and safety checks before requests are sent.

Metadata Logging

Capture detailed metadata on every request—including user, route, and cost.

SSO

Integrate with your identity provider for seamless authentication and access control.

Org Management

Define teams, roles, and environment-specific access at the org level.

Audit Logs

Maintain a complete record of usage and policy enforcement for compliance.

Enterprise-ready LLMOps platform

Highest standards for security & compliance

Portkey complies with stringent data privacy and security standards so that you can focus on innovation without worrying about data security.

Visit Trust Portal

Audited every quarter
100% secure on-prem deployment with full control

Deploy Portkey in your private cloud for enhanced security, control, and 100% data ownership.

Github 10400 Stars

The most popular open source AI Gateway

Portkey’s AI Gateway is actively maintained by 50+ contributors worldwide, bringing the cutting edge of AI work into the Gateway.

New Integration: Inference.net (wholesaler of LLM...

Kierra Westervelt • Oct 03, 2024

New Integration: DeepSeek AI on Gateway

Alfonso Workman • Oct 01, 2024

Enhance RAG Retrieval Success by 67% using...

Lincoln Geidt • Sep 30, 2024

OpenAI o1-preview and o1-mini on Portkey

Zain Aminoff • Sep 27, 2024

New Integration: Inference.net (wholesaler...

Omar Calzoni • Sep 23, 2024

Changelog

We’re open-source!

Join 50 other contributors in collaboratively developing Portkey’s open-source AI Gateway and push the frontier of production-ready AI.

Read the full changelog

Trusted by Fortune 500s & Startups

Portkey is easy to set up, and the ability for developers to integrate with LLMs is great. Overall, it has significantly sped up our development process.

Patrick L,

Founder and CPO, QA.tech

With 30 million policies a month, managing over 25 GenAI use cases became a pain. Portkey helped with prompt management, tracking costs per use case, and ensuring our keys were used correctly. It gave us the visibility we needed into our AI operations.

Prateek Jogani,

CTO, Qoala

Portkey stood out among AI Gateways we evaluated for several reasons: excellent, dedicated support even during the proof of concept phase, easy-to-use APIs that reduce time spent adapting code for different models, and detailed observability features that give deep insights into traces, errors, and caching

AI Leader,

Fortune 500 Pharma Company

Portkey is a no-brainer for anyone using AI in their GitHub workflows. It has saved us thousands of dollars by caching tests that don't require reruns, all while maintaining a robust testing and merge platform. This prevents merging PRs that could degrade production performance. Portkey is the best caching solution for our needs.

Kiran Prasad,

Senior ML Engineer, Ario

Well done on creating such an easy-to-use and navigate product. It’s much better than other tools we’ve tried, and we saw immediate value after signing up. Having all LLMs in one place and detailed logs has made a huge difference. The logs give us clear insights into latency and help us identify issues much faster. Whether it's model downtime or unexpected outputs, we can now pinpoint the problem and address it immediately. This level of visibility and efficiency has been a game-changer for our operations.

Oras Al-Kubaisi,

CTO, Figg

Used by GenAI teams across the world!

Latest guides and resources

Claude Code documentation

Integrate Portkey with Claude Code for enterprise-grade AI coding assistance

Learn More

Claude Code Limits

Everything We Know About Claude Code Limits

Learn More

Control and visbility for Claude Code

See how Portkey helps you add enterprise-grade governance and control

Learn More

We’re excited to announce Palo Alto Networks has completed the acquisition of Portkey.\ \ Read More.

Product

Solutions

Developers

Resources

Rankings

Pricing

12.5k

Book a demo

Sign Up

The last platform you’ll need in your AI stack

Book a demo

Get started for free

Portkey is a comprehensive platform designed to streamline and enhance AI integration for developers and organizations

Portkey, Inc

2261 Market Street #5205,

San Francisco, CA

Products

AI Gateway

Observability

Guardrails

Prompt Engineering Studio

Agents

MCP Gateway

Security & Compliance

Model Catalog

What’s New

Developers

Documentation

Github(10.2K ⭐️)

Community

API Status

Changelog

Integrations

Error Library

Cookbooks

Company

Pricing

Privacy Policy

Cookie Policy

Terms of Service

DPA

Solution

Startup

Enterprise

Role-Based Access Control

Optimize Your Costs

Centralized Access to AI Models

Org Wide Audit Logs

Network Level Guardrails

Azure

AI Agent Companies

Portkey for Education

Claude Code Gateway

Resources

Blog

Customers

Community (2k 🙋‍♂️)

AI Grants Finder

MCP Ecosystem

Events Calendar

LLM in 25 Report

Safeguard Your Requests

Best AI Gateway Solutions

AI Information

LiteLLM Alternatives OpenRouter Alternatives

Cloudflare AI Gateway Alternatives

Models Model Rankings Portkey 2025 Recap

© 2025 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

We use cookies to personalize content and analyze traffic.