Connect Agent / CLI tools
Codex CLI(OpenAI)
OpenAI 官方编程 CLI,完整 OpenAI-compat,1 行环境变量切到 Nexevo。
curl
bash
# 1) 安装 Codex CLI(若未装)
npm i -g @openai/codex
# 2) 切到 Nexevo
export OPENAI_API_KEY="sk-xc-你的-Nexevo-key"
export OPENAI_BASE_URL="https://api.nexevo.ai/v1"
# 3) 用(任何 codex 命令都自动走我们的路由)
codex "帮我重写这个函数让它更高效" --model nexevo-auto
# 想锁定具体型号:--model gpt-5 / claude-sonnet-4-6
#
# 体验差异 vs 直连 OpenAI:
# - 默认 nexevo-auto 比 GPT-4o 省 ~60% / 1M tokens
# - 弹性更强(单 provider 故障自动 fallback)
# - 用量在 admin /financial 可统一对账