cs-relogin for Openclaw

A specialized CLI integration for rapid OpenAI Codex account switching and authentication management without full re-onboarding.

anjun
v1.1.2
Mar 3, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cs-relogin

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cs-relogin using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is cs-relogin?

The cs-relogin skill is a performance-oriented utility designed for developers using Openclaw Skills who need to manage multiple OpenAI Codex accounts or refresh authentication sessions frequently. It leverages the local cs command-line tool to provide a non-interactive, fast-path alternative to the standard onboarding process, making it an essential component for power users of AI coding agents.

By automating the exchange of OAuth callbacks and gateway restarts, this skill ensures that your coding environment remains connected to the correct AI backend with minimal manual intervention. It emphasizes security and efficiency, keeping authentication tokens protected while providing clear status updates on account transitions.

cs-relogin Use Cases

  • Switching between personal and professional OpenAI Codex profiles within Openclaw Skills.
  • Rapidly refreshing expired authentication tokens during long development sessions.
  • Finalizing OAuth login flows by pasting callback URLs directly into the agent interface.
  • Verifying the current active account and gateway status via CLI commands.

How cs-relogin Works

  1. The skill initiates the process when a user requests a relogin or provides an authentication callback.
  2. For new sessions, it executes the cs relogin command to generate a unique browser authentication URL.
  3. Once the user provides the callback code or URL, the skill runs the completion command to authorize the session.
  4. It monitors the local gateway to ensure a successful restart with the updated credentials.
  5. Finally, it executes status checks to provide the user with a verified summary of the active profile and connection state.

cs-relogin Setup

To use this skill within Openclaw Skills, ensure your environment has the cs utility configured. You can initiate the relogin process by entering:

cs relogin

When prompted with a callback URL or code from your browser, provide it to the agent to finalize the setup:

cs relogin "<your-callback-url-or-code>"

cs-relogin Data Schema & Taxonomy

Data Element Description
Command Context Direct execution via Bash(cs:*)
Input Types Plain text commands, OAuth callback URLs, or auth codes
Output Metadata Gateway restart status, active profile summaries, and account IDs
Safety Layer Automatic filtering to prevent exposure of full session tokens or secrets

cs-relogin Advanced Features

  • Non-interactive workflow support for seamless account transitions.
  • Integrated gateway management that automatically handles service restarts after credential updates.
  • Detailed debugging capabilities using internal status and relogin status flags.
  • Mandatory acknowledgement logic ensuring every execution state is reported back to the user.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*