Skip to content

Instantly share code, notes, and snippets.

@up1
Last active January 22, 2026 15:45
Show Gist options
  • Select an option

  • Save up1/63ce2aee9847a955d11737f4d5c0fbe5 to your computer and use it in GitHub Desktop.

Select an option

Save up1/63ce2aee9847a955d11737f4d5c0fbe5 to your computer and use it in GitHub Desktop.
Ollama with Claude code
$ollama --version
ollama version is 0.14.3
$ollama list
NAME ID SIZE MODIFIED
functiongemma:latest 7c19b650567a 300 MB 4 weeks ago
gemma3:270m b16d6d39dfbd 241 MB 5 months ago
gemma3:1b 8648f39daa8f 815 MB 8 months ago
deepseek-r1:7b 0a8c26691023 4.7 GB 12 months ago
llama3.1:latest 91ab477bec9d 4.7 GB 17 months ago
$export ANTHROPIC_AUTH_TOKEN=ollama
$export ANTHROPIC_BASE_URL=http://localhost:11434
# Start Claude code
$claude
# Set model ที่ใช้งาน
/model model-name
# ดู status
/status
Settings: Status Config Usage (←/→ or tab to cycle)
Version: 2.1.7
Auth token: ANTHROPIC_AUTH_TOKEN
Anthropic base URL: http://localhost:11434
Model: llama3.1:latest
Memory:
Setting sources: User settings
# Hello
hello
hello
⏺ It appears that you are trying to interact with a conversational AI model using a specific set of tools and commands.
However, I'm not aware of the context or the capabilities of these tools.
Could you please provide more information about what you're trying to achieve? Are you trying to have a conversation with
the model, or are you trying to use it for some other purpose?
Additionally, there seem to be some caveats and warnings about not responding to certain messages. Could you clarify what
these mean and how they impact our conversation?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment