openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > CS Relogin

Fast OpenAI Codex account switch for OpenClaw via the local cs command. Use when user sends `cs relogin`, asks to re-login or switch ChatGPT Codex account, o...

通信与消息

作者:Ajun @anjun

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.2

统计:⭐ 1 · 223 · 0 current installs · 0 all-time installs

1

安装量(当前) 0

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:anjun/cs-relogin

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

The skill's instructions, requested resources, and purpose (switching a local OpenAI/Codex account via the local cs CLI) are internally consistent and proportional.

综合结论

This skill is coherent: it simply automates calls to your local `cs` CLI to switch/relogin Codex accounts. Before using it, ensure you trust the local `cs` binary and the environment where the agent runs. Do not paste full callback URLs or tokens into chat unless you understand they may be used as command arguments (these can appear in process lists or stderr). If you're uncomfortable, run `cs relogin` and the callback completion manually in a…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「CS Relogin」。简介:Fast OpenAI Codex account switch for OpenClaw via the local cs command. Use whe…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/anjun/cs-relogin/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: cs-relogin
description: Fast OpenAI Codex account switch for OpenClaw via the local cs command. Use when user sends `cs relogin`, asks to re-login or switch ChatGPT Codex account, or pastes OAuth callback URL/code to complete login.
allowed-tools: ["Bash(cs:*)"]
metadata: {"clawdbot":{"emoji":"🔐"}}
---

# 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:
     ```bash
     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:
     ```bash
     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:
     ```bash
     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:
  ```bash
  cs relogin status
  cs status
  ```
  then send acknowledgement based on those results.
- Never end silently after command execution.