Summary
Portkey is designed primarily as an enterprise control point for AI traffic: a gateway with rule-based routing, observability, guardrails, prompt management and governance, in hosted, open-source and hybrid forms. AirLLM focuses on coding agents and agentic workloads: Air Router chooses a model for each request or agent step and doesn't log prompts. Choose Portkey for governance across many applications; choose AirLLM for per-step routing of coding-agent work.
At a glance
Portkey describes itself as a production stack for generative AI. It combines an AI gateway, observability, guardrails, governance, prompt management and an MCP gateway. AirLLM is narrower: Air Router is a routing layer for AI coding agents that chooses the model for each step of the work.
One recent change matters if you're evaluating Portkey. Palo Alto Networks completed its acquisition of Portkey on May 29, 2026, and portkey.ai now says "Portkey is now PRISMA AIRS AI Gateway." Product names and plans may change, so check Portkey's site for the current offering.
| Aspect | AirLLM (Air Router) | Portkey |
|---|---|---|
| Designed primarily for | Routing for AI coding agents and multi-step agents: each request or agent step goes to a suitable model through one endpoint. | Enterprises and platform teams that want to "observe, govern, and secure every AI interaction," including "the governance layer for Claude Code, Codex, and other AI coding agents." |
| Deployment model | Hosted service operated by AirLLM. There is no on-premises or self-hosted option. | Hosted SaaS; an MIT-licensed open-source gateway you can run yourself; and Enterprise hybrid, with the data plane in your VPC and the control plane hosted by Portkey. |
| API formats | Anthropic Messages (/v1/messages), OpenAI Chat Completions (/v1/chat/completions) and OpenAI Responses (/v1/responses). | OpenAI Chat Completions, OpenAI Responses and Anthropic Messages, translated between each other. |
| Routing approach | You pick a routing model such as airllm-auto; Air Router matches each request to an underlying model. Agent-step routing, cache-aware decisions and provider fallback. | Configs you write: fallback, load balancing and conditional routing on metadata, request parameters or URL path, plus retries, timeouts, circuit breakers and canary splits. |
| Coding-agent integration | Setup script and per-tool guides for Claude Code, Codex CLI, OpenCode, Aider and Copilot CLI; a compatible endpoint for Cursor, Cline and Roo Code; built into AirCode CLI. | Documented setups for Claude Code, Codex CLI, Cursor, Cline, Roo Code, OpenCode and others, plus a CLI that sets up Claude Code and Codex. |
| Cost controls | Usage budgets per key on monthly plans, prepaid credits on the Token Plan, agent loop protection and a usage dashboard. Budgets are best-effort. | Cost tracking on all plans; budget limits and rate limits for Enterprise and select Pro customers. |
| Caching | Reuses eligible cached responses in short-lived, account-scoped caches, and weighs existing prompt caches before switching models. | Exact-match (simple) caching, plus semantic caching on certain plans. |
| Governance and observability | Usage analytics by team, user and model, with roles and SSO in the dashboard. | OpenTelemetry-compliant logs and traces, guardrails, prompt management and governance features. |
| Pricing model | A Free plan, flat monthly plans, or the usage-based Token Plan. See AirLLM pricing. | A free developer tier, a paid production tier priced by recorded logs and requests, and custom Enterprise pricing. See Portkey pricing. |
| Data handling | AirLLM never uses any prompt to train models. Request content passes through short-lived caches; AirLLM keeps failed requests (secrets removed) to fix them and samples of responses to check routing quality. On the Free plan, model providers may train on and retain prompts. | Records request logs for observability, within plan limits. Enterprise can switch to metrics-only logging, and a per-request header skips storing content. |
Routing approach
Portkey's routing is rule-based and explicit. You write a config that sets a strategy: fallback, loadbalance or conditional. You apply it with a header, a saved config ID or a default on an API key. Fallbacks trigger on any non-2xx response by default, or on the status codes you list. Conditional routing matches on request metadata, parameters such as the model name, or the URL path. Retries (up to five), request timeouts, circuit breakers and canary splits are documented on all plans.
AirLLM makes the model choice for you. You select a routing model that expresses a preference: airllm-auto across supported providers, airllm-anthropic for Anthropic's Claude family, airllm-openai for OpenAI's models, or airllm-agent for your own agents. Air Router then picks the underlying model for each request. It is built around coding-agent sessions: it routes agent steps, weighs existing prompt caches before switching models, escalates to stronger models when needed and falls back across providers.
In short, Portkey gives you a policy engine to express the routing you want. AirLLM gives you routing decisions tuned to coding-agent work, with less to configure and less to control.
Coding-agent integration
Both document the main coding agents:
- Claude Code: Portkey sets
ANTHROPIC_BASE_URL=https://api.portkey.aiwith Portkey headers inANTHROPIC_CUSTOM_HEADERS. AirLLM usesANTHROPIC_BASE_URL="https://api.airllm.ai/"with your AirLLM key asANTHROPIC_AUTH_TOKEN. - Codex CLI: both use a provider in
~/.codex/config.toml. AirLLM's base URL ishttps://api.airllm.ai/v1withwire_api = "responses". - Cursor and Cline: both use the tool's OpenAI-compatible base URL setting.
Anthropic's documentation says it doesn't endorse third-party gateways and doesn't support routing Claude Code to non-Claude models through any gateway. On AirLLM, airllm-anthropic keeps Claude Code on Claude models; see the Claude Code router guide. AirLLM also ships its own coding agent, AirCode CLI, which uses Air Router out of the box.
Cost controls and caching
Portkey tracks cost on every plan through a central pricing table. Its docs reserve budget limits (in dollars or tokens, with optional weekly or monthly resets) and request or token rate limits for Enterprise and select Pro customers. Simple caching is available on all plans. Portkey's docs and pricing page describe semantic-cache availability differently, so check the current plan details.
AirLLM's controls come with every plan. Monthly plans show a weekly usage budget for each key, the Token Plan draws down prepaid credits, and Air Router is designed to interrupt unproductive agent loops before they consume more tokens. These controls are best-effort, not a guarantee that every charge is stopped. Air Router also reuses eligible cached responses and trims repeated context, such as duplicated files and completed tool history, before a request reaches the model.
Deployment and data
Portkey offers the widest range of deployment choices of the two. You can use the hosted service, run the open-source gateway yourself, or use Enterprise hybrid deployments that keep request and response logs in your own VPC. Its observability is built on logging requests. Enterprise customers can switch to metrics-only logging, and the x-portkey-debug: false header skips storing request and response content.
AirLLM is hosted only, and model availability depends on its upstream providers. Requests pass through short-lived, account-scoped caches, which generally expire within 24 hours of last use. When a request fails, AirLLM may keep its content, with secrets removed, to diagnose the failure, and it keeps samples of responses to check routing quality. AirLLM never uses any prompt to train models. The model provider that answers a request processes it under its own terms: on paid plans AirLLM avoids providers that train on prompts, while on the Free plan providers may train on and retain them.
When to choose which
Choose Portkey if
- You need an enterprise control point for all AI traffic, with observability, guardrails, prompt management and governance in one place.
- You want to write explicit routing rules (fallbacks, weighted load balancing, conditions on metadata) across many providers.
- You need self-hosted or hybrid deployment, or you're standardising on Palo Alto Networks' Prisma AIRS.
Choose AirLLM if
- Your main workload is coding agents or multi-step agents, and you want the model chosen per step without writing routing rules.
- You want routing that accounts for prompt caches, repeated context and agent loops.
- You prefer a hosted service with nothing to deploy.
AirLLM doesn't offer a guardrails product, prompt management or self-hosting. If those are requirements, Portkey covers more ground.
Using both
Some teams use more than one gateway: a central gateway such as Portkey for company applications, and Air Router for developers' coding agents. Each coding tool points at one base URL at a time, so decide per tool which service it uses. Usage, budgets and logs are then tracked separately in each service.
Note. Product details change often. This comparison was compiled from each vendor's public documentation on October 20, 2026. Portkey, Prisma AIRS and other product names are trademarks of their respective owners.
Frequently asked questions
Is AirLLM a Portkey alternative for coding agents?
For routing coding-agent traffic, yes: Air Router chooses a model for each step of Claude Code, Codex CLI, Cursor or AirCode work. If you need guardrails, prompt management or company-wide observability, Portkey covers more of that ground.
What happened to Portkey?
Palo Alto Networks completed its acquisition of Portkey on May 29, 2026. portkey.ai now says "Portkey is now PRISMA AIRS AI Gateway," and Palo Alto Networks describes it as the core AI gateway for Prisma AIRS.
Does Portkey choose models automatically?
Portkey's documented routing is config-based: fallbacks, weighted load balancing and conditional routing on metadata, parameters or URL path. AirLLM's routing models choose the underlying model for each request for you.
Can I self-host AirLLM like Portkey's gateway?
No. AirLLM is a hosted service only. Portkey publishes an MIT-licensed open-source gateway and offers hybrid deployments for Enterprise customers.
Which one logs my prompts?
AirLLM passes request content through short-lived caches and keeps failed requests (secrets removed) to diagnose them and samples of responses to check routing quality, and never uses any prompt to train models. Portkey's observability records request logs, with a metrics-only mode for Enterprise and a per-request header that skips storing content.
Related
AirLLM vs OpenRouter
A coding-agent router compared with a unified API for hundreds of models.
ComparisonAirLLM vs LiteLLM
A hosted coding-agent router compared with an open-source, self-hosted AI gateway.
GuideWhat is an AI coding agent router?
Why coding agents benefit from choosing a model for every step.
All comparisonsCompare AirLLM
Every comparison of AirLLM and AirCode with other tools.
Sources
- Palo Alto Networks — Completes acquisition of Portkey
- Portkey website
- Portkey pricing
- Portkey AI Gateway on GitHub
- Portkey docs — Universal API
- Portkey docs — Configs
- Portkey docs — Fallbacks
- Portkey docs — Conditional routing
- Portkey docs — Budget limits
- Portkey docs — Simple and semantic cache
- Portkey docs — Hybrid deployment architecture
- Portkey docs — Configuring request logging
- Portkey docs — Coding agents
- Portkey docs — Claude Code
- Portkey docs — Codex
- Claude Code docs — LLM gateway configuration
Route your coding agents with Air Router
Connect Claude Code, Codex CLI, Cursor or AirCode with one AirLLM key and let Air Router choose the model for each step.