plugins/_oauth/README.md
Generic local OAuth bridge for Agent Zero.
Tokens in auth.json are password-equivalent credentials. Keep this plugin on trusted local machines only. Do not configure auth_file_path to share a rotating refresh-token file with Codex CLI or another client.
The settings UI groups providers as account-backed connections. More than one account provider can be connected at the same time, and the Main/Utility model slots can choose models from any connected OAuth provider.
codex_oauth)auth.json file./oauth/codex/v1.github_copilot_oauth)usr/plugins/_oauth/github_copilot/auth.json.gemini_api_oauth)/oauth/gemini-api/v1.usr/plugins/_oauth/gemini_api/auth.json.xai_grok_oauth)usr/plugins/_oauth/xai_grok/auth.json.The status API exposes usage_plan_catalog for subscription and billing context. It covers only connectable providers: Codex, GitHub Copilot, Google Gemini API, and xAI Grok.
The same status response also includes oauth_accounts, a compact summary used by the settings modal, welcome discovery card, and onboarding wizard. Keep that summary provider-registry driven so new OAuth providers appear consistently across those surfaces.
When Agent Zero is running on a remote host, the browser may complete the xAI authorization step somewhere other than the machine serving the local callback route. In that case, paste the callback value into the xAI card.
The xAI card accepts any of these formats:
?code=...&state=....