/ai-plugin-toolkit:deepseek-migrationfrom ai-plugin-toolkit
Migrate an existing coding agent or workflow from OpenAI/Anthropic APIs to DeepSeek (deepseek-chat / deepseek-reasoner). Covers endpoint compatibility, environment variables, caching behavior, tool-calling differences, cost levers, and the DeepSeek Harness (dsh) option. Use when a user wants to switch to DeepSeek or cut their LLM bill.
Ships in ai-plugin-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
DeepSeek is OpenAI-API-compatible, and Anthropic-compatible endpoints exist for harnesses like Claude Code — so migration is mostly configuration, not rewrites. What actually breaks is rarely the endpoint; it's caching behavior, tool calling, and cost assumptions.
| Current setup | Path |
|---|---|
| OpenAI SDK / any OpenAI-compatible tool | Point base_url to https://api.deepseek.com, swap the key, set model ids |
| Claude Code | Use the documented Anthropic-compatible endpoint (env-var style config) |
| Want a native harness | DeepSeek Harness (dsh): npx @deepseek-ai/dsh web — reads DEEPSEEK_API_KEY |
| Editor plugins (Cline etc.) | Custom provider with DeepSeek base URL |
Official per-tool guides: https://api-docs.deepseek.com/guides/coding_agents
Model ids: deepseek-chat (fast, cheap, non-thinking) and
deepseek-reasoner (chain-of-thought, slower, pricier).
deepseek-reasoner thinking tokens bill as output. A reasoner call
can cost many multiples of a chat call. Route: routine edits on chat,
escalate only hard debugging/design to reasoner (see the
deepseek-cost-router skill for the ladder).# smoke test the endpoint directly (OpenAI-compatible):
curl https://api.deepseek.com/chat/completions \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"ping"}]}'
Then in your agent: one trivial task on deepseek-chat, one hard task on
deepseek-reasoner, and check the platform dashboard shows both models and
(non-zero) cache-hit tokens. Zero cache hits = your prompt prefix is being
mutated before each call — fix ordering.
The API is compatible enough to keep the old provider configured alongside: route critical-path work to the old provider during the trial week and batch work to DeepSeek. Compare cost per completed task, not per token — reasoner tokens cost more but can replace whole retry loops.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub zhangliang0115/ai-plugin --plugin ai-plugin-toolkit8 skills in this plugin
/claude-plugin-devPackage and publish a Claude Code plugin and marketplace (.claude-plugin/ manifests, skills, commands, agents, hooks) with a dual-target twist: the same repo simultaneously serves DeepSeek Harness (dsh), Codex, Gemini CLI and Copilot via plain skills and a dsh bundle. Use when creating a Claude Code plugin, setting up a marketplace repo, or making one repo installable across every agent./deepseek-cost-routerRoute coding tasks between DeepSeek chat and reasoning models (deepseek-chat vs deepseek-reasoner) to minimize API cost while keeping quality. Use when configuring an agent to use DeepSeek, choosing a model for a task batch, or optimizing token spend./dsh-plugin-devPackage and publish a DeepSeek Harness (dsh) plugin bundle that registers skills, tools or services. Use when building a dsh plugin, writing a cordis.patch.yml, or installing a GitHub plugin into a dsh profile./improve-claude-mdimprove a CLAUDE.md file using <important if> blocks to improve instruction adherence/show-meHelp the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts./skill-authorWrite, structure, and publish a SKILL.md skill that works across every harness — Claude Code, DeepSeek Harness (dsh), Codex CLI, Gemini CLI, Copilot, Cursor — including the cross-agent gotchas generic guides miss: tier shadowing between project and user roots, discovery rules, and trigger-description design. Use when creating a new skill, fixing a skill that fails to load in some agents, or preparing a skill repo for distribution.