One-command activator for CLIProxyAPI. It supports Codex and Claude Code activation, node testing, config backup and restore, and a local web UI for operations.
- Interactive CLI for common activation tasks
- Activation flow for Codex and Claude Code
- Node testing before switching config
- Backup and restore for local config files
- Local web UI for user actions and admin management
- Plain Node.js implementation with no framework lock-in
- Node.js 16 or newer
Clone the repository and install dependencies:
git clone https://github.com/FogMaly/cliproxy-activator.git
cd cliproxy-activator
npm installIf you want the CLI command globally on your machine:
npm linkOpen the interactive menu:
cliproxy-activatorOr run from the repo directly:
node bin/cli.jsActivate Codex:
cliproxy-activator activate --service codex --code YOUR_ACTIVATION_CODEActivate Claude Code:
cliproxy-activator activate --service claude --code YOUR_ACTIVATION_CODETest nodes:
cliproxy-activator testRestore a backup:
cliproxy-activator restore --service claudeStart the local web server:
npm run webDefault endpoints:
- User UI:
http://localhost:34010/ - Admin UI:
http://localhost:34010/admin/
Relevant environment variables:
PORT: override the default port34010ADMIN_PASSWORD: override the default admin passwordadmin123SERVER_TIMEZONE: override the default timezoneAsia/Shanghai
cliproxy-activator
cliproxy-activator interactive
cliproxy-activator activate --service <claude|codex> --code <activation-code>
cliproxy-activator test
cliproxy-activator restore --service <claude|codex>
bin/: CLI and web server entry pointslib/: command and service implementationfrontend/: static frontend assetsdocs/: implementation notes and delivery documentsscripts/: helper scriptstest/: lightweight test scriptsdata/: local runtime data, intentionally not committed
- Claude Code:
~/.claude/config.json - Codex:
~/.codex/config.json - Backups:
~/.cliproxy-activator/backups/
Run the included test script:
npm testMIT. See LICENSE.