Borrowing it
Nothing to install: this file belongs to KimYx0207/Claudecode-Codex-Gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/KimYx0207/Claudecode-Codex-Gemini/main/.claude/commands/kim-setup.mdgit clone --depth 1 https://github.com/KimYx0207/Claudecode-Codex-GeminiWrote 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.
[](https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-setup)<a href="https://agentmods.dev/commands/kimyx0207/claudecode-codex-gemini/kim-setup"><img src="https://agentmods.dev/badge/commands/kimyx0207/claudecode-codex-gemini/kim-setup.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.01619 |
| Opus 5 | $0.00010 | $0.00809 |
| Sonnet 5 | $0.00004 | $0.00324 |
| Haiku 4.5 | $0.00002 | $0.00162 |
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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kim环境配置命令
一键检测Node.js、CLI工具、MCP Server配置,自动修复常见问题
运行模式:$ARGUMENTS(默认:check)
- check: 仅检测环境状态,不做修改
- fix: 检测并尝试自动修复问题
- full: 完整配置向导(适合首次使用)
执行流程
1️⃣ 基础环境检测
执行以下检测(使用Bash工具):
# Node.js版本检测(需要18+)
node --version
# npm版本检测
npm --version
# Python版本检测(可选,用于部分功能)
python --version 2>/dev/null || python3 --version 2>/dev/null
输出格式:
📦 基础环境检测
├─ Node.js: ✅ v20.10.0 (需要 >= 18)
├─ npm: ✅ v10.2.3
└─ Python: ✅ v3.11.5 (可选)
2️⃣ CLI工具检测
检测三个核心CLI工具:
# Claude Code CLI
claude --version 2>/dev/null || echo "NOT_INSTALLED"
# Codex CLI
codex --version 2>/dev/null || echo "NOT_INSTALLED"
# Gemini CLI
gemini --version 2>/dev/null || echo "NOT_INSTALLED"
输出格式:
🔧 CLI工具检测
├─ Claude Code: ✅ v1.0.29
├─ Codex CLI: ✅ v0.1.2505011803
└─ Gemini CLI: ✅ v0.1.28
如果缺失,提示安装命令:
❌ 检测到以下工具未安装:
# 安装Claude Code CLI
npm install -g @anthropic-ai/claude-code
# 安装Codex CLI
npm i -g @openai/codex
# 安装Gemini CLI
npm install -g @google/gemini-cli
3️⃣ MCP Server配置检测
检测本项目的MCP Server配置:
# 检查.mcp.json是否存在
ls -la .mcp.json 2>/dev/null
# 检查MCP Server文件是否存在
ls -la mcp-servers/codex-server/index.js 2>/dev/null
ls -la mcp-servers/gemini-server/index.js 2>/dev/null
输出格式:
🔌 MCP Server配置
├─ .mcp.json: ✅ 已配置
├─ Codex Server: ✅ 存在
├─ Gemini Server: ✅ 存在
└─ MCP配置状态: ✅ 就绪
4️⃣ API认证状态检测
# 检查环境变量(不显示实际值)
echo "ANTHROPIC_API_KEY: $(if [ -n \"$ANTHROPIC_API_KEY\" ]; then echo '已设置'; else echo '未设置'; fi)"
echo "OPENAI_API_KEY: $(if [ -n \"$OPENAI_API_KEY\" ]; then echo '已设置'; else echo '未设置'; fi)"
# 检查Gemini认证状态
gemini auth status 2>/dev/null || echo "未认证"
输出格式:
🔑 API认证状态
├─ ANTHROPIC_API_KEY: ✅ 已设置
├─ OPENAI_API_KEY: ✅ 已设置
└─ Gemini Auth: ✅ 已认证 (1000次/天免费)
如果未设置,提示配置方法:
❌ 检测到以下认证未配置:
# Windows PowerShell (永久设置)
[Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "你的API_KEY", "User")
# macOS/Linux (添加到 ~/.bashrc 或 ~/.zshrc)
export OPENAI_API_KEY="你的API_KEY"
# Gemini认证(网页授权)
gemini auth login
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.
- 7d ago First seen · 224 lines · 20 tokens per session scan A 38a0afb0f065
kim-setup is a command published in the GitHub repository KimYx0207/Claudecode-Codex-Gemini (119 stars, last pushed 25d ago), licensed MIT. It adds 20 tokens to every session and 1,619 once invoked, about $0.0001 per session on Opus 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-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.