DeepSeek has published a guide for integrating its API with Claude Code, an AI coding assistant that runs in the terminal. The integration is provided as a third-party reference, and DeepSeek does not guarantee its effectiveness or security.
Users who already have Claude Code installed can migrate by setting environment variables to point to the DeepSeek Anthropic API endpoint. For new installations, Windows users need Git for Windows, while Linux/Mac users can install via terminal commands.
The DeepSeek API natively supports Claude Code's web search feature. When triggered, the model will use DeepSeek's web search tool, incurring additional token costs for summarizing search results.
DeepSeek also provides a model mapping for Claude Code and Claude Desktop APP: models starting with claude-opus are mapped to deepseek-v4-pro, and models starting with claude-haiku or claude-sonnet are mapped to deepseek-v4-flash. This allows users to connect to DeepSeek models by changing the base URL and API key in the developer mode of the new Claude Desktop APP.