by lich0821
Intelligent API gateway for Claude Code and Codex CLI - rotate endpoints, monitor usage, and seamlessly integrate OpenAI, Gemini, and other platforms.
# Add to your Claude Code skills
git clone https://github.com/lich0821/ccNexusccNexus.exetar -xzf ccNexus-linux-amd64.tar.gz && ./ccNexus点击「添加端点」,填写 API 地址、密钥、选择转换器(claude/openai/gemini)。
No comments yet. Be the first to share your thoughts!
~/.claude/settings.json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "随便写,不重要",
"ANTHROPIC_BASE_URL": "http://127.0.0.1:3000",
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000", // 有些模型可能不支持 64k
}
// 其他配置
}
只需要配置 ~/.codex/config.toml:
model_provider = "ccNexus"
model = "gpt-5-codex"
preferred_auth_method = "apikey"
[model_providers.ccNexus]
name = "ccNexus"
base_url = "http://localhost:3000/v1"
wire_api = "responses" # 或 "chat"
# 其他配置
~/.codex/auth.json 可以忽略了。