Skip to content

Custom inference endpoint URL validation rejects valid local/private URLs (HTTP and HTTPS) #11591

Closed

Description

@WOODSEE-DIGI

Summary

The "Add custom endpoint" dialog under Settings → Custom inference rejects all local and private-network URLs, making it impossible to connect to local LLM servers such as Ollama or LM Studio.

Problem

The Endpoint URL field shows a red validation border and the "Add endpoint" button remains disabled for every URL format tested, including:

  • http://localhost:11434/v1
  • https://192.168.10.207:1234
  • https://192.168.10.207:1234/v1
  • http://localhost:11434

The placeholder text says "Please include 'https://'" but HTTPS URLs are also rejected. Both IP addresses and localhost fail. Manual retyping to rule out whitespace or copy-paste artifacts made no difference.

This blocks the primary use case for the custom endpoint feature: connecting to locally-hosted OpenAI-compatible servers (Ollama, LM Studio, vLLM, etc.).

Expected behavior

The URL field should accept any well-formed HTTP or HTTPS URL, including localhost, private IPs (e.g. 192.168.x.x), and loopback addresses (127.0.0.1). These are the most common endpoints for self-hosted LLM inference.

Actual behavior

All tested URLs produce a red validation border on the Endpoint URL field and the "Add endpoint" button stays greyed out. No error message explains why the URL is invalid.

Reproduction steps

  1. Open Settings → scroll to Custom inference section.
  2. Click "+ Add custom model".
  3. Fill in Endpoint name, API key, Model name.
  4. Enter any local URL in the Endpoint URL field (e.g. http://localhost:11434/v1 or https://192.168.10.207:1234/v1).
  5. Observe the red border on the URL field and the disabled "Add endpoint" button.

Artifacts

None attached.

Warp version

Latest stable (macOS).

Operating system

macOS

Activity

  1. warp-for-oss commented on May 23, 2026

    @warp-for-oss
    Contributor

    @WOODSEE-DIGI

    Here's what I found while triaging this issue:

    Current builds reject these URLs before saving: custom inference endpoints must use HTTPS and cannot point at localhost or private-network hosts. This means Ollama/LM Studio-style local endpoints are not currently supported by this Settings flow.

    Maintainer details

    I concluded that custom inference endpoint setup currently rejects localhost and private-network model server URLs because the Settings-side validator requires HTTPS and blocks local/private hosts..

    Triage summary

    The reported behavior is reproducible from the current client code: custom inference endpoint setup rejects local model server URLs before they can be saved. The Settings modal requires the endpoint URL to use HTTPS and also rejects localhost, loopback, private, unspecified, and link-local hosts, which covers the reporter's http://localhost:11434/v1 and https://192.168.10.207:1234/v1 examples.

    Evidence

    • app/src/settings_view/custom_inference_modal.rs:864 parses and validates the endpoint URL.
    • app/src/settings_view/custom_inference_modal.rs:869 rejects any scheme other than HTTPS, so plain HTTP local endpoints fail validation.
    • app/src/settings_view/custom_inference_modal.rs:875 rejects hosts classified as local/private, and app/src/settings_view/custom_inference_modal.rs:889 through app/src/settings_view/custom_inference_modal.rs:908 classify localhost, loopback, private IPv4, unspecified, and link-local hosts as restricted.
    • app/src/settings_view/custom_inference_modal.rs:881 makes form validity depend on this validator, which keeps the Add endpoint button disabled.
    • app/src/settings_view/custom_inference_modal_tests.rs:11 and app/src/settings_view/custom_inference_modal_tests.rs:60 explicitly test rejection of HTTP and local/private hosts.
    • Once saved, custom endpoints are serialized into request settings by crates/ai/src/api_keys.rs:239 and included in agent request parameters from app/src/ai/agent/api.rs:229, so the blocking path for this report is the Settings-side validation.

    Duplicate check

    I searched all open non-PR issues in warpdotdev/warp and recent closed issues. #11589 is an exact/near-exact related report for localhost/local URL rejection, while #11514 and #11586 cover model discovery/import improvements and #9303 is a broader custom endpoint feature request that was closed recently. Because the duplicate workflow requires at least two existing likely duplicates before marking an issue as duplicate, I am not applying the duplicate label.

    Classification

    This looks like a product/implementation gap in the custom inference endpoint rollout rather than an underspecified report. Supporting Ollama, LM Studio, vLLM, or other local OpenAI-compatible servers would require relaxing or redesigning the current URL restrictions, with an explicit decision about HTTP and local/private network targets.

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

    Powered by Oz

  2. WOODSEE-DIGI commented on May 23, 2026

    @WOODSEE-DIGI
    Author

    Closing as filed — will monitor for response from the Warp team.

  3. added
    area:agent
    area:settings-keybindings
    enhancement
    repro:high
    triaged
    on May 23, 2026
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-keybindingsenhancementrepro:hightriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions