warp icon indicating copy to clipboard operation
warp copied to clipboard

Feature Request: Support Z.AI API keys for GLM 4.7 model

Open jshsmth opened this issue 10 months ago • 9 comments

Pre-submit Checks

Describe the solution you'd like?

I would like Warm Terminal to support BYOK (Bring Your Own Key) for Z.AI's GLM 4.7 model. This would allow users to connect their own Z.AI API keys and use GLM 4.7 as a custom model within Warm Terminal.

Is your feature request related to a problem? Please describe.

Currently, Warm Terminal's custom model support doesn't include Z.AI as a provider. I have an existing Z.AI API key and want to use GLM 4.7, but there's no way to integrate it. This limits my ability to use my preferred model within Warm Terminal.

Additional context

  • Adding more BYOK provider options gives users flexibility to choose models based on their preferences, existing subscriptions, or regional availability
  • Supporting additional providers like Z.AI would make Warm Terminal more versatile for a wider range of users
  • Users should be able to use custom models this would make Warp Terminal much better.

Operating system (OS)

macOS

How important is this feature to you?

5 (Can't work without it!)

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

jshsmth avatar Jan 29 '26 01:01 jshsmth

Thanks for this feature request!

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

dannyneira avatar Jan 29 '26 18:01 dannyneira

Not just z.ai , ( which I am currently looking to utilize also currently) but any openAI compatible key. This literally would take mere minutes to include a 4th option in the BYOK selection that would be- OPENAI Compatible API- 3 fields, Name of provider, URL and API key. Have it dynamically route through the warp process just as OpenAI keys do so not major coding changes are needed because openai compatible keys operate in the same way , we just need an option to input the URL which to point to.

koko1111 avatar Feb 05 '26 17:02 koko1111

I personally switch my AI coding plan providers from time to time, so I’d really like to see support for BYOK beyond just OpenAI, Google, and Claude. Having a more flexible BYOK option would make Warp much more adaptable.

Jack-Iee avatar Feb 10 '26 06:02 Jack-Iee

Come on Warp Team, I was about to hit subscribe and then checked whether you had wider support than the "Big-3". I'm going to hold of now until you do.

TerrysPOV avatar Feb 27 '26 18:02 TerrysPOV

I quit paying for Warp about a year ago. I'd start paying again if you added z.ai key support.

gambledusty avatar Apr 06 '26 15:04 gambledusty

+1 for Z.AI / OpenAI-compatible BYOK. Generic base URL support would solve this and similar providers without one-off integrations.

cedric-albeke avatar Apr 29 '26 10:04 cedric-albeke

For folks tracking this — there's a community fork OpenWarp that already supports Z.AI / GLM out of the box. Z.AI exposes an OpenAI-compatible endpoint, so in OpenWarp you just paste the Base URL and your Z.AI API key and pick the GLM model — no patches needed.

  • 5 native protocols (OpenAI / OpenAIResp / Anthropic / Gemini / Ollama / DeepSeek) on top of genai 0.6; any OpenAI-compatible endpoint works
  • Credentials stored locally only, never routed through Warp's cloud
  • System prompts are minijinja templates, fully editable (8 model-family templates ported from opencode)
  • models.dev integration for quickly adding model entries
  • Blocks / Workflows / Keymaps / AI command suggestions all preserved (continuously merged with upstream)

Not affiliated with Warp Inc. — sharing in case it helps while the official feature is being considered. Source: https://github.com/zerx-lab/warp

zerx-lab avatar Apr 30 '26 05:04 zerx-lab

Thanks for raising this. @zachlloyd started a discussion for BYO LLM support across BYOK, arbitrary OpenAI-compatible endpoints, local model support, and ACP. Here's the latest update: https://github.com/warpdotdev/warp/discussions/9619#discussioncomment-16831279

bholmesdev avatar May 06 '26 21:05 bholmesdev

Thanks for raising this. Warp now supports custom inference endpoints compatible with the OpenAI Chat Completions API.

For Z.AI / GLM, the recommended path is to configure it as a custom inference endpoint in Settings → AI, as long as it exposes an OpenAI-compatible Chat Completions API.

Docs: https://docs.warp.dev/agent-platform/inference/custom-inference-endpoint/

Closing this as completed now that custom endpoint support is available. If a specific Z.AI or GLM model doesn’t work, please open a new focused issue with the model name, endpoint format, auth setup, and exact error.

petradonka avatar May 22 '26 17:05 petradonka