CPAMP Lightweight Panel
The CPAMP Lightweight Panel is hosted directly by CPA and replaces the official Management Center UI with CPA Manager Plus. It requires no Manager Server, SQLite database, additional container, or new port, making it suitable when you want a different management UI without a heavier deployment.
Shortest Installation Path
- Set
panel-github-repositoryin CPAconfig.yaml. - Confirm that the management panel is not disabled.
- Restart or reload CPA.
- Open
http://<cpa-host>:8317/management.html. - Log in with the CPA Management Key.
The rest of this page provides the complete configuration and security notes. Users already familiar with CPA configuration only need the steps above.
Browser
-> CPA :8317/management.html
-> CPAMP single-file panel
-> CPA Management APIWhen To Use It
- CPA / CLIProxyAPI is already running.
- You prefer a different interface or clearer information hierarchy than the official panel.
- You want to keep a single CPA process and management port.
- Your main tasks are providers, credentials and account health, OAuth, API keys, logs, plugins, and configuration.
- You do not currently need persistent request history, cost analytics, or server-side automation.
Requirements
- The 1.x Stable panel retains its existing CPA compatibility range. v2 Beta panel acceptance targets pinned official CPA
v8.0.55, and External Full Mode also requires at leastv8.0.55; older README recommendations do not prove Beta qualification. - Configure
remote-management.secret-key; otherwise the Management API and panel are disabled. - Keep
remote-management.disable-control-panelset tofalse. - CPA must be able to reach GitHub Releases, directly or through its configured proxy, to download
management.html. - CPA v8 works: the v2 Beta lightweight panel runs on the
/v0/managementAPI that CPA v8 still serves; see "v2 Beta And The Lightweight Panel" below.
Configure CPA
Edit CPA config.yaml:
remote-management:
# Safe default. Change to true only for access from outside localhost.
allow-remote: false
# CPA Management Key. Never commit a real key to Git.
secret-key: 'replace-with-your-management-key'
# CPA must be allowed to serve the management panel.
disable-control-panel: false
# false lets CPA periodically check for panel updates.
disable-auto-update-panel: false
# Download management.html from CPAMP Releases.
panel-github-repository: 'https://github.com/seakee/CPA-Manager-Plus'allow-remote: true exposes the remote Management API. Use it only on a trusted network, through a VPN, or behind a protected reverse proxy. Do not expose the management port and key to an untrusted network.
CPA v8 also reads its new configuration layout: config-version: 8 with a top-level management: section holding the same fields as remote-management above. Both spellings have been verified on CPA v8.
Start And Log In
- Save the configuration and restart or reload CPA.
- Open:
http://<cpa-host>:8317/management.html- Log in with the CPA Management Key.
- Confirm that Dashboard, Configuration, Providers, Accounts, OAuth, and Logs load correctly.
CPA looks for an asset named management.html in releases/latest of the configured GitHub repository (the newest non-prerelease Release) and caches it as static/management.html, in the static/ folder next to CPA's config.yaml (MANAGEMENT_STATIC_PATH or WRITABLE_PATH, when set, take precedence).
Updates And Cache
With disable-auto-update-panel: false, CPA periodically checks for a newer panel. If an upgrade still shows the old interface:
- Confirm that
panel-github-repositorystill points to CPA Manager Plus. - Stop CPA.
- Remove the cached panel from the
static/folder next to CPA'sconfig.yaml:
rm static/management.html- Restart CPA and open
/management.htmlagain.
With disable-auto-update-panel: true, CPA downloads the panel only when the cached file is missing and does not perform periodic updates.
v2 Beta And The Lightweight Panel
This is the CPAMP v2 Beta publication contract for the lightweight panel. Until the first v2 Beta prerelease is published, the Releases page has no matching file.
releases/lateststays on 1.x. The v2 Beta is published as a GitHub prerelease, and GitHub'sreleases/latestexcludes prereleases. CPA reads onlyreleases/latest, so a CPA configured withpanel-github-repositoryas on this page keeps downloading and updating the 1.x lightweight panel during the Beta and is never switched to v2 automatically.- The prerelease carries
management.html. Each v2 Beta prerelease also ships the single-filemanagement.html(thenpm run build:paneloutput, with no reference to anyassets/resource). CPA does not download it automatically. - The Management API stays
/v0/management. The v2 Beta lightweight panel reads and writes CPA configuration through/v0/management, which CPA v8 still serves, and signs in with the CPA v8 Management Key. Moving to/v8/managementis post-Stable work and is outside the first Beta. - Pre-release acceptance.
bin/ci/panel-lite-cpa-v8.mjsverifies on the pinned CPA v8 that thestatic/management.htmlCPA obtains is byte-identical to the build,/management.htmlanswers 200, the Management Key authenticates/v0/management/configand a changed configuration field is written toconfig.yaml, and/management.htmlanswers 404 whendisable-control-panel: true.
Try The v2 Beta Panel On CPA
Automatic updates through panel-github-repository use releases/latest, not a Beta Prerelease selector. Do not put a prerelease Tag URL in that setting to change channels:
api.github.comURL: if it does not end with/releases/latest, CPA appends that suffix. Thus.../releases/tags/<tag>becomes.../releases/tags/<tag>/releases/latest, rather than fetching the chosen prerelease.- Browser URL:
github.com/<owner>/<repo>/releases/tag/<tag>uses only the first two path segments and resolves to the repository'srepos/<owner>/<repo>/releases/latest. It still obtains the 1.x panel, not the page's Tag. - Fallback after a failed download: if fetching fails and no local cached file exists, CPA attempts to install the upstream fallback panel from
cpamc.router-for.me. That is not the selected CPAMP Beta file; merely opening/management.htmldoes not prove the intended Beta was installed.
Install the v2 Beta panel manually, retaining the cache location and automatic-update settings below:
- Download
management.htmlfrom an actually published v2 Beta prerelease and compare it with that release'schecksums.txt. Stable URL:https://github.com/seakee/CPA-Manager-Plus/releases/latest/download/management.html. Beta template:https://github.com/seakee/CPA-Manager-Plus/releases/download/v2.0.0-beta.X/management.html; replaceXwith an actually published number. - Set
disable-auto-update-panel: truein CPAconfig.yaml. Otherwise CPA overwrites the manually placed file with the 1.x panel fromreleases/latest. - Stop CPA, copy the file to
management.htmlin thestatic/folder next to CPA'sconfig.yaml, and start CPA. - Open
http://<cpa-host>:8317/management.htmland log in with the CPA Management Key.
To return to the 1.x panel, delete static/management.html, set disable-auto-update-panel back to false, and restart CPA.
External Full Mode is not this backend-free lightweight panel: it needs Manager while the operator independently runs, upgrades, and backs up external CPA. CPAMP does not take over its host lifecycle; see Runtime Model. v2 Embedded instead requires the matching three-image Compose/pairing record; copying only management.html does not upgrade Full Web. See Releases And Licensing for current project MIT, official CPA MIT, and image third-party notice inspection paths.
Lightweight Panel Capabilities
| Capability | CPAMP Lightweight Panel |
|---|---|
| CPA config, providers, Accounts, OAuth, and logs | Supported |
| API keys, model aliases, priorities, and plugin management | Supported when exposed by CPA APIs and plugin paths |
| Browser-local account checks | Supported where the page provides a local workflow |
| SQLite request history and request monitoring | Not supported |
| Usage and cost analytics, model prices, and API key aliases | Not supported |
| Server inspection, quota cooldowns, and account action queue | Not supported |
| Full Mode backup, migration, and maintenance tools | Not supported |
The lightweight panel does not connect to or read a separately running Manager Server. Starting Manager Server does not add full features to :8317/management.html.
Upgrade To CPAMP Full Mode
When you need request history, cost analytics, or server-side automation:
- Start Manager Server with Docker Deployment or Native Packages.
- Open the Full Mode entry: the control base path chosen at installation for v2 Beta (default
http://<cpamp-host>:18317/console),http://<cpamp-host>:18317/management.htmlfor 1.x Stable. - Complete setup or log in with the CPAMP Admin Key.
- Configure the CPA address, CPA Management Key, and request collection.
v2 Beta does not serve /management.html; it returns 404 and is not the v2 entry.
The lightweight panel may remain on the CPA port, but full capabilities are available only from the Manager Server panel entry.
Troubleshooting
- Panel does not open: confirm that
secret-keyis non-empty anddisable-control-panelisfalse. - Official panel still appears: check
panel-github-repositoryspelling and clear the cache. - Remote access is rejected: check
allow-remote, firewall, and reverse proxy settings. - The old 1.x interface returns after installing the v2 Beta panel: confirm
disable-auto-update-panel: true; otherwise CPA overwrites the manually placed file with the 1.x panel fromreleases/latest. - Monitoring is missing: this is expected in Lightweight Mode; use the Manager Server panel.