Skip to content

Support direct connections to localhost/private custom AI inference endpoints #12142

Open

Description

@soguy

Summary

Allow Warp's custom AI inference endpoint feature to connect directly to localhost and private-network URLs from the desktop client, instead of routing through Warp's cloud backend.

Use case

At our company, all calls to hosted LLM providers (AWS Bedrock, OpenAI, Anthropic, etc.) must go through a local LiteLLM proxy running on localhost. The proxy handles auth, audit logging, routing, and quota enforcement. Exposing this proxy publicly (e.g. via ngrok) is not allowed by company policy, so the workaround documented at https://docs.warp.dev/agent-platform/inference/custom-inference-endpoint/#using-local-models is not an option for us.

Today this means we cannot use Warp's custom model feature at all, despite having a fully working OpenAI-compatible endpoint on the same machine.

Why this matters

This setup (a local LiteLLM / OpenAI-compatible proxy in front of a cloud provider) is a common enterprise pattern for governance and compliance. Any company with a similar policy is currently blocked from using Warp custom models, regardless of which cloud LLM they're paying for.

Requested behavior

When a custom inference endpoint URL is on localhost, 127.0.0.1, ::1, or a private IP range, have the Warp desktop client connect to it directly rather than proxying the request through Warp's backend.

Context

Opening this as a separate feature request per @advait-m's suggestion in #11894, so interest can be tracked via upvotes.

Activity

  1. warp-for-oss commented on Jun 3, 2026

    @warp-for-oss
    Contributor

    @soguy

    This issue appears to overlap with existing issues:

    If this report is meaningfully different, please comment with the additional context or distinguishing behavior so a maintainer can review it. Otherwise, a maintainer may close it as a duplicate after review.

    Maintainer details

    I concluded that custom inference endpoints cannot currently use localhost or private-network targets because Warp validates them out in the client and routes configured providers through Warp's backend agent request path..

    Duplicate reasoning

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

    Powered by Oz

  2. added
    area:agent
    duplicate
    enhancement
    repro:high
    triaged
    on Jun 3, 2026
  3. soguy commented on Jun 3, 2026

    @soguy
    Author

    Not different but opened this as a separate feature request per @advait-m's request in #11894, so interest can be tracked via upvotes.

  4. removed
    duplicate
    on Jun 3, 2026
  5. advait-m commented on Jun 3, 2026

    @advait-m
    Member

    thanks for opening! ah, hmm yeah #11589 is the closest, but this issue is a bit more comprehensive; I'll let folks chime in on which one we want to make canonical (sorry didn't notice other one earlier)

    👍 top post to indicate interest

  6. added
    warp:tracking
    on Jun 16, 2026
  7. NathanDotTo commented on Jul 18, 2026

    @NathanDotTo

    The main thrust of this request, as I understand it, is to allow one to use local models via, say, Ollama. Lack of this capability has forced me to start exploring Wave. I am sure that we would all rather that Warp allowed for local models though.

  8. baeckerg commented on Jul 22, 2026

    @baeckerg

    Same issue here - without this functionality I cannot use Warp

  9. soguy commented on Jul 22, 2026

    @soguy
    Author

    Agree. This is why I don't use it anymore, unfortunately.

  10. katdober commented on Aug 3, 2026

    @katdober

    I'm not using local models, but I can't use Warp Terminal anymore because it lacks the ability to connect to an internal AI inference endpoint on a private network. As a heavy terminal user, I’d love to switch back, but this functionality is a dealbreaker for me.

  11. agjs commented on Sep 14, 2026

    @agjs

    This is a feature that anyone serious about their privacy will require, and no sane person will send their prompts and data as plain text to your servers. I highly suggest that you prioritize this, as you will push back a lot of potential users by requesting this. I just spent 30 minutes configuring your terminal, which is great, then realized I can't use this cause you are forcing us to proxy through you, which completely ruins any trust I have in this product.

  12. liuyuf commented on Oct 30, 2026

    @liuyuf

    I had to give up Warp and switch to Orca.😭

  13. fwonce commented on Oct 30, 2026

    @fwonce

    21. I had to give up Warp and switch to Orca.😭

    Yes. Since so much time without fix, it's legitimately ridiculous, making the only selling point looks like a faux.

  14. bennettcomfort commented on Nov 16, 2026

    @bennettcomfort

    +1 — adding a concrete Apple Silicon use case.

    Use case: local MLX inference on macOS.

    mlx_lm.server --model ~/Models/Qwen3.6-35B-A3B-4bit-DWQ --port 8007 \
      --max-tokens 8192 --prompt-cache-size 8192 --decode-concurrency 1
    

    mlx_lm.server exposes an OpenAI Chat Completions-compatible API at http://127.0.0.1:8007/v1, so it's already a shape-compatible drop-in for the existing custom-model endpoint flow. Two things block it today:

    1. The endpoint validator requires HTTPS and rejects localhost / private-address hosts.
    2. Requests are proxied through Warp's backend, which can't reach 127.0.0.1 on the client machine — so even if validation passed, the call would fail.

    Why this is specifically painful on Apple Silicon: MLX is the fastest path to Metal-accelerated inference on M-series Macs, and 4-bit quantized ~30B MoE models now run at usable agent speeds on 32–64GB of unified memory. There is no hosted equivalent — you can't get MLX-backed inference through Bedrock, Anthropic, OpenAI, or Fireworks, so the local-model angle here isn't "cheaper version of a hosted model," it's a capability that currently has no path at all. Zero token cost, no rate limits, works offline, and prompt content never leaves the machine.

    What I'd like to see: treat loopback endpoints (127.0.0.1 / localhost, plus RFC1918 private ranges) as valid custom-model endpoints, and when the resolved endpoint is loopback or private, have the desktop client dial it directly instead of routing through Warp's servers.

    Can test against a live mlx_lm.server instance if that's useful.

  15. Sisyphe42 commented on Nov 18, 2026

    @Sisyphe42

    +1, though honestly for me this goes beyond "let me use a local endpoint". It's a privacy issue.

    I went digging in the code to see why http:// and localhost are rejected. The validator (validate_custom_endpoint_url in crates/ai/src/api_keys.rs) requires https and blocks loopback/private/link-local hosts on purpose. That's because the endpoint URL and the API key ride along with every agent request, and Warp's server is the one that actually calls the endpoint. So blocking private hosts is just SSRF protection on the server side.

    Which means that with "bring your own endpoint", my prompts, my code context and my provider key all still go through warp.dev on every request. That's kind of the opposite of what most people expect when they set up their own endpoint. Usually the whole point is that the data goes straight to their provider/proxy and nowhere else. (#11681 touches on the same thing.)

    It also means relaxing the validator wouldn't fix anything. localhost would just resolve on Warp's server. A real fix needs a client-side direct path, where the app calls the configured endpoint itself and the key never leaves the machine. The current "tunnel it to a public HTTPS URL" workaround makes the privacy story even worse.

    I'd be happy to put up a PR for this if the team is open to it. Since it changes the request path, I'm guessing it'd need to go through the spec flow first?

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:agentenhancementrepro:hightriagedwarp:auto-triage-reviewwarp:tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions