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
| Command | What it does | Cost impact |
|---|---|---|
| /cost | Live token usage and USD spend for the session | Monitor spend |
| /compact | Compress history; keep key context only | ~70% fewer follow-up tokens |
| /review | Multi-file review and git diff scan | Code quality pass |
| /doctor | Diagnose terminal, git, and API connectivity | Fast 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.