Use Ollama models in Antigravity

Pick a provider, add your key, and your model appears in the chat picker.

Can I use my own API key in Antigravity?

Yes. Antigravity Add Model is a free, open-source patch that adds custom providers — OpenAI, Anthropic, Cloudflare Workers AI, Ollama and any OpenAI-compatible endpoint — to the installed app. After the patch, your provider appears in your model dropdown.

Source: GitHub repo

Providers

Every provider preset, one table

The preset fills the endpoint and API format; you enter your provider's API key and an exact model ID.

Provider presets available in Antigravity Add Model
ProviderTypePresetNotesDocs
OpenAICloudopenaiDirect hosted API in the OpenAI Chat Completions format; API key required.Docs
AnthropicCloudanthropicDirect hosted API using the Anthropic Messages format; API key required.Docs
Google GeminiCloudgoogleDirect hosted API using the Google API format; API key required.Docs
OpenRouterCloudopenrouterMulti-model service with a live catalog — fetch, search, and bulk-add models in the editor.Docs
Cloudflare Workers AICloudworkers-aiReplace ACCOUNT_ID in the URL with your 32-character Cloudflare account ID; use a Workers AI API token.Docs
DeepSeekClouddeepseekDirect hosted API; base URL https://api.deepseek.com/v1.Docs
Moonshot / KimiCloudkimiDirect hosted API; base URL https://api.moonshot.ai/v1.Docs
GroqCloudgroqDirect hosted API; base URL https://api.groq.com/openai/v1.Docs
MistralCloudmistralDirect hosted API; base URL https://api.mistral.ai/v1.Docs
xAICloudxaiDirect hosted API; base URL https://api.x.ai/v1.Docs
CerebrasCloudcerebrasDirect hosted API; base URL https://api.cerebras.ai/v1.Docs
Together AICloudtogetherMulti-model service; discovery selects chat models and reads their display names and context limits.Docs
Hugging FaceCloudhuggingfaceMulti-model service via Inference Providers; use a token with Inference Providers calling permission.Docs
SambaNovaCloudsambanovaMulti-model service; tool calling requires a compatible model.Docs
SiliconFlowCloudsiliconflowMulti-model service; international endpoint by default — use the endpoint matching your account.Docs
Novita AICloudnovitaMulti-model service; the current default API prefix is /openai/v1.Docs
Alibaba Cloud Model StudioClouddashscopeDirect hosted API; Singapore/international endpoint by default — region, API key, and model availability must match.Docs
Fireworks AICloudfireworksMulti-model service; discovery reads the public fireworks account catalog.Docs
OllamaLocalollamaLocal server on localhost:11434 — no API key. Start it first, then use Discover local.Docs
LM StudioLocallmstudioLocal server on localhost:1234 — no API key.Docs
vLLMLocalvllmLocal server on localhost:8000 — no API key.Docs
LiteLLMLocallitellmLocal proxy on localhost:4000 — route many providers through one OpenAI-compatible endpoint.Docs
Custom endpointOthercustomAny OpenAI-compatible endpoint or authenticated model gateway — you supply the URL.Docs

Preset names are the provider IDs from the addon's providers.ts. Endpoints, discovery behavior, and gateway credentials live inthe provider guide — and every preset installs the same way, so start with the quickstart.

Screens

Where providers get configured

The model editor, the provider catalog, and the gateway's provider settings.

model editor
Model editor showing provider, API format, model ID, and discovery settings
The preset fills the endpoint and API format — you add the API key and the exact model ID.
model catalog
Search and bulk selection in the model catalog
Isolated browser demo with 450 illustrative model entries.
gateway providers
Provider credentials and endpoint settings in the gateway
Gateway provider settings in an isolated local test profile — no live credentials shown.

Ready to add your first model?

Two commands check your version, then your provider appears in your dropdown.