kim-setup

kim-setup is a command for Claude Code from KimYx0207/Kim_Service. It costs 25 tokens per session (735 once invoked), scanned A, original, MIT.

A read-only environment check for Claude Code, Codex, Gemini, and their registered MCP tools. MCP is a way for an AI assistant to connect to external tools.

In plain words
What is it for?
Use it to check tool versions, MCP registration, and whether credentials or proxy settings are configured, without revealing their values.
Why use it?
It shows whether the required command-line tools and connections are available without installing software or changing configuration.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to check tool versions, MCP registration, and whether credentials or proxy settings are configured, without revealing their values.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kimyx0207/kim_service/kim-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/KimYx0207/Kim_Service

Made for: Claude Code.

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 kim-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/kimyx0207/kim_service/kim-setup/github.svg)](https://agentmods.dev/commands/kimyx0207/kim_service/kim-setup)
Your own site
<a href="https://agentmods.dev/commands/kimyx0207/kim_service/kim-setup"><img src="https://agentmods.dev/badge/commands/kimyx0207/kim_service/kim-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kim-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/kimyx0207/kim_service/kim-setup"><img src="https://agentmods.dev/badge/commands/kimyx0207/kim_service/kim-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00025 $0.00735
Opus 5.5 $0.00010 $0.00294
Sonnet 5.5 $0.00005 $0.00147
Haiku 4.5 $0.00003 $0.00073

Measured 1mo ago against content hash f3035917d511, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kim-setup scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/claudecode-codex-gemini/host/claude/commands/kim-setup.md · 74 lines

What it actually says

Kim Service 执行门(必须先执行)

  1. 先复述原始用户意图,并列出本次只读检测项;本命令不自动安装、不写 MCP 或用户级配置。
  2. check 只检测,plan 只输出修复计划。需要项目级安装时,展示 kim-ccg plan 结果,必须由用户另行明确批准 apply。
  3. 认证与代理只报告 configured 或 disabled,不得输出值、URL、端口、Token 或凭证。
  4. MCP 仅对应本 Tool 的 cli.mjs mcp codex 与 cli.mjs mcp gemini 运行时;不要读取或创建仓库旧配置、用户目录会话文件或持久日志。

Kim环境检测命令

运行模式:$ARGUMENTS(默认 check)。除 check 和 plan 外拒绝执行。

1. 基础与 CLI 检测

只运行版本/存在性检查:

node --version
claude --version
codex --version
gemini --version

如果宿主环境无法直接启动 npm shim,报告 installed but host launch unresolved,不要改 PATH、执行策略或用户配置。

2. MCP 注册状态

从当前宿主的 MCP 工具列表检查 mcp__codex__codex 与 mcp__gemini__gemini。不要通过读取某个固定配置文件推断已注册。

若缺失,输出如下计划,不执行:

  1. 定位 Kim Service 中本组件的绝对路径。
  2. Codex server command: node <component>/cli.mjs mcp codex。
  3. Gemini server command: node <component>/cli.mjs mcp gemini。
  4. 由用户在实际 MCP 宿主中添加配置并重启宿主。

3. 认证与代理状态

只检查是否配置,输出示例:

OPENAI_API_KEY status: configured|disabled
GEMINI_API_KEY status: configured|disabled
HTTP proxy forwarding: configured|disabled
HTTPS proxy forwarding: configured|disabled

不得回显任何变量值。代理默认不转发;只有操作员显式设置 KIM_CCG_FORWARD_PROXY=1 时,运行时才会验证并转发无凭证 HTTP(S) 代理 URL。

4. 项目级宿主资产

需要安装 Claude commands/Skill 时,先运行 dry-run:

node <component>/cli.mjs install --target <project-root>

展示目标文件、冲突和哈希。用户明确批准项目写入后,才可建议:

node <component>/cli.mjs install apply --target <project-root> --confirm-project-write

冲突文件默认拒绝;不得自动添加 --replace。

5. 输出

按 ready / partial / blocked 汇总 Node、Claude、Codex、Gemini、两项 MCP 注册、认证状态与代理转发状态。修复计划必须与检测结果分开,且不得声称已经执行。

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. 1mo ago First seen · 74 lines · 25 tokens per session scan A f3035917d511

Subscribe to this mod's changes

kim-setup is a command published in the GitHub repository KimYx0207/Kim_Service (177 stars, last pushed 5d ago), licensed MIT. It adds 25 tokens to every session and 735 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.