Add support for x.ai (Grok) as Provider
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.
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
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.
I am also heavily using Grok and have credits with them so would love if it could be incorporated as an option.
Hi I second this, just downloaded zed and am enjoying it a lot. Grok is my preferred model so explicit support would be awesome!
Why is such an obvious feature still not implemented? For every niche provider there is an option but not Grok?