Claude Code
This tutorial walks you through using Kimchi's Serverless Endpoints with Claude Code, Anthropic's agentic coding tool. You'll route Claude Code through Kimchi to use open-source LLMs like Kimi K2.6 and MiniMax M2.7 as drop-in replacements.
Overview
By the end of this tutorial, you'll be able to:
- Point Claude Code at Kimchi as its model provider
- Use Kimi K2.6 for agentic coding tasks via Claude Code's interface
- Switch between supported open-source models on demand
Kimchi exposes an Anthropic-compatible endpoint for Claude Code, so the same API key and base URL work with any tool that speaks the Anthropic Messages API.
Prerequisites
- A Kimchi API key β Go to Kimchi β API Keys and click Create API key. Copy the key and store it securely.
- Node.js 18 or higher β Check your version with
node --version - Claude Code installed:
npm install -g @anthropic-ai/claude-codeclaude --versionConfigure Claude Code
Switching Models
To swap the active model, update ANTHROPIC_MODEL and restart Claude Code. Common pairings:
| Model | Best for |
|---|---|
kimi-k2.6 | Agentic coding, image analysis (latest) |
kimi-k2.5 | Agentic coding, long-context reasoning |
minimax-m2.7 | Fast code execution and edits |
IDE Integration
Claude Code's VS Code and JetBrains extensions inherit the same environment variables when launched from a shell where they're set. If you launch your IDE from the macOS Dock or Windows Start menu, configure the variables at the OS level so they're picked up by GUI applications.
On macOS, uselaunchctl setenv ANTHROPIC_BASE_URL https://llm.kimchi.dev/anthropic(and similar for the other variables) to make environment variables visible to GUI apps.
Next steps
Updated 19 days ago
