Sandbox
@seakee/CPA-Manager-Plus

CPA and CLIProxyAPI management dashboard

CPA Manager Plus is a self-hosted panel for managing CPA / CLIProxyAPI setups and watching how requests behave over time. It combines provider and credential management with request history, usage analytics, quota checks, and account health inspection.

3,349 stars345 forksGoUpdated 7d ago
Who it's for

Builders who route agent traffic through CPA and want to manage providers, credentials, and usage from one dashboard.

What it delivers

You can track requests, cost, quota, and account health without piecing together separate logs and admin screens.

What it does

Gateway management

Manages CPA providers, OAuth logins, API keys, model aliases, priorities, plugins, logs, and system settings.

Request monitoring

Stores request history in local SQLite, lets you search by account or API key, and shows status, latency, tokens, cache, trace, and redacted failure evidence.

Usage and cost analytics

Breaks down calls, tokens, cost, latency, and failures by model, provider, account, API key, project, channel, and time range.

Account health and quota inspection

Checks Codex and xAI accounts, reads quota windows and reset evidence, and tracks credential state and health signals.

Local and self-hosted operation

Runs as a Docker container or native package and keeps history, configuration, and automation state in local files.

How to get it

  1. 1For a guided full-stack or CPAMP-only deployment
    curl -fsSLO https://raw.githubusercontent.com/seakee/CPA-Manager-Plus/main/bin/install-cpamp.sh
    bash install-cpamp.sh
  2. 2Preview without deploying
    CPAMP_DRY_RUN=1 bash install-cpamp.sh
  3. 3Run
    docker compose up -d
  4. 4If CPA is already running
    docker run -d \
      --name cpa-manager-plus \
      --restart unless-stopped \
      -p 18317:18317 \
      -v cpa-manager-plus-data:/data \
      seakee/cpa-manager-plus:latest

README

CPAMPCPAMP

CPA Manager Plus

Release License Docker Pulls Stars

A self-hosted CPA / CLIProxyAPI management panel and AI gateway observability dashboard for requests, usage, cost, quota, failures, and account health.

Operate providers, credentials, OAuth, plugins, and configuration while keeping persistent request history, cost analytics, and account automation in local storage.

中文Live DemoDocumentationInstall

What Can CPAMP Help You Answer?

  • Why are requests failing? Inspect failure rates, status codes, affected models/accounts, and redacted evidence in persistent request history.
  • Where is the cost going? Break down tokens and estimated cost by model, provider, account, API key, project, channel, and time range.
  • Are accounts and quotas healthy? Review credential state, quota windows, reset evidence, and controlled automation for Codex and xAI accounts.

Screenshots

Dashboard
CPA CLIProxyAPI management and observability dashboard
Request Monitoring
CPA request monitoring and failure diagnosis dashboard
Usage Analytics
CPA usage and cost analytics by model and account
Credential Management
CPA credential management list with availability, usage, quota, and actions
Credential Health Inspection
CPA credential health inspection status, history, and results
Credential Quota
CPA credential quota usage, current window, and forecast

Which Panel Should You Choose?

CPA / CLIProxyAPI can serve either the official Management Center or the CPAMP Lightweight Panel directly on :8317. The lightweight panel replaces the official UI without adding another service. Deploy CPAMP Full Mode when you also need persistent observability and long-running operations.

OptionBest forEntry
Official CLI Proxy API Management CenterKeeping the upstream UI maintained by the CPA projectCPA :8317/management.html
CPAMP Lightweight PanelReplacing only the UI without another service or databaseCPA :8317/management.html
CPAMP Full ModeRequest history, cost analytics, inspection, and automationManager Server :18317/management.html

See Choosing A CPA Panel for the comparison, or install the CPAMP Lightweight Panel directly in CPA.

Core Capabilities

CPA Gateway Management

  • Manage CPA provider configurations, including Gemini, Codex, Claude, Vertex, xAI, and OpenAI-compatible providers.
  • Maintain auth files, OAuth logins, API keys, model aliases, priorities, plugins, logs, and system settings.
  • Import official Sub2API OpenAI OAuth exports and split multiple accounts into separate CPA Codex auth files.

Request Monitoring And Failure Diagnosis

  • Persist requests from the CPA usage queue in local SQLite and search account, client API key, and realtime request views.
  • Inspect status, latency, token, cache, trace, and redacted failure evidence without exposing raw failure bodies.
  • Export or import request history as JSONL.
  • Open the Monitoring Demo.

Cost And Usage Analytics

  • Break down calls, tokens, cost, latency, and failures by model, provider, account, credential, API key, project, channel, and time range.
  • Track input, output, reasoning, cache, service tier, and long-context pricing semantics.
  • Sync model prices from models.dev first, with LiteLLM and OpenRouter fallbacks plus local overrides for aliases or internal models.
  • Open the Usage Analytics Demo.

Account Health, Quota, And Automation

  • Inspect Codex and xAI accounts locally or on a Manager Server schedule.
  • Read quota windows, reset evidence, credential state, workspace state, and provider-specific health signals when available.
  • Apply controlled quota cooldowns and route credential failures into an account action queue for review and recovery.
  • Open the unified Accounts Demo.

Production Operations

  • Run CPAMP Full Mode as one Docker container or a native Linux, macOS, or Windows package for amd64/arm64; the full stack can run alongside CPA.
  • Keep request history, Manager configuration, automation state, and model prices in local files with no account registration or telemetry SDK.
  • Back up SQLite files together with data.key to preserve encrypted CPA Management Keys.
  • If you harden the runtime with a read-only root filesystem or a non-root user, give SQLite a writable temporary directory and a writable database file; see Read-Only Root Filesystem.

Want to preview the interface first? Open the Live Demo. The demo uses fictional data only. It is not a deployment or runtime mode and cannot connect to, manage, or monitor a real CPA instance.

CPAMP manages and observes traffic through CPA / CLIProxyAPI. It is not a replacement proxy and does not forward model traffic by itself.

Quick Start

Installer

For a guided full-stack or CPAMP-only deployment:

curl -fsSLO https://raw.githubusercontent.com/seakee/CPA-Manager-Plus/main/bin/install-cpamp.sh
bash install-cpamp.sh

Preview without deploying:

CPAMP_DRY_RUN=1 bash install-cpamp.sh

See One-Click Installer for upgrade, repair, and admin-key recovery behavior.

CPA + CPAMP Together

services:
  cli-proxy-api:
    image: eceasy/cli-proxy-api:latest
    restart: unless-stopped
    ports:
      - '8317:8317'
    volumes:
      - cpa-data:/app/data

  cpa-manager-plus:
    image: seakee/cpa-manager-plus:latest
    restart: unless-stopped
    ports:
      - '18317:18317'
    volumes:
      - cpa-manager-plus-data:/data

volumes:
  cpa-data:
  cpa-manager-plus-data:
docker compose up -d

Open http://<host>:18317/management.html, retrieve the CPAMP Admin Key from the Manager Server log, then enter the CPA URL and CPA Management Key during setup.

CPAMP Only

If CPA is already running:

docker run -d \
  --name cpa-manager-plus \
  --restart unless-stopped \
  -p 18317:18317 \
  -v cpa-manager-plus-data:/data \
  seakee/cpa-manager-plus:latest

Recommended CPA version: v7.1.39+. The HTTP usage queue needs v6.10.8+.

Documentation

TaskGuide
Choose the right panel and deployment modeChoosing A CPA Panel
Replace the official UI without deploying another serviceCPAMP Lightweight Panel
Install and complete first setupGetting Started
Understand supported features and modesCapability Matrix
Understand runtime ports, keys, and request flowRuntime Model
Configure providers, credentials, quota, and pluginsAI Providers, Accounts, Plugin Management
Operate Manager Server, backups, upgrades, and migrationsManager Server Guide
Back up data or recover a lost admin keyBackup And Restore, Reset Admin Key
Migrate from the legacy CPA-ManagerMigration From CPA-Manager
Diagnose empty monitoring or queue problemsTroubleshooting

Data, Privacy, And Security

  • CPAMP does not phone home, include analytics SDKs, or require account registration.
  • External calls are limited to the CPA gateway and integrations you explicitly configure or trigger, such as OAuth, provider checks, plugin releases, and model price sync.
  • Request history, configuration, model prices, inspection history, and automation state stay in local files.
  • CPA Management Keys are encrypted before SQLite persistence; backups require the SQLite files and data.key.
  • Normal APIs and JSONL exports expose redacted failure summaries, never raw failure bodies or stored raw JSON.
  • CPAMP is intended for traffic and credentials you are authorized to operate.

Development

npm install
npm run dev
npm run type-check
npm run lint
npm run test
npm run build
npm run docs:build

Manager Server:

cd apps/manager-server
go test ./...
go test -race ./...
go vet ./...
go run ./cmd/cpa-manager-plus

Build the Docker stack locally:

docker compose -f docker-compose.manager.yml up --build

Release

  • npm run build creates a single-file apps/web/dist/index.html.
  • bin/release/package-native.sh embeds the panel into native packages.
  • Create release notes through release/<version> -> dev -> main, then push a strict vX.Y.Z or prerelease tag from the verified main promotion merge.
  • npm run release:validate -- --tag <tag> --content-only checks the three required release files before a tag is created.
  • .github/workflows/release.yml offers a workflow_dispatch dry-run from main; it validates and builds without publishing a GitHub Release, container image, or Telegram message.
  • Release assets include management.html, native packages, and Docker images for linux/amd64 and linux/arm64.
  • Release publishing is serialized and has no automatic commit-log fallback; missing or mismatched notes fail closed. See docs/release.md for recovery and required repository protections.

Acknowledgements

License

MIT — Copyright 2026 Seakee.

Files in the repo

Repository payload21 top-level entries
  • .github
  • apps
  • bin
  • docs
  • img
  • tests
  • .dockerignore
  • .gitattributes
  • .gitignore
  • .prettierrc
  • CONTRIBUTING.md
  • docker-compose.manager.yml
  • Dockerfile.manager-server
  • eslint.config.js
  • LICENSE
  • logo-white.svg
  • logo.svg
  • package-lock.json
  • package.json
  • README_CN.md
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k