CS Relogin Skill
Use this skill to perform OpenAI Codex account switching without openclaw onboard.
Hard rules
- - Always execute
cs directly, never call openclaw onboard for this task. - Keep flow non-interactive.
- If user provided a callback URL/code, do completion step immediately.
Workflow
- 1. If user input is exactly
cs relogin:
- Run:
cs relogin
- Return the login URL from command output.
- Ask user to finish browser auth and paste callback URL.
- 2. If user input contains callback URL/code:
- Run:
cs relogin "<callback-url-or-code>"
- Return key result lines:
- relogin completed status
- gateway restart status
- active profile/account summary
- 3. If user asks status/debug:
- Run:
cs relogin status
cs status
- Summarize pending state and active account.
Output format
- - Keep response concise and actionable.
- Include exact next command when another step is needed.
- Never expose full tokens/secrets.
- On command failure, include raw cs stderr first (do not guess the reason).
Acknowledgement rule (MUST)
- - Every successful action must have an explicit acknowledgement (回执) to the user.
- Minimum acknowledgement content:
- what was executed (e.g.
cs relogin,
cs relogin <callback>,
cs status)
- whether it succeeded
- current state summary (pending relogin / active account)
- - If command output is missing or tool callback is flaky, immediately run:
cs relogin status
cs status
then send acknowledgement based on those results.
- - Never end silently after command execution.
CS 重新登录技能
使用此技能可在不使用 openclaw onboard 的情况下执行 OpenAI Codex 账户切换。
硬性规则
- - 始终直接执行 cs,切勿为此任务调用 openclaw onboard。
- 保持流程非交互式。
- 如果用户提供了回调 URL/代码,请立即执行完成步骤。
工作流程
- 1. 如果用户输入恰好为 cs relogin:
- 运行:
bash
cs relogin
- 从命令输出中返回登录 URL。
- 要求用户完成浏览器认证并粘贴回调 URL。
- 2. 如果用户输入包含回调 URL/代码:
- 运行:
bash
cs relogin <回调-url-或-代码>
- 返回关键结果行:
- 重新登录完成状态
- 网关重启状态
- 当前配置文件/账户摘要
- 3. 如果用户询问状态/调试:
- 运行:
bash
cs relogin status
cs status
- 汇总待处理状态和当前活动账户。
输出格式
- - 保持回复简洁且可操作。
- 当需要下一步操作时,包含确切的后续命令。
- 切勿暴露完整的令牌/密钥。
- 命令失败时,首先包含原始 cs 的标准错误输出(不要猜测原因)。
回执规则(必须遵守)
- - 每个成功操作必须向用户提供明确的回执。
- 最低回执内容:
- 执行了什么操作(例如 cs relogin、cs relogin <回调>、cs status)
- 是否成功
- 当前状态摘要(待重新登录 / 活动账户)
- - 如果命令输出缺失或工具回调不稳定,请立即运行:
bash
cs relogin status
cs status
然后根据这些结果发送回执。