Skip to main content

Claude Code Integration

Claude Code is a command-line developer assistant created by Anthropic. By utilizing GoingMerry's Anthropic compatibility layer, you can configure Claude Code to connect directly to local models.


1. Prerequisites

Ensure the GoingMerry daemon is serving local requests on port 11434 and a code model (like gemma4 or llama4) is pulled and ready:

merry pull gemma4

2. Setting Configuration Overrides

Set environmental variables in your terminal shell to redirect Claude Code traffic to your loopback address:

# Redirect API calls to local GoingMerry
export ANTHROPIC_API_KEY="merry"
export ANTHROPIC_BASE_URL="http://localhost:11434/v1"

# Force Claude Code to resolve models locally
export CLAUDE_CODE_MODEL="gemma4"

3. Execution

Launch the Claude Code utility:

claude

Claude Code will boot, authenticate using your dummy key, and communicate with your local model for code evaluations, file generation, and SCM updates.