Native Packages
v2 Beta: linux/amd64 Only
The first v2 Beta native asset is cpa-manager-plus-native-v2_<ver>_linux_amd64.tar.gz. Download it manually from the matching GitHub Prerelease and verify it against that release's checksums.txt. Do not derive a v2 download URL from the 1.x cpa-manager-plus_<ver>_<os>_<arch> names. v2 Beta ships no darwin_amd64, darwin_arm64, linux_arm64, windows_amd64, or windows_arm64 native packages. Those platforms can stay on 1.x Stable or use Embedded Beta on a Docker host meeting the linux/amd64 requirement. External is a CPA operating mode, not a native package for unsupported platforms.
Package Contents And Process Boundary
Unlike the 1.x single-binary package below, v2 includes:
bin/cpa-manager-plus,bin/cpa-manager-plus-ingress,bin/cpa-manager-plus-runtime-supervisor, andbin/cli-proxy-api(pinned official CPAv8.0.55).cpa-manager-plus-launcher(at the root and inbin/),cpa-manager-plusctl, andcpa-manager-plus.service.share/cpamp/runtime/cpa-artifact.json,share/cpamp/runtime/config.seed.yaml, rootLICENSE, andshare/licenses/cli-proxy-api/LICENSE.data/,run/, andlogs/; Manager defaults todata/usage.sqliteanddata/data.key, Runtime todata/runtime/. Backups must also include SQLite WAL/SHM,usage-archives/when present, and Runtime state; see Backup And Restore.
The launcher manages Runtime Supervisor, Manager, and Ingress, with CPA managed by Runtime. Starting only the Manager binary does not start this stack. The launcher runs as root and only the CPA child drops to a dedicated identity; cpa-manager-plusctl install creates cpamp-cpa and the isolated directory layout. Do not use the 1.x single-process systemd example below for v2.
Install And Claim
Extract into a fixed directory (the example uses /opt/cpa-manager-plus, directly containing bin/ and the control script, not another nested archive directory). From that directory:
sudo ./cpa-manager-plusctl install --home /opt/cpa-manager-plus
sudo env USAGE_DATA_DIR=/opt/cpa-manager-plus/data \
./bin/cpa-manager-plus initializeKeep the short-lived /.well-known/cpamp-bootstrap/ui#handoff=... output private; it is neither a log entry nor an Admin Key. The generated systemd unit reads <home>/cpa-manager-plus.env, /opt/cpa-manager-plus/cpa-manager-plus.env in this example. Create/edit it without discarding existing settings, and restrict it to root ownership and mode 0600:
sudo touch /opt/cpa-manager-plus/cpa-manager-plus.env
sudo chown root:root /opt/cpa-manager-plus/cpa-manager-plus.env
sudo chmod 0600 /opt/cpa-manager-plus/cpa-manager-plus.env
sudoedit /opt/cpa-manager-plus/cpa-manager-plus.envSet the real public origin in that file, for example a domain with a configured TLS reverse proxy:
CPAMP_PUBLIC_ORIGIN=https://cpamp.example.comPrefer HTTPS, with a correctly configured proxy/certificate and the example replaced by your reachable domain. Plain HTTP is only for trusted local/isolated test networks, not for sending Handoff, Admin Key, or Client Key across untrusted networks. Restart the service to apply environment-file changes (restart also starts it initially):
sudo systemctl restart cpa-manager-plus.service
sudo systemctl status cpa-manager-plus.serviceAppend the entire Handoff path to the public origin in a browser, set an Admin Key, select New Managed / Adopt / External, and complete qualification. For New Managed, save the first Client Key and verify the public entry. After installation, later logins open the control base path chosen during installation (the wizard defaults to /console, for example https://cpamp.example.com/console; a custom path replaces it and moves the frontend API accordingly); v2 does not serve /management.html, which returns 404. Stop the entire service before reissuing initialize, resetting Admin, backing up, or migrating; do not run systemd and cpa-manager-plusctl start concurrently. Existing 1.x users must follow the v1.14.10 offline migration and rollback procedure, never start v2 directly against the old data directory.
Check Native licensing using the actual package's LICENSE and share/licenses/cli-proxy-api/LICENSE. Container third-party inventory and Provenance paths do not apply to Native; see Releases And Licensing.
1.x Stable: Multi-Platform Single-Binary Packages
Use native packages when Docker is not part of your environment. They fit deployments already managed by systemd, launchd, Windows services, or another process supervisor.
Native mode is still Manager Server mode: the binary serves /management.html, stores SQLite data locally, and uses the CPAMP Admin Key for login. The :18317/management.html entry in this section belongs to 1.x Stable; v2 Beta uses the control base path chosen at installation (default /console). It is not the old "external Usage Service for the CPA-port panel" workflow.
If you only want to install the CPAMP native package, you can use One-Click Installer. The script does not install CPA natively; use Docker for a full new deployment.
Shortest Installation Path
- Confirm that CPA already runs and prepare its URL and CPA Management Key.
- Download the native package for your operating system and architecture from GitHub Releases.
- Extract and run
cpa-manager-plus, or use the included background control script. - Open the 1.x Stable entry
http://<host>:18317/management.html. - Log in with the generated CPAMP Admin Key from the logs and connect CPA.
For long-running production use, choose systemd, launchd, Windows Service Manager, or another process manager afterward.
Requirements
Before running it, prepare:
- CPA / CLI Proxy API running separately.
- CPA Management API enabled.
- A CPA Management Key.
- A persistent and backed-up CPAMP data directory.
- Exactly one CPAMP Manager Server consuming one CPA usage queue.
Recommended CPA version:
v7.1.39+Minimum for HTTP usage queue:
v6.10.8+Download
Download the package for your platform from GitHub Releases.
Common package names:
cpa-manager-plus_<version>_linux_amd64.tar.gz
cpa-manager-plus_<version>_linux_arm64.tar.gz
cpa-manager-plus_<version>_darwin_amd64.tar.gz
cpa-manager-plus_<version>_darwin_arm64.tar.gz
cpa-manager-plus_<version>_windows_amd64.zip
cpa-manager-plus_<version>_windows_arm64.zipCheck Linux architecture:
uname -mMapping:
x86_64 -> linux_amd64
aarch64 -> linux_arm64
arm64 -> linux_arm64Run Manually
macOS / Linux:
tar -xzf cpa-manager-plus_vX.Y.Z_linux_amd64.tar.gz
cd cpa-manager-plus_vX.Y.Z_linux_amd64
./cpa-manager-plusWindows PowerShell:
Expand-Archive .\cpa-manager-plus_vX.Y.Z_windows_amd64.zip -DestinationPath .
cd .\cpa-manager-plus_vX.Y.Z_windows_amd64
.\cpa-manager-plus.exeOpen (1.x Stable):
http://<host>:18317/management.htmlIf no admin key is configured, the process prints a generated cpamp_... key once. Save it immediately.
You can also set it explicitly.
macOS / Linux:
CPA_MANAGER_ADMIN_KEY='replace-with-a-long-random-admin-key' ./cpa-manager-plusWindows PowerShell:
$env:CPA_MANAGER_ADMIN_KEY = 'replace-with-a-long-random-admin-key'
.\cpa-manager-plus.exeData Location
By default, native packages create:
config.json
data/usage.sqlite
data/data.keynext to the binary.
Override with:
USAGE_DATA_DIR=/var/lib/cpa-manager-plus ./cpa-manager-plusor:
USAGE_DB_PATH=/var/lib/cpa-manager-plus/usage.sqlite ./cpa-manager-plusBack up:
data/usage.sqlite
data/usage.sqlite-wal
data/usage.sqlite-shm
data/data.keydata.key decrypts the saved CPA Management Key. If it is lost, save the CPA connection again.
Advanced: Linux systemd example
Linux systemd Example
Install to a fixed directory:
sudo mkdir -p /opt/cpa-manager-plus /var/lib/cpa-manager-plus
sudo cp -a cpa-manager-plus_vX.Y.Z_linux_amd64/* /opt/cpa-manager-plus/
sudo useradd --system --no-create-home --shell /usr/sbin/nologin cpa-manager-plus
sudo chown -R cpa-manager-plus:cpa-manager-plus /opt/cpa-manager-plus /var/lib/cpa-manager-plusCreate /etc/systemd/system/cpa-manager-plus.service:
[Unit]
Description=CPA Manager Plus Manager Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=cpa-manager-plus
Group=cpa-manager-plus
WorkingDirectory=/opt/cpa-manager-plus
ExecStart=/opt/cpa-manager-plus/cpa-manager-plus
Restart=on-failure
RestartSec=3
Environment=HTTP_ADDR=0.0.0.0:18317
Environment=USAGE_DATA_DIR=/var/lib/cpa-manager-plus
# Recommended: provide a stable secret through an environment file or secret manager.
# Environment=CPA_MANAGER_ADMIN_KEY=replace-with-a-long-random-admin-key
[Install]
WantedBy=multi-user.targetStart:
sudo systemctl daemon-reload
sudo systemctl enable --now cpa-manager-plus
sudo systemctl status cpa-manager-plusLogs:
journalctl -u cpa-manager-plus -fFirst Setup
Open (1.x Stable):
http://<host>:18317/management.htmlEnter:
Admin Key: cpamp_... from logs, or your configured admin key
CPA URL: http://127.0.0.1:8317, http://<cpa-host>:8317, or your CPA URL
CPA Management Key: CPA remote-management.secret-keyAfter setup:
- Browser login uses the CPAMP Admin Key.
- CPA Management Key is stored server-side and encrypted.
- New browsers no longer need the CPA Management Key.
Running In The Background
Native packages include background control scripts for start, status, logs, restart, and stop. The scripts write PID records and log files, and protect the default runtime directories with private permissions. See Native Background Control.
For production, you can also run the process through systemd, launchd, Windows Service Manager, or another process manager. Whichever method you use, make sure the data directory is persistent and backed up.
Upgrade
- Stop the native process.
- Back up the data directory, including
data.key. - Extract the new package.
- Copy over
config.jsonanddata/, or keep usingUSAGE_DATA_DIR/USAGE_DB_PATH. - Start the new binary.
systemd example:
sudo systemctl stop cpa-manager-plus
sudo cp -a /var/lib/cpa-manager-plus /var/lib/cpa-manager-plus.backup.$(date +%Y%m%d%H%M%S)
sudo cp -a cpa-manager-plus_vX.Y.Z_linux_amd64/* /opt/cpa-manager-plus/
sudo systemctl start cpa-manager-plusUpgrades do not require manual SQLite migration. Compatible migrations run automatically at startup.
Verification
curl http://127.0.0.1:18317/health
curl http://127.0.0.1:18317/usage-service/info
curl -H "Authorization: Bearer <CPAMP_ADMIN_KEY>" \
http://127.0.0.1:18317/statusCheck configured, collector.lastError, lastConsumedAt, lastInsertedAt, and eventCount.
If the monitoring page is empty, continue with Request Monitoring Troubleshooting.