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, or pastes OAuth callback URL/code to complete login.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anjun/cs-reloginWhat This Skill Does
The cs-relogin skill is a streamlined utility designed to manage OpenAI Codex authentication sessions directly within the OpenClaw environment. By leveraging the local cs command-line tool, this skill eliminates the need for cumbersome onboarding flows when account switching is required. It manages the entire lifecycle of the relogin process, from triggering the initial authorization URL to processing callback codes and verifying active session states. This skill ensures that users can maintain their development workflow without interruption, providing concise feedback on gateway status and account profiles.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/anjun/cs-relogin
Ensure your local environment has the necessary cs CLI tools pre-configured to allow for direct execution.
Use Cases
- Manual Account Switching: Use this when you need to rotate your active OpenAI Codex account to access different quota pools or organizational keys.
- Session Refreshing: Trigger this skill if the current session has expired or if you encounter authentication errors while executing AI tasks.
- Callback Processing: Seamlessly finalize your browser-based OAuth flow by passing the resulting redirect URL or authorization code directly to the agent.
- Status Verification: Quickly audit your current authentication profile and gateway health without digging through system logs.
Example Prompts
- "cs relogin"
- "I'm getting auth errors, please switch my account using this callback code: https://auth.openai.com/callback?code=abc123xyz"
- "Can you check if my Codex account is active or if I need to relogin?"
Tips & Limitations
- Non-Interactive Workflow: This skill is designed to be automated; avoid calling
openclaw onboardfor account switching, as it may conflict with thecscommand logic. - Security: Never share your full OAuth tokens or sensitive secrets. The skill is designed to handle callbacks, but it will sanitize and mask any output containing sensitive data.
- Debugging: If the skill behaves unexpectedly, always trigger
cs relogin statusandcs statusto receive an immediate diagnostic snapshot of the gateway state. This provides the most accurate view of your current session standing.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anjun-cs-relogin": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution