Current collected state Current
Observed since 20 Oct, 21:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
国内 Agent 工具一键接入国产模型:官方直连、零中转、全中文、可自检
国内 Agent 工具一键接入国产模型。官方直连、零中转、全中文、可自检。
让 Claude Code / Codex CLI / Cline 在国产网络下,用 DeepSeek / 通义 / GLM / Kimi 开箱即跑。教程要配半小时,它只要 30 秒。
doctor 逐项诊断环境,中文修复指引# 1. 自检环境
python agent_cn/cli.py doctor
# 2. 交互式配置(选工具 → 选模型 → 填 Key → 自动写配置 → 自动验证)
python agent_cn/cli.py setup claude-code
# 或安装后全局使用
pip install agent-cn && agent-cn setup claude-code
配置完成后重启对应工具即可使用。
| 命令 | 作用 |
|---|---|
agent-cn doctor | 环境自检:已装工具 / Python / 已配置项目 / 端点网络连通性 |
agent-cn setup <tool> | 交互式配置:选模型 → 填 Key → 自动写配置 → 连通验证 |
agent-cn switch <tool> <model> | 一键切换模型(同 provider 复用 Key,旧配置可回滚) |
agent-cn list | 工具 × 模型兼容矩阵 |
agent-cn cost [--tokens N] | 模型比价 + 月成本预估 |
agent-cn export [file] | 导出配置(换机迁移,不含 Key) |
agent-cn import <file> | 导入配置(合并,提示覆盖) |
agent-cn model {add|list|remove} | 自定义模型端点管理 |
| 工具 | 协议 | 状态 |
|---|---|---|
| Claude Code | Anthropic 兼容 | ✅ 自动写入(真机验证) |
| Codex CLI | OpenAI 兼容 | ✅ 自动写入(config.toml) |
| Cline | OpenAI Compatible | ⚠️ 手动指引(VS Code 插件) |
| 提供商 | Anthropic 端点 | OpenAI 端点 |
|---|---|---|
| DeepSeek | ✅ 已实测 | ✅ 已实测 |
| 通义千问 | ✅ 已实测 | ✅ 已实测 |
| 智谱 GLM | ✅ 已实测 | ✅ 已实测 |
| Kimi (Moonshot) | ✅ 已实测 | ✅ 已实测 |
~/.claude/settings.json 的 env 键(写前自动备份);Codex 写入 ~/.codex/config.toml(全量,写前自动备份)~/.agent-cn/config.json(写前自动备份)~/.agent-cn/custom-models.json(agent-cn model add 管理,合并优先于内置 registry)DEEPSEEK_API_KEY),也可在 setup 时粘贴输入~/.claude/settings.json),不会上传或经第三方中转.bak + 时间戳),可随时回滚~/.claude/settings.json、.env、任何含 Key 的文件提交到 Gitpython -m unittest discover -s tests -v # 运行测试(42 项)
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 9 Aug 2026 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7c0b0c5f4c14b6d2e21dd49f3f6238371c21fbcab7bfbd4a84fb5635f85bd190