Skip to content

Instantly share code, notes, and snippets.

@javabrett
Created March 2, 2026 06:42
Show Gist options
  • Select an option

  • Save javabrett/924c1f96ad12e7456d72d56230d02c25 to your computer and use it in GitHub Desktop.

Select an option

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
export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment