zed icon indicating copy to clipboard operation
zed copied to clipboard

Add support for x.ai (Grok) as Provider

Open notpeter opened this issue 7 months ago • 2 comments

Summary

Currently Zed only supports using X.Ai when overriding the configuration for the OpenAI provider. This means that you can use one or the other, but not both.

Description

This could be implemented either as explicit provider support for X.ai Or by adding support for custom providers which inherit from another provider.

The former would be relatively easy, and might be required if Grok-specific workarounds/tool-calling, etc need to implemented. While the latter would allow configuring multiple OpenAI (or Anthropic, Ollama) providers with destinct secrets, endpoints, models, etc.

notpeter avatar May 06 '25 14:05 notpeter

As a simple start the option to add an api key to the available_models section would already be sufficient though as its the only thing holding proper use back. Even if a separated section would be even better

matthiasg avatar May 13 '25 06:05 matthiasg

We generally avoid putting api_keys in settings and prefer to use your platform secret store (macOS keychain, Linux secrets portals) or environment variables so that users can keep their settings under public version control.

notpeter avatar May 13 '25 08:05 notpeter

I am also heavily using Grok and have credits with them so would love if it could be incorporated as an option.

deverman avatar May 24 '25 01:05 deverman

Hi I second this, just downloaded zed and am enjoying it a lot. Grok is my preferred model so explicit support would be awesome!

charlieolinsky avatar May 24 '25 16:05 charlieolinsky

Why is such an obvious feature still not implemented? For every niche provider there is an option but not Grok?

wiggy9999 avatar Jun 27 '25 07:06 wiggy9999