Claude Code Integration
You can configure Claude Code to direct its requests through the LeanMCP AI Gateway by using environment variables.Configuration
Claude Code reads its settings from a JSON configuration file. You can inject environment variables directly into this configuration to override the default Anthropics API endpoints.Locate Configuration File
Find your
.claude/settings.json file. This is typically located in your home directory:- Windows:
C:\Users\<your-username>\.claude\settings.json - macOS/Linux:
~/.claude/settings.json
usage
Once configured, simply useclaude commands as normal. All requests will be routed through the LeanMCP AI Gateway, providing you with unified logging and observability.