"Direct Connection" mode for Custom AI Endpoints to bypass Warp proxy
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
Describe the bug
When configuring a Custom Inference endpoint in Warp Settings → AI → Model (for example a local Ollama server like http://localhost:11434 or a private OpenAI-compatible endpoint), AI requests are still routed through Warp infrastructure instead of connecting directly to the configured endpoint.
This creates several issues:
-
Data is not truly local
Even localhost/self-hosted endpoints still proxy requests through Warp servers.
-
Offline / air-gapped environments do not work
Warp cannot fully operate with local inference providers without internet access.
-
Unexpected privacy behavior
The current “Custom Endpoint” behavior implies direct connectivity, but traffic still transits Warp infrastructure.
-
Extra network latency
Requests incur unnecessary proxy hops before reaching the actual endpoint.
-
Enterprise/compliance concerns
Organizations using self-hosted AI providers may require guarantees that prompts and responses never leave internal infrastructure.
When a user configures a custom endpoint, requests should optionally connect directly to that endpoint without intermediary routing.
Suggested solution:
-
Add a “Direct Connection” toggle in Custom Endpoint settings
-
When enabled:
-
requests go directly to
endpoint_url -
no Warp proxy is used
-
localhost/private-network endpoints work correctly
-
offline inference becomes possible
-
Example UI:
[ ] Route through Warp Cloud (default)
[x] Connect directly
To reproduce
-
Open Warp Settings → AI → Model
-
Configure a Custom Endpoint such as:
http://localhost:11434
-
Start a local inference provider (Ollama, LM Studio, etc.)
-
Disconnect internet access OR monitor outbound connections
-
Send an AI request in Warp
Observed behavior:
-
requests still depend on Warp infrastructure
-
localhost traffic is not fully direct
-
offline operation fails
Expected behavior
When a Custom Endpoint is configured with “Direct Connection” enabled:
-
requests should go directly to the configured endpoint
-
localhost/private endpoints should work offline
-
no Warp infrastructure should proxy the request
-
connection failures should surface clear UI errors instead of silently falling back
Screenshots, videos, and logs
Packet capture / request inspection would show traffic resolving through Warp infrastructure even when localhost endpoints are configured.
Relevant environments tested:
-
Ollama (
localhost:11434) -
local OpenAI-compatible APIs
-
offline/local inference workflows
Operating system (OS)
macOS
Operating system and version
macOS 15
Shell Version
bash zsh --version
Current Warp version
text v0.2026.xx.xx
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
| Concern | Current Behavior | With Direct Connection |
|---|---|---|
| Privacy | Traffic passes through Warp | Fully direct |
| Offline usage | Not possible | Supported |
| Local models | Limited | Works properly |
| Latency | Extra proxy hop | Direct connection |
| Enterprise adoption | Difficult | More compliant |
Does this block you from using Warp daily?
No
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
@Pcmhacker-piro
This issue appears to overlap with existing issues:
- #11681 — Warp's "Custom Inference" privacy claim is false — requests are proxied through warp.dev
- #11589 — Custom model: localhost / local URLs are rejected when adding a custom model
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 duplicate request for direct/private custom inference endpoint routing; current custom inference is server-mediated and rejects localhost/private URLs..
Duplicate reasoning
- #11681: It reports the same core behavior that custom inference requests are proxied through Warp infrastructure and asks for direct client-to-endpoint calls or accurate disclosure.
- #11589: It reports the same local-model impact: localhost/127.0.0.1 custom endpoint URLs such as Ollama are rejected, blocking direct local OpenAI-compatible model servers.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
This feels like both a trust issue and a functionality limitation in the current Custom Endpoint implementation.
Right now, the UI strongly implies that configuring a Custom Inference endpoint means Warp connects directly to the user-provided endpoint. However, requests are still routed through Warp infrastructure before reaching the target endpoint.
That creates several practical problems:
- Local models (Ollama, llama.cpp, LM Studio, etc.) are not truly local
- Offline / air-gapped AI workflows are impossible
- Sensitive prompts and responses still transit third-party infrastructure
- Enterprise environments may not be able to approve this architecture
- Nearby/self-hosted endpoints incur unnecessary latency from proxy hops
I’d love to contribute a PR for this because the implementation actually seems fairly clean and well-scoped.
Proposed backend approach (Rust)
Introduce a transport/proxy mode enum:
enum ProxyMode {
WarpCloud, // current behavior
Direct, // bypass warp.dev proxy
}
Hey @Pcmhacker-piro, thanks for the detailed writeup! Same ground as #11681. Closing this one to consolidate there.