Prepare The CPA Gateway
Check this page only when deploying Full Mode manually or when Monitoring never receives data. Users who installed “CPA + CPAMP” with the installer can usually skip it.
Two Required Settings
1. Allow CPAMP To Manage CPA
remote-management:
secret-key: 'replace-with-a-long-random-management-key'
allow-remote: truesecret-keyis the CPA Management Key.- When CPAMP and CPA do not run in the same process, confirm that
allow-remotepermits communication. - Do not expose the CPA management port and key directly to an untrusted network.
2. Publish Request Data For Full Mode
usage-statistics-enabled: true
redis-usage-queue-retention-seconds: 60Lightweight Panel does not need request collection. Full Mode needs these settings for request history and Usage Analytics. Keep the default 60-second retention unless collection is frequently interrupted.
Confirm That CPA Is Ready
- CPA starts without configuration errors.
- CPAMP connects with the CPA URL and CPA Management Key.
- Monitoring shows an event after a real request passes through CPA.
If the connection works but request data is missing, see Monitoring Has No Data.
Where To Make Daily Changes
| Task | Recommended page |
|---|---|
| Add providers, models, or API keys | AI Providers |
| Log in, import, or disable accounts | Accounts |
| Complete an OAuth login | OAuth Login |
| Change CPA or CPAMP runtime settings | Configuration |
Advanced: auth storage and configuration ownership
Keep auth files in persistent storage. Keep filenames or auth_index stable so historical requests and account state remain linked. Prefer disabling accounts in the panel instead of deleting files directly.
CPA can use local files or supported external storage. Confirm backup, permissions, and rollback behavior before choosing one.
CPA stores providers, auth files, OAuth, client API keys, logs, plugins, and routing rules. CPAMP Full Mode stores the CPA connection, request history, prices, aliases, inspection, and automation state.