How to Use DeepSeek, GLM, and Kimi with Claude Code: Setup Examples, Cost Comparison, and Search Charges Starting in November
Claude Code works with DeepSeek, GLM (Z.ai), and Kimi (Moonshot AI) models once you set ANTHROPIC_BASE_URL, each provider's API key, and the model name environment variables. The benefit is that you can swap only the model that answers while keeping the screen, tools, and settings, which helps when you want to cut costs or hit Claude's usage limits, though Anthropic does not support this use. The article draws on official documentation from each provider and Anthropic (checked October 19, 2026) to cover pros and cons, settings.json examples, per-million-token prices for nine models, estimated per-session costs, four factors that change billing, DeepSeek's search charges starting November 1, 2026 ($0.75 per 1,000 successful calls), comparisons with fixed-price plans such as GLM Coding Plan, and code privacy concerns such as DeepSeek's data storage in China.