Skip to content

Ability to set base_url for openai compatible endpoints for using Oz - use any provider instead of the big 3 #9368

Closed

Description

@nate-lrt

Pre-submit Checks

Describe the solution you'd like?

A way to set any base_url for the openai endpoint wen using Oz. That way I have the option of using either locally hosted models (llama.cpp, vllm, sglang) or opensource models that are hosted by third party providers (parasail, deepinfra, openrouter, etc).

Is your feature request related to a problem? Please describe.

I refuse to use Oz until I have the option of running my own locally hosted model or from a trusted third party provider (or on rented hardware like runpod).

Additional context

No response

Operating system (OS)

macOS

How important is this feature to you?

5 (Can't work without it!)

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Activity

  1. added
    enhancement
    on Apr 29, 2026
  2. warp-for-oss commented on Apr 29, 2026

    @warp-for-oss
    Contributor

    @Manoj7ar

    Status: this is still an open, triaged product gap, not a setting that exists today. #9368 is marked duplicate/related to the broader custom LLM endpoint request tracked in #4687, with closely related OpenAI-compatible endpoint threads like #9303 and #9241.

    The reporter has already clarified the intended scope: local interactive Oz in the Warp app, configured through Settings/model picker, with a global endpoint. A draft PR, #9253, adds OpenRouter BYOK model support, but it explicitly does not add arbitrary base_url/custom model catalog support, so it would not fully resolve this request.

    Reasoning

    Used response mode because this run was triggered by an @oz-agent status question on an already-triaged issue; no labels should be changed. Current issue state from GitHub: #9368 is open with labels enhancement, duplicate, triaged, repro:high, area:agent, and area:settings-keybindings. Duplicate/status context: #4687 is open/reopened and is the broad request to allow users to specify LLM endpoints/APIs for other models; #9303 is open and specifically requests custom OpenAI-compatible provider endpoints; #9241 was closed as duplicate of #4687. Implementation evidence: current client code models providers as fixed enum variants only (app/src/ai/llms.rs:86-99 and GraphQL conversion in app/src/server/server_api/ai.rs:2118-2154). BYOK storage is keyed by named providers (crates/ai/src/api_keys.rs:16-31), and the Settings UI creates API key editors for OpenAI, Anthropic, and Google without a generic endpoint/base_url/model-id editor (app/src/settings_view/ai_page.rs:6243-6360). Models are still fetched from the server-approved feature model list (app/src/ai/llms.rs:850-899), so a generic OpenAI-compatible endpoint would require product/design and client/server/provider-routing work beyond adding a single key field. PR #9253 is open draft and its body says it adds OpenRouter as a recognized BYOK provider but intentionally does not fetch arbitrary OpenRouter catalog models client-side, because selected models are validated against the server-approved model list.

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

    Powered by Oz

  3. warp-for-oss commented on Apr 29, 2026

    @warp-for-oss
    Contributor

    @nate-lrt

    You can view the triage session on Warp.

    Here's what I found while triaging this issue:

    Current Warp docs describe BYOK for Anthropic, OpenAI, and Google only; custom OpenAI-compatible base URLs are not documented. Cloud Oz agents also currently do not use BYOK, so clarifying local vs cloud scope is the key product question.

    I have a few follow-up questions before I can narrow this down:

    1. Should this custom OpenAI-compatible endpoint support local interactive Oz runs, cloud/API-triggered Oz agents, or both?
    2. Which configuration surface matters most for your workflow: Warp Settings/model picker, oz agent run flags/config files, or the Oz API/SDK?

    Reply in-thread with those details and the triage workflow will automatically re-evaluate the issue and update the diagnosis, labels, and next steps.

    Maintainer details

    I concluded that enhancement request to let Oz use arbitrary OpenAI-compatible base URLs for local or third-party model providers instead of only Warp-supported provider/model routing..

    Initial triage

    Summary: This is an enhancement request for Oz to support arbitrary OpenAI-compatible base_url endpoints so users can run local models or third-party hosted open-source models.

    Classification: Enhancement request, area:agent. The selected macOS field appears to be the reporter's environment, but the request is not obviously macOS-specific.

    Evidence from code/docs:

    • crates/warp_cli/src/model.rs exposes only a --model override, and crates/warp_cli/src/agent.rs wires that into Oz agent commands without an endpoint/base URL option.
    • app/src/ai/agent_sdk/config_file.rs accepts config-file keys such as model_id, environment_id, base_prompt, mcp_servers, host, and computer_use_enabled; unknown keys are denied, so base_url is not currently part of the local config schema.
    • app/src/ai/ambient_agents/task.rs defines the runtime AgentConfigSnapshot with model_id and related Oz config fields, but no generic provider endpoint.
    • app/src/ai/llms.rs models fixed providers/hosts (OpenAI, Anthropic, Google, Xai, DirectApi, AwsBedrock) and server-provided model choices, while crates/ai/src/api_keys.rs stores provider-specific keys rather than endpoint metadata.
    • app/src/settings_view/ai_page.rs renders BYOK inputs for OpenAI, Anthropic, and Google only. Current Warp docs likewise describe BYOK for Anthropic/OpenAI/Google and note that BYOK does not apply to Oz Cloud Agents; BYOLLM docs describe AWS Bedrock-only routing for interactive Oz agents.

    Likely root cause / feature gap: Oz's current public/local configuration surfaces and BYOK settings do not have a generic OpenAI-compatible endpoint abstraction. Adding this would likely require schema/UI/CLI changes and backend routing decisions, especially if the reporter expects cloud/API-triggered Oz agents to use the endpoint.

    Reproducibility: High for the feature gap: the current config and documented BYOK surfaces do not expose an arbitrary OpenAI-compatible base_url.

    Duplicate check: Recent/open issues include adjacent provider expansion requests (#9321 for Nebius Token Factory and #9314 for Vertex AI/GCP credentials), but they do not request the same arbitrary OpenAI-compatible endpoint capability. Under the two-strong-match duplicate rule, this should not be marked as a duplicate.

    Suggested SMEs: @bnavetta and @ianhodge for Oz CLI/API/agent SDK routing, @abhishekp106 for cloud agent configuration/execution profiles, and @lucieleblanc if the solution includes Settings/BYOK UI.

    Follow-up questions for the reporter:

    1. Should this custom OpenAI-compatible endpoint support local interactive Oz runs, cloud/API-triggered Oz agents, or both?
    2. Which configuration surface matters most for your workflow: Warp Settings/model picker, oz agent run flags/config files, or the Oz API/SDK?

    Question reasoning

    1. Should this custom OpenAI-compatible endpoint support local interactive Oz runs, cloud/API-triggered Oz agents, or both? — Warp's current local BYOK, interactive Oz, and cloud-agent routing have different constraints, and the report says Oz generally without specifying which run mode must work.
    2. Which configuration surface matters most for your workflow: Warp Settings/model picker, oz agent run flags/config files, or the Oz API/SDK? — The existing code has separate settings UI, CLI/config-file, and API payload surfaces; knowing the reporter's primary workflow would materially affect product scope and ownership.

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

    Powered by Oz

  4. added
    area:agent
    needs-info
    repro:high
    triaged
    area:settings-keybindings
    on Apr 29, 2026
  5. nate-lrt commented on Apr 29, 2026

    @nate-lrt
    Author

    @oz-agent Per your questions (in your second comment):

    1. Just local interactive ones.

    2. warp settings/model picker

  6. nate-lrt commented on Apr 29, 2026

    @nate-lrt
    Author

    Per your questions in your first comment:

    1. in-app warp agent mainly, maybe the oz cli as well
    2. i expect the endpoint to be able to be set globally
  7. added
    duplicate
    and removed
    needs-info
    on Apr 29, 2026
  8. Manoj7ar commented on Apr 29, 2026

    @Manoj7ar

    @oz-agent One distinction that may help separate this from the broader duplicate issues:

    This request is specifically about interactive Oz provider routing inside Warp UI, not just arbitrary endpoint support.

    The key workflow is:

    Warp Settings → AI Provider → OpenAI-compatible endpoint
    

    with:

    • base_url
    • API key
    • model list / model ID
    • optional custom headers

    and then using that provider transparently in local interactive Oz sessions.

    That’s a narrower and more concrete product surface than “support local models” or “support arbitrary providers” in the abstract.

    The implementation shape seems pretty bounded:

    1. Add a generic OpenAICompatible provider type alongside current fixed providers
    2. Store base_url + auth metadata in the existing provider config layer
    3. Reuse the existing OpenAI chat/tool-calling contract against that endpoint
    4. Surface it in the model picker/settings UI

    That would unlock a broad ecosystem immediately:

    • Ollama
    • vLLM
    • llama.cpp
    • OpenRouter
    • DeepInfra

    without Warp needing native integrations for each.

    So the ask here is less “support everything” and more “add one provider abstraction that covers many backends.”

  9. nate-lrt commented on Apr 29, 2026

    @nate-lrt
    Author

    Thank you! Sorry I suck at explaining haha but that's exactly what I wanted!

  10. Manoj7ar commented on Apr 29, 2026

    @Manoj7ar

    @oz-agent What's the status on this?

  11. zerx-lab commented on Apr 30, 2026

    @zerx-lab

    For folks tracking this — there's a community fork OpenWarp that already implements BYOP on top of upstream Warp:

    • Plug in any OpenAI / Anthropic / Gemini / Ollama / DeepSeek–compatible endpoint via Base URL + API key (5 native protocols built on genai 0.6)
    • Credentials stored locally only, never routed through Warp's cloud
    • System prompts are minijinja templates, fully editable (8 model-family templates ported from opencode)
    • Blocks / Workflows / Keymaps / AI command suggestions all preserved (continuously merged with upstream)
    • models.dev integration for quickly adding model entries

    Not affiliated with Warp Inc. — just sharing in case it helps while the official feature is being considered.
    Source: https://github.com/zerx-lab/warp

  12. bholmesdev commented on May 6, 2026

    @bholmesdev
    Contributor

    Thanks for raising this. @zachlloyd started a discussion for BYO LLM support across BYOK, arbitrary OpenAI-compatible endpoints, local model support, and ACP. Here's the latest update: #9619 (comment)

  13. petradonka commented on May 22, 2026

    @petradonka
    Contributor

    Thanks for raising this. Warp now supports custom inference endpoints compatible with the OpenAI Chat Completions API.

    This covers the core request to configure an OpenAI-compatible base URL for local interactive sessions in Warp. You can set this up under Settings → AI.

    Docs: https://docs.warp.dev/agent-platform/inference/custom-inference-endpoint/

    Closing this as completed now that custom endpoint support is available for local interactive usage. If you hit a case where BYOK or custom inference endpoints don’t apply, please open a new focused issue with the workflow, endpoint, model, and error details.

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-keybindingsduplicateenhancementrepro:hightriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions