Installing Ollama on Mac Mini
Table of Contents
Playing with Ollama on a Mac Mini, only have command line access, let's see how this goes:
mkdir Ollama cd ~/Ollama curl -fsSLO https://ollama.com/install.sh sh install.sh # Password required # Error: "The application /Applications/Ollama.app cannot be opened for an unexpected reason" # Trying... /Applications/Ollama.app/Contents/MacOS/Ollama # Works. Seeing output on screen. Not returned to prompt (maybe # background in future)
In separate terminal:
ollama
Gives the ollama prompt
Installing Claude Code
curl -fsSL https://claude.ai/install.sh | bash # Recommended (and ran): echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc ollama launch claude
# Run qwen by itself
ollama run qwen2.5-coder:7b
# Or as backend for claude
ANTHROPIC_AUTH_TOKEN=ollama \
ANTHROPIC_BASE_URL=http://localhost:11434 \
ANTHROPIC_API_KEY="" \
claude --model qwen2.5-coder:7b