export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Created
March 2, 2026 06:42
-
-
Save javabrett/924c1f96ad12e7456d72d56230d02c25 to your computer and use it in GitHub Desktop.
Environment variables to set to connect Claude Code CLI to local Ollama model
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment