> For the complete documentation index, see [llms.txt](/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Bring your own LLM

Route Warp's agents through your organization's managed inference infrastructure for governance, billing control, and model flexibility.

Warp supports **Bring your own LLM (BYOLLM)** for Enterprise teams that want to run inference on their own managed infrastructure. BYOLLM covers two patterns: cloud-provider Model-as-a-Service (AWS Bedrock, Google Vertex AI, Azure AI Foundry) and approved internal inference gateways.

With BYOLLM, your team uses Warp’s agents while Warp manages routing, orchestration, governance, and observability across the providers you’ve approved. Inference runs in your environment; admins control which models are available to whom.

Caution

**AWS Bedrock** is the GA implementation today. **Google Vertex AI** and **Azure AI Foundry** support is on the roadmap. Approved internal gateways are evaluated on a case-by-case basis with your Warp account team.

BYOLLM applies to interactive agents in the terminal. Cloud agents do not yet support BYOLLM routing.

Note

BYOLLM is only available on Warp’s Enterprise plan. Contact [warp.dev/contact-sales](https://www.warp.dev/contact-sales) to learn more.

## How BYOLLM differs from BYOK and Custom inference endpoint

Warp offers three ways to bring your own inference into the product. BYOLLM is one of them, and it serves a different use case than the others.

| Name | Meaning | Plans |
| --- | --- | --- |
| Bring your own API key (BYOK) | User-level API keys for OpenAI, Anthropic, or Google. Each user configures their own key locally; Warp uses it to call the provider directly. | Free, Build, Max (orgs with 10 or fewer employees); Business or Enterprise required for larger orgs |
| Custom inference endpoint (CIE) | User-level OpenAI-compatible endpoint such as OpenRouter, LiteLLM, z.ai, or an internal gateway. Each user configures the endpoint locally. | Free, Build, Max (orgs with 10 or fewer employees); Business or Enterprise required for larger orgs |
| Bring your own LLM (BYOLLM) | Enterprise-only managed inference infrastructure: cloud-provider Model-as-a-Service (Bedrock, Vertex, Foundry) or approved internal gateways. Warp manages routing, orchestration, governance, and observability for the whole team. | Enterprise |

Note

BYOK and custom inference endpoint support are available for individual users and organizations with 10 or fewer employees, subject to Warp’s Terms of Service. Companies or organizations with more than 10 employees require a Warp Business or Enterprise plan to use these features.

Use [Bring your own API key](/support-and-community/plans-and-billing/bring-your-own-api-key/) or [Custom inference endpoint](/support-and-community/plans-and-billing/custom-inference-endpoint/) when an individual developer wants to authenticate to a provider with their own key or endpoint. Use BYOLLM when an organization wants Warp to manage inference routing across approved providers for the whole team.

Note

Centrally configured BYOK and Custom inference endpoint for Enterprise — where admins approve providers or endpoints for the entire organization through the Admin Panel — are a fast-follow after launch, not at launch. Until then, BYOK and CIE remain user-level configurations, and BYOLLM remains the path for admin-managed inference infrastructure.

## Key features

-   **Cloud-native credentials** - Authenticate using each user’s cloud-native identity (AWS IAM today; Google Cloud and Azure identities on the roadmap). Warp does not store API keys.
-   **Admin-enforced routing** - Team admins configure which models are available to users in AWS Bedrock, with the ability to disable non-Bedrock model access entirely.
-   **Consolidated billing** - Inference costs are billed directly to your AWS account, leveraging existing cloud commitments.

## How BYOLLM works

When BYOLLM is enabled, Warp redirects inference calls to your AWS Bedrock environment instead of using model providers’ direct APIs.

Here’s the high-level flow:

1.  **Admin configures routing** - Your team admin sets routing policies in Warp’s admin settings (e.g., “Route Claude Sonnet 4.5 through AWS Bedrock; disable direct Anthropic API”).
2.  **Team members authenticate** - Each team member authenticates to AWS locally using the AWS CLI (`aws login`).
3.  **Warp routes requests** - When a team member uses an interactive agent in the terminal, Warp uses their short-lived session credentials to authenticate requests to your configured AWS Bedrock API endpoint.
4.  **Inference executes in your cloud** - The model runs in your AWS account. Responses return to the Warp client.

### Credential lifecycle

BYOLLM uses **cloud-native IAM authentication**, not long-lived API keys:

-   **Automatic refresh** - Session tokens refresh automatically every ~15 minutes. Users can enable auto-refresh by opening **Settings** and searching for `AWS Bedrock`, or when prompted during first credential expiration. With auto-refresh enabled, sessions can run uninterrupted for up to 12 hours (depending on your AWS admin configuration).
-   **Per-user credentials** - Credentials are not shared across the organization. Your cloud provider’s default credential provider chain (e.g., AWS CLI) provisions and refreshes them locally.
-   **No storage or logging** - Warp never stores or logs your cloud session tokens on its servers.

This approach ensures access management stays with your cloud provider, giving admins member-by-member control.

### Model availability

BYOLLM supports the intersection of models that Warp supports and models available on AWS Bedrock. Currently, only **Claude models** (Anthropic) are available through AWS Bedrock. OpenAI and Google models are not available on Bedrock.

To determine which models you can use with BYOLLM:

-   [Model Choice](/agent-platform/capabilities/model-choice/) - Full list of Warp-supported models.
-   [Supported models in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html) - AWS Bedrock model availability.

A model must appear on both lists to be available through BYOLLM.

## Enabling BYOLLM

### Prerequisites

Before configuring BYOLLM, confirm the following:

-   Your organization has the desired models enabled in AWS Bedrock.
-   You have admin access to both Warp’s [Admin Panel](/enterprise/team-management/admin-panel/) and your AWS IAM settings.
-   Team members have the AWS CLI installed locally.

### Step 1: Configure routing policies (admin)

In the [Admin Panel](/enterprise/team-management/admin-panel/), configure which models should route through AWS Bedrock:

1.  From the [Admin Panel](/enterprise/team-management/admin-panel/), navigate to the BYOLLM or model routing settings.
2.  Select which models should use your cloud provider (e.g., “Claude Sonnet 4.5 via AWS Bedrock”).
3.  Optionally, disable direct API access to enforce provider-only routing.

### Step 2: Provision IAM roles (cloud admin)

Grant your team members the necessary permissions in AWS. Use least-privilege IAM policies.

**Example: AWS Bedrock minimum IAM policy**

```
{  "Version": "2012-10-17",  "Statement": [    {      "Sid": "BedrockModelAccess",      "Effect": "Allow",      "Action": [        "bedrock:InvokeModel",        "bedrock:InvokeModelWithResponseStream"      ],      "Resource": [        "arn:aws:bedrock:*::foundation-model/*",        "arn:aws:bedrock:*:*:inference-profile/*",        "arn:aws:bedrock:*:*:application-inference-profile/*"      ]    }  ]}
```

Note

This policy covers Warp’s current usage. Warp uses global inference profiles for models when available.

### Step 3: Authenticate locally (team member)

Each team member authenticates to AWS using the AWS CLI:

```
aws login
```

Confirm your AWS environment and region are correctly configured before using Warp.

### Step 4: Validate

Run a test prompt in Warp using a model configured for BYOLLM routing. Verify:

-   The request completes successfully.
-   Logs appear in AWS CloudWatch.

## BYOLLM usage and billing behavior

### Billing

When a request routes through BYOLLM:

-   **Warp does not consume credits** for that request.
-   Your cloud provider account receives the inference costs directly.

Note

BYOLLM-routed local agent runs on Enterprise still consume platform credits for Warp’s platform infrastructure (run orchestration, observability, integrations). Inference costs are billed directly to your cloud provider account. See [platform credits](/support-and-community/plans-and-billing/platform-credits/) for the full breakdown.

### Routing behavior

Warp’s agents automatically select the best model for your task while respecting your admin’s routing policies. If you configure a model for BYOLLM, requests for that model route to AWS Bedrock.

### Failover behavior

If a BYOLLM request fails (e.g., due to expired credentials, insufficient permissions, or provider quota limits), Warp attempts to fall back to the next available model your admin has enabled.

For example, if Claude Sonnet 4.5 on Bedrock fails but your admin also enabled it via direct API, Warp falls back to the direct API to avoid disruption. If a fallback uses a direct API model, that request consumes Warp credits.

If no fallback is available (e.g., the admin disabled all non-Bedrock models), Warp displays a clear error message.

## Security and data handling

### Credential security

-   **No long-lived API keys** — BYOLLM uses cloud-native IAM with short-lived session tokens.
-   **Per-user authentication** — Each team member authenticates individually; credentials are not shared.
-   **No storage or logging** — Warp never stores or logs your cloud session tokens on its servers.

### Zero Data Retention (ZDR)

Warp maintains **SOC 2 compliance** and has **Zero Data Retention (ZDR)** agreements with its contracted LLM providers.

However, when using BYOLLM:

-   **Your** cloud account settings determine data retention policies.
-   Warp cannot enforce ZDR for requests routed through your infrastructure.
-   If your cloud account does not have ZDR enabled, your provider may retain data according to their terms.

### Auditability

-   Warp keeps all runs fully steerable and logged within Warp.
-   Your cloud account retains provider-side logs (usage, latency, errors).

## Troubleshooting

### Common errors

-   **Missing or expired credentials** — Re-authenticate using `aws login`. To avoid interruptions, enable auto-refresh by opening **Settings** and searching for `AWS Bedrock`, or when prompted during credential expiration.
-   **Insufficient permissions** — Verify your IAM policy includes the required actions and resources.
-   **Region or model mismatch** — Confirm the model is enabled in your AWS region and that your environment is configured for the correct region.
-   **Provider quota limits** — Check your AWS Bedrock quota and request increases if needed.

### Debugging steps

1.  Verify local authentication: run `aws sts get-caller-identity`.
2.  Check your effective IAM policy for the required permissions.
3.  Confirm the model ID and region match your Warp configuration.
4.  Inspect AWS CloudWatch logs for request details and errors.

## FAQ

### How is BYOLLM different from BYOK and Custom inference endpoint?

See [How BYOLLM differs from BYOK and Custom inference endpoint](#how-byollm-differs-from-byok-and-custom-inference-endpoint) at the top of this page for a comparison and plan-availability details. In short: BYOK and CIE are user-level configurations available to individual users and orgs with 10 or fewer employees on Free, Build, and Max, and to all users on Business and Enterprise. BYOLLM is Enterprise-only managed inference infrastructure where Warp routes the whole team’s traffic through providers your admins have approved.

### Does BYOLLM work with Auto?

Auto model selection is disabled as soon as your admin disables **any** Direct API model, regardless of your AWS Bedrock configuration.

If all Direct API models remain enabled and BYOLLM is configured, Auto will try to use your enabled AWS Bedrock models first, falling back to Direct API only if that fails (e.g., invalid/missing AWS credentials, Bedrock outage).

### Where does compute run and who pays?

Inference runs in **your AWS account**. You pay AWS directly for compute usage. Warp does not consume credits for BYOLLM-routed requests.

### What data does Warp store? Do you store our cloud credentials?

Warp **does not store or log** your cloud session tokens. Credentials are used transiently to sign requests and are never persisted on Warp servers.

Warp stores standard run metadata (timestamps, model used, etc.) but does not retain the content of your prompts or responses when using BYOLLM.

### Can admins enforce provider-only routing and disable Warp-managed models?

Yes. Admins can configure routing policies to require specific models to use BYOLLM and disable direct API access to Warp-managed model endpoints.

## Related resources

-   [Bring Your Own API Key](/support-and-community/plans-and-billing/bring-your-own-api-key/) — User-level keys for OpenAI, Anthropic, and Google
-   [Custom inference endpoint](/support-and-community/plans-and-billing/custom-inference-endpoint/) — Connect an OpenAI-compatible endpoint such as OpenRouter, LiteLLM, z.ai, or an internal gateway
-   [platform credits](/support-and-community/plans-and-billing/platform-credits/) — Warp’s platform-infrastructure credit bucket
-   [Model Choice](/agent-platform/capabilities/model-choice/) — Full list of supported models
-   [Admin Panel](/enterprise/team-management/admin-panel/) — Configure team settings
-   [Contact Sales](https://www.warp.dev/contact-sales) — Get help with enterprise setup
