Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
docs: add env var needed for claude code in docs (#13721)
Parth Sareenb1a0db547b0b
diff --git a/docs/api/anthropic-compatibility.mdx b/docs/api/anthropic-compatibility.mdxindex a0f2cd7fd..f12a0beb1 100644--- a/docs/api/anthropic-compatibility.mdx+++ b/docs/api/anthropic-compatibility.mdx@@ -21,6 +21,7 @@ ollama pull glm-4.7:cloudTo use Ollama with tools that expect the Anthropic API (like Claude Code), set these environment variables:```shell+export ANTHROPIC_AUTH_TOKEN=ollama # required but ignoredexport ANTHROPIC_BASE_URL=http://localhost:11434export ANTHROPIC_API_KEY=ollama # required but ignored```@@ -247,12 +248,13 @@ curl -X POST http://localhost:11434/v1/messages \[Claude Code](https://code.claude.com/docs/en/overview) can be configured to use Ollama as its backend:```shell-ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY=ollama claude --model qwen3-coder+ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY=ollama claude --model qwen3-coder```Or set the environment variables in your shell profile:```shell+export ANTHROPIC_AUTH_TOKEN=ollamaexport ANTHROPIC_BASE_URL=http://localhost:11434export ANTHROPIC_API_KEY=ollama```diff --git a/docs/integrations/claude-code.mdx b/docs/integrations/claude-code.mdxindex 6d1d8322a..33c5351f1 100644--- a/docs/integrations/claude-code.mdx+++ b/docs/integrations/claude-code.mdx@@ -25,6 +25,7 @@ Claude Code connects to Ollama using the Anthropic-compatible API.1. Set the environment variables:```shell+export ANTHROPIC_AUTH_TOKEN=ollamaexport ANTHROPIC_BASE_URL=http://localhost:11434export ANTHROPIC_API_KEY=ollama```@@ -38,7 +39,7 @@ claude --model qwen3-coderOr run with environment variables inline:```shell-ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY=ollama claude --model qwen3-coder+ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY=ollama claude --model qwen3-coder```## Connecting to ollama.com