How to connect Claude Code CLI to a local llama.cpp server I’ve seen a lot of people struggling to get Claude Code working with a local llama.cpp setup, so here’s a quick guide that worked for me. 1. CLI (Terminal) Add this to your .bashrc (or .zshrc): bash export ANTHROPIC_AUTH_TOKEN="not_set" expo