Skip to content

"Direct Connection" mode for Custom AI Endpoints to bypass Warp proxy #11788

Closed as duplicate

Description

@Pcmhacker-piro

Pre-submit Checks

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:

  1. Data is not truly local

    Even localhost/self-hosted endpoints still proxy requests through Warp servers.

  2. Offline / air-gapped environments do not work

    Warp cannot fully operate with local inference providers without internet access.

  3. Unexpected privacy behavior

    The current “Custom Endpoint” behavior implies direct connectivity, but traffic still transits Warp infrastructure.

  4. Extra network latency

    Requests incur unnecessary proxy hops before reaching the actual endpoint.

  5. 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

  1. Open Warp Settings → AI → Model

  2. Configure a Custom Endpoint such as:


http://localhost:11434

  1. Start a local inference provider (Ollama, LM Studio, etc.)

  2. Disconnect internet access OR monitor outbound connections

  3. 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

Activity

  1. added
    bug
    on May 27, 2026
  2. warp-for-oss commented on May 27, 2026

    @warp-for-oss
    Contributor

    @Pcmhacker-piro

    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 duplicate request for direct/private custom inference endpoint routing; current custom inference is server-mediated and rejects localhost/private URLs..

    Duplicate reasoning

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

    Powered by Oz

  3. Pcmhacker-piro commented on May 27, 2026

    @Pcmhacker-piro
    Author

    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
    }
  4. added
    area:agent
    duplicate
    enhancement
    os:mac
    repro:high
    triaged
    on May 27, 2026
  5. leesa-ui-w commented on May 28, 2026

    @leesa-ui-w
    Collaborator

    Hey @Pcmhacker-piro, thanks for the detailed writeup! Same ground as #11681. Closing this one to consolidate there.

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:agentbugduplicateenhancementos:macrepro:hightriagedwarp:auto-triage-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions