Skip to content

Support OpenAI-compatible BYOK endpoints (base URL + custom model ID) so Warp can use OpenRouter #9241

Closed as duplicate

Description

@Vic563

Summary

Add support for OpenAI-compatible BYOK endpoints by letting users configure a base URL and custom model ID, so Warp agents can use OpenRouter without requiring a separate first-class provider integration.

Problem

Warp already supports a curated set of built-in models and limited BYOK flows, but there is still no straightforward way for a non-enterprise user to point Warp at an OpenAI-compatible endpoint such as OpenRouter.

That leaves a large gap for users who:

  • already pay for OpenRouter or another OpenAI-compatible gateway,
  • want to choose from more models than Warp exposes directly,
  • need a single routed endpoint for availability, cost control, or provider flexibility,
  • or cannot justify paying for both Warp-managed tokens and a separate provider subscription.

This request is intentionally narrower than a full "bring any model/provider" system. The minimal feature needed here is:

  1. a configurable OpenAI-compatible base URL,
  2. an API key for that endpoint,
  3. a custom model identifier string,
  4. and using that configuration for Warp agent requests when selected.

If Warp supported just that, OpenRouter would work immediately, and the same surface would also unlock many compatible gateways (LiteLLM, internal proxies, Azure-compatible wrappers, etc.) without requiring Warp to add bespoke integrations for each one.

Reproduction steps or desired workflow

  1. Open Settings > AI.
  2. Add a new provider type such as OpenAI-compatible.
  3. Configure:
    • Base URL, for example https://openrouter.ai/api/v1
    • API key
    • Model ID, for example anthropic/claude-opus-4.1 or another OpenRouter model slug
  4. Select that provider/model in an Agent profile or model picker.
  5. Run Warp agent features normally in the terminal.

Artifacts

None attached

Warp version

Unknown

Operating system

macOS

Activity

  1. warp-for-oss commented on Apr 28, 2026

    @warp-for-oss
    Contributor

    @Vic563

    You can view the triage session on Warp.

    Here's what I found while triaging this issue:

    Warp currently documents and exposes BYOK for fixed Anthropic, OpenAI, and Google provider keys with Warp-listed models, but not a configurable OpenAI-compatible base URL plus custom model ID. I’ve routed this as an agent/settings enhancement rather than a bug.

    Maintainer details

    I concluded that feature request to add a configurable OpenAI-compatible BYOK provider with custom base URL and model ID for Warp agent model selection, enabling OpenRouter-style gateways..

    Initial triage

    This is an enhancement request for OpenAI-compatible BYOK support: a user-configurable base URL, endpoint API key, and custom model ID that can be selected for Warp agent requests. The report is not a bug repro; it describes a missing capability with a concrete desired workflow.

    Evidence from current product/code context

    • Warp BYOK documentation currently describes support for Anthropic, OpenAI, and Google API keys, not arbitrary OpenAI-compatible base URLs or model slugs.
    • app/src/settings_view/ai_page.rs renders fixed API-key inputs for OpenAI, Anthropic, and Google.
    • crates/ai/src/api_keys.rs stores provider-key fields and request API keys, but there is no accompanying base URL/custom model configuration path.
    • app/src/ai/llms.rs, app/src/ai/execution_profiles/*, and app/src/terminal/profile_model_selector.rs select models from server-provided LLMInfo choices rather than allowing arbitrary user-entered model IDs.
    • app/src/ai/agent/api.rs and app/src/ai/agent/api/impl.rs send selected model IDs and BYOK keys with agent requests, but do not include user-configured endpoint metadata.

    Likely scope

    This likely spans Settings > AI provider configuration, execution profile/model picker UX, persisted local credential/config storage, and agent request/server protocol routing. Because it introduces visible configuration and model-picker behavior, it likely needs product/design input before implementation.

    Routing

    Suggested labels: enhancement, area:agent, area:settings-keybindings, needs-mocks, repro:high.

    No follow-up questions are needed from the reporter for initial triage; the desired workflow is specific enough to route for product/technical scoping.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  2. robinebers commented on Apr 28, 2026

    @robinebers

    yes please! this would make it the opencode go harness number one for me.

  3. added
    area:agent
    area:settings-keybindings
    enhancement
    repro:high
    triaged
    on Apr 28, 2026
  4. Xytronix commented on Apr 28, 2026

    @Xytronix

    With the open source release this should be top priority

  5. dannyneira commented on Apr 28, 2026

    @dannyneira
    Member

    Thanks for submitting this!

    We already have a request tracking this over at #4687

    If you could please give it a 👍 and subscribe to that request, it would help us gauge interest. We'll post any updates there, so stay tuned!

    We'll be closing this as a duplicate.

  6. added
    duplicate
    on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentarea:settings-keybindingsduplicateenhancementneeds-mocksrepro:hightriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions