Claude Code CLI setup

Anthropic's terminal agent — redirect to CallAI with two environment variables. No third-party GUI required.

Bash / Zsh environment variables
# Add to ~/.zshrc or ~/.bashrc
export ANTHROPIC_BASE_URL="https://api.callaiapi.com/v1"
export ANTHROPIC_API_KEY="sk-live-your-callai-key"

# Start Claude Code
claude

Built-in commands cheat sheet

CommandWhat it doesCost impact
/costLive token usage and USD spend for the sessionMonitor spend
/compactCompress history; keep key context only~70% fewer follow-up tokens
/reviewMulti-file review and git diff scanCode quality pass
/doctorDiagnose terminal, git, and API connectivityFast self-check
💡Prevent token blow-ups: use .claudeignore

Create .claudeignore and excludenode_modules/, dist/, .git/ so full-repo indexing does not burn millions of tokens.

Estimate Claude 3.7 hybrid thinking cost?
Compare input, output, and thinking tokens with the free calculator.
Open cost calculator →