deepseek-setup

deepseek-setup is a command for Claude Code from XinyuQu/llm-review. It costs 22 tokens per session (496 once invoked), scanned C, original, Apache-2.0.

A guided setup command for connecting code reviews to DeepSeek, an AI model service that uses an API key.

In plain words
What is it for?
Setting up DeepSeek reviews through an API key stored in the operating system keychain or configuration.
Why use it?
It explains where to get the key and helps configure it securely when no command-line login is available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the llm-review plugin — 1 skill, 16 commands shipped together

Good fit Setting up DeepSeek reviews through an API key stored in the operating system keychain or configuration.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add XinyuQu/llm-review
Claude Code
/plugin install llm-review

Made for: Claude Code.

Or install llm-review, the plugin that ships this one along with the rest of its 1 skill, 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deepseek-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/xinyuqu/llm-review/deepseek-setup.svg)](https://agentmods.dev/commands/xinyuqu/llm-review/deepseek-setup)
Your own site
<a href="https://agentmods.dev/commands/xinyuqu/llm-review/deepseek-setup"><img src="https://agentmods.dev/badge/commands/xinyuqu/llm-review/deepseek-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00496
Opus 5 $0.00011 $0.00248
Sonnet 5 $0.00004 $0.00099
Haiku 4.5 $0.00002 $0.00050

Measured 7d ago against content hash de24bfdf0259, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

deepseek-setup scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Advanced — the **user** runs this in their own terminal (never you): `printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider deepseek --transport api --api-key-stdin` (key via s

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**Security — hard rule:** never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now expos
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

commands/deepseek-setup.md · 29 lines

What it actually says

Guided setup for the deepseek provider. Follow this exactly; do not improvise extra steps.

Step 1 — probe status:

node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" setup --provider deepseek --json

Parse the JSON: mode, api (hasKey, primaryEnv, keyHelp), ready, resolvedTransport, reviewCommand. DeepSeek is mode: api-only (no official CLI) — API key only, no subscription option.

Step 2 — if already ready: tell the user it's set up, then AskUserQuestion once: Keep current setup vs Reconfigure. If keep → show status and stop.

Step 3 — API KEY FLOW:

  1. Tell the user where to get a key: api.keyHelp.

  2. Offer how to provide it, most secure first:

    • Recommended: run /plugin, open llm-review config, paste the key into the secure prompt (stored in the OS keychain).
    • Or export api.primaryEnv in their shell for this session.
    • Advanced — the user runs this in their own terminal (never you): printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider deepseek --transport api --api-key-stdin (key via stdin, never in argv; writes ~/.config/llm-review/config.json, chmod 600).

    Security — hard rule: never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now exposed, to add it via the keychain (/plugin) or their own shell env, and to rotate it.

  3. Re-run the Step 1 probe and present it.

Step 4 — finish: state whether the provider is now ready and show the exact review command (reviewCommand, i.e. /llm-review:deepseek). Use AskUserQuestion at most once in this flow.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 29 lines · 22 tokens per session scan C de24bfdf0259

Subscribe to this mod's changes

deepseek-setup is a command published in the GitHub repository XinyuQu/llm-review (6 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 496 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (asks for root, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.