Repository navigation
Description
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
warp-for-oss commentedon Jun 3, 2026
@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
soguy commentedon Jun 3, 2026
Not different but opened this as a separate feature request per @advait-m's request in #11894, so interest can be tracked via upvotes.
advait-m commentedon Jun 3, 2026
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
NathanDotTo commentedon Jul 18, 2026
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.
baeckerg commentedon Jul 22, 2026
Same issue here - without this functionality I cannot use Warp
soguy commentedon Jul 22, 2026
Agree. This is why I don't use it anymore, unfortunately.
katdober commentedon Aug 3, 2026
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.
agjs commentedon Sep 14, 2026
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.
liuyuf commentedon Oct 30, 2026
I had to give up Warp and switch to Orca.😭
fwonce commentedon Oct 30, 2026
Yes. Since so much time without fix, it's legitimately ridiculous, making the only selling point looks like a faux.
bennettcomfort commentedon Nov 16, 2026
+1 — adding a concrete Apple Silicon use case.
Use case: local MLX inference on macOS.
mlx_lm.serverexposes an OpenAI Chat Completions-compatible API athttp://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:127.0.0.1on 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.serverinstance if that's useful.Sisyphe42 commentedon Nov 18, 2026
+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://andlocalhostare rejected. The validator (validate_custom_endpoint_urlincrates/ai/src/api_keys.rs) requireshttpsand 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.
localhostwould 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?