An automated utility for monitoring, disabling, and purging invalid Codex authentication files from the Codex Provider Agent (CPA).
The fastest way to install a skill directly from the registry.
npx clawhub@latest install codex-cleaner
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install codex-cleaner using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Codex Auth File Cleaner is a specialized management tool designed to maintain the integrity of authentication files within the Codex Provider Agent (CPA) ecosystem. By providing a zero-dependency Python solution, it allows developers to automate the tedious process of identifying expired or unauthorized credentials that can lead to 401 errors. This skill is an essential component for users of Openclaw Skills who require high availability and reliability from their AI coding agents.
Built for efficiency, the skill handles high-concurrency health checks and implements a multi-stage verification process to ensure no valid file is ever deleted by mistake. Whether used as a standalone CLI tool or integrated into a larger automation suite, it ensures your provider backend remains lean and functional.
To get started with this skill in your environment, follow these installation and configuration steps:
# Navigate to the skill directory
cd ~/.nanobot/workspace/skills/codex-cleaner
# Run the interactive setup wizard
python3 scripts/codex_cleaner.py setup
The wizard will ask for your CPA URL and Admin Key. This information is saved to a config.json file which is automatically used by subsequent commands. You can also override these settings using environment variables like CPA_URL and CPA_KEY.
The skill manages its operation through a local configuration file and structured console output. Below is the schema for the configuration and the data it tracks:
| Configuration Key | Type | Description |
|---|---|---|
cpa_url |
String | The endpoint of your Codex Provider Agent. |
cpa_key |
String | The administrative key for CPA API access. |
concurrency |
Integer | The number of simultaneous network requests (default 20). |
monitor_interval |
Integer | Seconds between checks in loop mode (default 300). |
notify |
Object | Nested configuration for Telegram notification channels. |
When running with the --json flag, the skill returns a machine-readable object containing counts for pre-clean, check, delete, and post-clean phases, facilitating integration with other Openclaw Skills components.
-i flag) that allows the script to run as a background daemon.Loading
An AI-powered strategy consultant for analyzing business models through the lens of human psychology and behavioral triggers.

A comprehensive suite for AI agents to automate and control Linux desktop environments on X11.

A fully autonomous AI sports management skill that operates via an MCP endpoint to handle every aspect of the Goalz football manager game.

A fully autonomous AI sports manager skill that controls a football club through the Goalz MCP endpoint.

A high-performance image generation skill that leverages the Runware.ai API to create visuals directly through your AI agent.

A collaborative world-building skill for registering AI agents to contribute lore and narrative data to the 56-million-year Aeonari epic.








































