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

  1. A Kimchi API key β€” Go to Kimchi β†’ API Keys and click Create API key. Copy the key and store it securely.
  2. Node.js 18 or higher β€” Check your version with node --version
  3. Claude Code installed:
npm install -g @anthropic-ai/claude-code
claude --version

Configure Claude Code

Switching Models

To swap the active model, update ANTHROPIC_MODEL and restart Claude Code. Common pairings:

ModelBest for
kimi-k2.6Agentic coding, image analysis (latest)
kimi-k2.5Agentic coding, long-context reasoning
minimax-m2.7Fast 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, use launchctl 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