codex-hybrid-login
Installation
SKILL.md
Codex Hybrid Login
Overview
Configure Codex CLI hybrid login on a remote Linux server via SSH. This skill supports two modes:
- Full Setup: Complete reconfiguration (OAuth login, rebuild config, copy models, restart)
- API Update: Only update the
openai_base_urlendpoint (no OAuth, no model directory changes)
Workflow Decision Tree
Upon invocation, the first and only action is to ask the user which mode they need:
请选择操作模式:
A. 完整重新配置 — 重新做 OAuth 登录、重建 config.toml、拷贝模型目录(适用于全新配置或登录过期) B. 仅更新 API — 只修改
openai_base_url(适用于仅 API 端点变化,auth.json 仍然有效)
Wait for the user's choice before proceeding. Do not execute any SSH commands until the mode is confirmed.