OAuth Login
OAuth Login adds or reauthorizes accounts. It answers "how do I get a usable credential saved?" Account enablement, batch maintenance, and status decisions belong in Accounts.
Available Entries
The page shows login methods based on CPA and plugin capabilities. Common entries include:
- Codex OAuth
- Anthropic / Claude OAuth
- Antigravity OAuth
- Kimi OAuth
- xAI OAuth
- Devin OAuth
- Muse / Meta OAuth (Device Flow)
- iFlow OAuth
- Plugin-provided OAuth
- Vertex credential import
Some entries appear only when the runtime supports them. If an entry is missing, check CPA version, plugin status, and configuration.
Standard Flow
- Click the provider login button.
- Complete login and authorization in the provider page.
- Wait for the panel to poll auth state.
- After success, open Accounts and confirm the credential was saved.
- Send one low-cost request and confirm it in Monitoring.
OAuth success does not guarantee request success. After saving, still check provider configuration, auth-file binding, model rules, and quota state.
Muse / Meta Device Flow
Muse / Meta uses a device authorization flow and does not require a localhost browser callback:
- Click the Muse (Meta) login entry.
- Open the verification page and enter the device code shown by CPAMP.
- Complete authorization with Meta, then return to CPAMP; the panel polls the auth state and saves the auth file.
- Open Accounts to confirm the account and refresh quota when needed.
Muse / Meta OAuth stores an account credential whose DCA is used only for authentication and account/quota flows. It is not a Meta inference API key. Do not place a dca: credential in an AI Provider API key or Authorization header; model inference uses a separate meta-api-key configuration.
Accounts does not currently expose one-click Meta reauthorization. Return to OAuth Login and repeat Device Flow when reauthorization is needed. Full Muse / Meta support requires CPA v7.3.4+.
Remote Browser Callback
If CPAMP runs on a remote server, the provider may redirect to http://localhost:.... In that case:
- Copy the full callback URL from the browser address bar.
- Paste it into the callback URL field.
- Submit it and wait for auth state to update.
- If the page reports an upgrade or API issue, check CPA version and management API availability.
Paste the full callback URL. Do not manually extract code or state; that can break state matching.
Vertex Credential Import
Vertex usually requires a service-account file and a location. After import, check the returned project, email, location, and file name.
If import succeeds but requests fail, check both AI Providers for Vertex routing and Accounts for project ID.
Reauthorize
Reauthorize when:
- Accounts says the credential needs login again.
- Monitoring shows
token_revoked,invalidated oauth token, or a similar summary. - Codex Inspection recommends reauth.
- The upstream account password, organization, or authorization scope changed.
After reauth, do not immediately delete old files. Confirm the new file works first, then clean up accounts that are clearly invalid.
Security Notes
Authorization links, callback URLs, and auth files can contain sensitive data. Do not paste full values into public issues or chats. For troubleshooting, describe the stage and share sanitized errors.