Agents > Inference & providers
Custom inference endpoint
# Custom inference endpoint Warp supports **custom inference endpoints** for users who want to power Warp's agents with any OpenAI-compatible inference endpoint — a model router, hosted gateway, or internal infrastructure they already run. This lets you route AI requests through your preferred provider, run inference behind your own gateway, or use a router like OpenRouter or LiteLLM, while keeping the agent experience inside Warp. :::note Custom inference endpoints are available on Free and all eligible paid plans for individual users and organizations with 10 or fewer employees, subject to Warp's [Terms of Service](https://www.warp.dev/terms-of-service). Larger organizations need a Business or Enterprise plan. See [warp.dev/pricing](https://www.warp.dev/pricing) for current availability. ::: ## Key features * **OpenAI-compatible** - Works with any endpoint that implements the OpenAI Chat Completions API. * **Provider flexibility** - Use a model router (OpenRouter, LiteLLM), a model provider with an OpenAI-compatible surface (z.ai), or your own internal gateway. * **No AI credits consumed for inference** - Inference is billed directly by your endpoint provider. On Business and Enterprise, local agent runs that route through a custom inference endpoint still consume [platform credits](/support-and-community/plans-and-billing/platform-credits/) for Warp's platform infrastructure. * **Local configuration** - Endpoint URLs and credentials are stored locally on your device and never synced to the cloud. ## How it works A custom inference endpoint expects your endpoint to implement the **OpenAI Chat Completions API** (`POST /v1/chat/completions`). Any service that exposes a compatible surface can be used as a target: * **OpenRouter** - Aggregates many model providers behind a single OpenAI-compatible API and consolidated billing. * **LiteLLM** - A self-hosted proxy that exposes a unified, OpenAI-compatible API across providers. * **z.ai** - A model provider with an OpenAI-compatible API surface for its models. * **Internal gateways** - Any in-house service that fronts model providers behind an OpenAI-compatible endpoint (for example, a corporate AI gateway with logging, redaction, or access control). When you configure a custom inference endpoint, Warp stores the endpoint URL, model identifiers, and credentials **locally on your device**. They are never synced to Warp's servers. :::caution Custom inference endpoints don't apply to [Cloud Agents](/agent-platform/cloud-agents/overview/). Because the configuration is stored locally, it isn't available to cloud-hosted agent runs. Cloud agent runs always consume [Warp credits](/support-and-community/plans-and-billing/credits/). ::: When a model routed through your endpoint is selected: * Warp **doesn't consume** your [AI credits](/support-and-community/plans-and-billing/credits/) for that request. * Costs are billed directly by your endpoint provider. * Warp doesn't retain or store your endpoint credentials on any of its servers. ## Enabling a custom inference endpoint To enable and configure a custom inference endpoint: 1. In Warp, open **Settings** and search for `inference endpoint` to jump to the configuration. 2. Add your endpoint URL (the base URL that exposes `/v1/chat/completions`) and any required credentials (typically an API key). 3. Specify the model identifier(s) you want to route through this endpoint. 4. Save the configuration. Once added, you'll see your custom models appear in the model picker. When you explicitly select an endpoint-routed model from the model picker, Warp routes the request through your endpoint instead of consuming Warp's AI credits. The configuration flow mirrors the [Bring Your Own API Key](/agent-platform/inference/bring-your-own-api-key/) setup, so the steps will feel familiar if you've already configured BYOK. ## Billing behavior ### Warp AI credits When you select an endpoint-routed model from the model picker, inference is billed directly by your endpoint provider, according to their pricing, rather than drawing from your Warp AI credits. :::note On Business and Enterprise plans, local agent runs that route through a custom inference endpoint still consume platform credits for Warp's platform infrastructure. See [platform credits](/support-and-community/plans-and-billing/platform-credits/) for the full breakdown. ::: ### Auto routing still uses Warp credits Warp's **Auto** models dynamically route across providers using Warp's infrastructure. Because Auto routing depends on Warp, **Auto always consumes Warp's credits**, even if you've configured a custom inference endpoint. To use your endpoint, select the specific endpoint-routed model from the model picker rather than an Auto option. ### Other AI features in Warp Some AI-powered features (Codebase Context, Active AI recommendations, cloud agent runs) rely on Warp's infrastructure and are unaffected by a custom inference endpoint. See the [feature breakdown on the BYOK page](/agent-platform/inference/bring-your-own-api-key/#byok-usage-and-billing-behavior) for which features still consume Warp credits. ## Zero Data Retention (ZDR) Warp is **SOC 2 compliant** and has **Zero Data Retention (ZDR)** agreements with all of its contracted LLM providers. When you use a custom inference endpoint: * Data retention is determined by **your endpoint provider** and any upstream model providers they route to. * Warp **cannot enforce ZDR** for requests sent through a custom inference endpoint. * If your endpoint provider does not have ZDR with the underlying model provider, your requests may be retained according to their terms. Review your endpoint provider's data handling and retention policies before routing sensitive prompts through a custom inference endpoint. ## Centrally managed configuration Custom inference endpoints are configured at the **user level** on every plan. Each user adds their own endpoint locally; centrally configured, admin-managed endpoints for teams are not yet available. Enterprise teams that need centrally managed model routing today should see [Bring Your Own LLM](/enterprise/enterprise-features/bring-your-own-llm/). ## How custom inference endpoints differ from BYOK and BYOLLM Warp offers three ways to bring your own AI infrastructure. Use this table to pick the right one, and follow the links for full details. | Name | Meaning | Plans | | --- | --- | --- | | **[Bring Your Own API Key](/agent-platform/inference/bring-your-own-api-key/)** (BYOK) | Use your own API key for OpenAI, Anthropic, or Google models. Keys are stored locally on your device. | Free and all eligible paid plans | | **Custom inference endpoint** | Connect Warp to an OpenAI-compatible endpoint such as OpenRouter, LiteLLM, z.ai, or an internal gateway. | Free and all eligible paid plans | | **[Bring Your Own LLM](/enterprise/enterprise-features/bring-your-own-llm/)** (BYOLLM) | Enterprise-managed inference through your cloud provider (AWS Bedrock today; Azure Foundry and Google Vertex coming soon), with Warp handling routing, orchestration, governance, and observability. | Enterprise only | Platform credits may apply for local agent runs on Business and Enterprise when using BYOK, a custom inference endpoint, or BYOLLM. See [platform credits](/support-and-community/plans-and-billing/platform-credits/). ## Related resources * [Bring Your Own API Key](/agent-platform/inference/bring-your-own-api-key/) — Use your own OpenAI, Anthropic, or Google API keys. * [Bring Your Own LLM](/enterprise/enterprise-features/bring-your-own-llm/) — Enterprise-managed inference through your cloud provider or approved infrastructure. * [Model Choice](/agent-platform/inference/model-choice/) — Full list of supported models and `model_id` values. * [Credits](/support-and-community/plans-and-billing/credits/) — How Warp credits work and when they're consumed.Connect Warp's agents to any OpenAI-compatible inference endpoint — OpenRouter, LiteLLM, z.ai, or an internal gateway you already run.
Warp supports custom inference endpoints for users who want to power Warp’s agents with any OpenAI-compatible inference endpoint — a model router, hosted gateway, or internal infrastructure they already run.
This lets you route AI requests through your preferred provider, run inference behind your own gateway, or use a router like OpenRouter or LiteLLM, while keeping the agent experience inside Warp.
Key features
Section titled “Key features”- OpenAI-compatible - Works with any endpoint that implements the OpenAI Chat Completions API.
- Provider flexibility - Use a model router (OpenRouter, LiteLLM), a model provider with an OpenAI-compatible surface (z.ai), or your own internal gateway.
- No AI credits consumed for inference - Inference is billed directly by your endpoint provider. On Business and Enterprise, local agent runs that route through a custom inference endpoint still consume platform credits for Warp’s platform infrastructure.
- Local configuration - Endpoint URLs and credentials are stored locally on your device and never synced to the cloud.
How it works
Section titled “How it works”A custom inference endpoint expects your endpoint to implement the OpenAI Chat Completions API (POST /v1/chat/completions). Any service that exposes a compatible surface can be used as a target:
- OpenRouter - Aggregates many model providers behind a single OpenAI-compatible API and consolidated billing.
- LiteLLM - A self-hosted proxy that exposes a unified, OpenAI-compatible API across providers.
- z.ai - A model provider with an OpenAI-compatible API surface for its models.
- Internal gateways - Any in-house service that fronts model providers behind an OpenAI-compatible endpoint (for example, a corporate AI gateway with logging, redaction, or access control).
When you configure a custom inference endpoint, Warp stores the endpoint URL, model identifiers, and credentials locally on your device. They are never synced to Warp’s servers.
When a model routed through your endpoint is selected:
- Warp doesn’t consume your AI credits for that request.
- Costs are billed directly by your endpoint provider.
- Warp doesn’t retain or store your endpoint credentials on any of its servers.
Enabling a custom inference endpoint
Section titled “Enabling a custom inference endpoint”To enable and configure a custom inference endpoint:
- In Warp, open Settings and search for
inference endpointto jump to the configuration. - Add your endpoint URL (the base URL that exposes
/v1/chat/completions) and any required credentials (typically an API key). - Specify the model identifier(s) you want to route through this endpoint.
- Save the configuration. Once added, you’ll see your custom models appear in the model picker.
When you explicitly select an endpoint-routed model from the model picker, Warp routes the request through your endpoint instead of consuming Warp’s AI credits.
The configuration flow mirrors the Bring Your Own API Key setup, so the steps will feel familiar if you’ve already configured BYOK.
Billing behavior
Section titled “Billing behavior”Warp AI credits
Section titled “Warp AI credits”When you select an endpoint-routed model from the model picker, inference is billed directly by your endpoint provider, according to their pricing, rather than drawing from your Warp AI credits.
Auto routing still uses Warp credits
Section titled “Auto routing still uses Warp credits”Warp’s Auto models dynamically route across providers using Warp’s infrastructure. Because Auto routing depends on Warp, Auto always consumes Warp’s credits, even if you’ve configured a custom inference endpoint.
To use your endpoint, select the specific endpoint-routed model from the model picker rather than an Auto option.
Other AI features in Warp
Section titled “Other AI features in Warp”Some AI-powered features (Codebase Context, Active AI recommendations, cloud agent runs) rely on Warp’s infrastructure and are unaffected by a custom inference endpoint. See the feature breakdown on the BYOK page for which features still consume Warp credits.
Zero Data Retention (ZDR)
Section titled “Zero Data Retention (ZDR)”Warp is SOC 2 compliant and has Zero Data Retention (ZDR) agreements with all of its contracted LLM providers.
When you use a custom inference endpoint:
- Data retention is determined by your endpoint provider and any upstream model providers they route to.
- Warp cannot enforce ZDR for requests sent through a custom inference endpoint.
- If your endpoint provider does not have ZDR with the underlying model provider, your requests may be retained according to their terms.
Review your endpoint provider’s data handling and retention policies before routing sensitive prompts through a custom inference endpoint.
Centrally managed configuration
Section titled “Centrally managed configuration”Custom inference endpoints are configured at the user level on every plan. Each user adds their own endpoint locally; centrally configured, admin-managed endpoints for teams are not yet available.
Enterprise teams that need centrally managed model routing today should see Bring Your Own LLM.
How custom inference endpoints differ from BYOK and BYOLLM
Section titled “How custom inference endpoints differ from BYOK and BYOLLM”Warp offers three ways to bring your own AI infrastructure. Use this table to pick the right one, and follow the links for full details.
| Name | Meaning | Plans |
|---|---|---|
| Bring Your Own API Key (BYOK) | Use your own API key for OpenAI, Anthropic, or Google models. Keys are stored locally on your device. | Free and all eligible paid plans |
| Custom inference endpoint | Connect Warp to an OpenAI-compatible endpoint such as OpenRouter, LiteLLM, z.ai, or an internal gateway. | Free and all eligible paid plans |
| Bring Your Own LLM (BYOLLM) | Enterprise-managed inference through your cloud provider (AWS Bedrock today; Azure Foundry and Google Vertex coming soon), with Warp handling routing, orchestration, governance, and observability. | Enterprise only |
Platform credits may apply for local agent runs on Business and Enterprise when using BYOK, a custom inference endpoint, or BYOLLM. See platform credits.
Related resources
Section titled “Related resources”- Bring Your Own API Key — Use your own OpenAI, Anthropic, or Google API keys.
- Bring Your Own LLM — Enterprise-managed inference through your cloud provider or approved infrastructure.
- Model Choice — Full list of supported models and
model_idvalues. - Credits — How Warp credits work and when they’re consumed.