fogidc-activator
v1.1.1
Published
FogIDC multi-platform activator — Activate Codex, Claude Code, OpenCode and OpenClaw
Maintainers
Readme
FogIDC Activator
FogIDC multi-platform activator. It supports Codex, Claude Code, OpenCode and OpenClaw activation, node testing, config backup and restore, and a local web UI for operations.
Highlights
- 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
Requirements
- Node.js 16 or newer
One-command VPS Install
For a clean VPS, run the GitHub bootstrap script. It installs Node.js when missing, installs the latest npm package, and can optionally activate a target platform.
Install only:
curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/install.sh | shInstall and activate Codex with an activation code:
curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/install.sh | sh -s -- \
--service codex \
--code YOUR_ACTIVATION_CODE \
--cliproxy-api-base https://your-activator.example.comInstall and activate with a direct NewAPI key:
curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/install.sh | sh -s -- \
--service codex \
--base-url https://newapi.example.com \
--api-key sk-your-upstream-keyStart the local Web UI after install:
curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/install.sh | sh -s -- --webIf you want to install directly from GitHub source instead of npm, add --method github.
Install
Clone the repository and install dependencies:
git clone https://github.com/FogMaly/cliproxy-activator.git
cd fogidc-activator
npm installIf you want the CLI command globally on your machine:
npm linkQuick Start
Configure your upstream NewAPI endpoint first:
cp config/upstream.example.json config/upstream.jsonEdit config/upstream.json and set:
baseUrl: your upstream NewAPI base URLapiKey: your upstream NewAPI key
You can also use environment variables instead:
export NEWAPI_BASE_URL="https://newapi.example.com"
export NEWAPI_API_KEY="sk-your-upstream-key"Open the FogIDC-style multi-platform activation wizard:
fogidc-activatorOr run from the repo directly:
node bin/cli.jsActivate Codex:
fogidc-activator activate --service codex --yesActivate Claude Code:
fogidc-activator activate --service claude --yesActivate selected platforms only:
fogidc-activator wizard --service codex --platforms codex-cli,opencodeUse an activation / redeem code. The wizard reads the code capability first and only shows the supported service and platforms:
fogidc-activator wizard --code YOUR_ACTIVATION_CODESkip upstream verification for local dry-runs:
fogidc-activator activate --service codex --api-key sk-test --yes --skip-verifyLegacy activation-code mode is still available:
fogidc-activator activate --service codex --code YOUR_ACTIVATION_CODE --legacyTest nodes:
fogidc-activator testRestore a backup:
fogidc-activator restore --service claudeWeb UI
Start the local web server:
npm run webDefault endpoints:
- User UI:
http://localhost:34020/ - Admin UI:
http://localhost:34020/admin/
Relevant environment variables:
PORT: override the default port34020ADMIN_PASSWORD: override the default admin passwordadmin123SERVER_TIMEZONE: override the default timezoneAsia/ShanghaiNEWAPI_BASE_URL: upstream NewAPI base URL for CLI activationNEWAPI_API_KEY: upstream NewAPI key for CLI activationCLIPROXY_UPSTREAM_CONFIG: custom path for upstream config JSONFOGIDC_BACKUP_DIR: custom backup directory for activation config backups
Commands
fogidc-activator
fogidc-activator interactive
fogidc-activator wizard [--code <activation-code>] [--platforms <ids>]
fogidc-activator activate --service <claude|codex> [--api-key <key>] [--yes]
fogidc-activator activate --service <claude|codex> --code <activation-code> --legacy
fogidc-activator test
fogidc-activator restore --service <claude|codex>Activation Code Capabilities
The wizard is ready for capability-scoped activation codes. A future code verification API can return fields such as service, services, platforms, targets, or capabilities; the CLI normalizes them and filters the activation choices automatically.
Examples:
{ "service": "codex" }{ "capabilities": { "services": ["claude"], "platforms": ["claude-code", "opencode"] } }Supported platform ids are codex-cli, claude-code, opencode, openclaw, vscode-codex-plugin, and cursor-codex-plugin.
Project Layout
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
Config Paths
- Claude Code:
~/.claude/config.json - Claude Code:
~/.claude/settings.jsonand~/.claude.json - Codex:
~/.codex/config.tomland~/.codex/auth.json - OpenCode:
~/.config/opencode/opencode.jsonif already installed - OpenClaw:
~/.openclaw/openclaw.jsonif already installed - Backups:
~/.fogidc-activator/backups/
Development
Run the included test script:
npm testLicense
MIT. See LICENSE.
