agent-zero/plugins/_oauth
Alessandro 0da8f3dc2b Add OAuth disconnect and remaining quota visibility
Allow users to disconnect their OpenAI account by clearing stored ChatGPT OAuth tokens while preserving unrelated auth data.

Fetch and normalize Codex usage windows, then show remaining percentage and reset timing in the OAuth settings UI.

Add focused tests for usage parsing and disconnect cleanup.
2026-05-02 20:14:04 +02:00
..
api Add OAuth disconnect and remaining quota visibility 2026-05-02 20:14:04 +02:00
conf Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +02:00
extensions/python Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +02:00
helpers Add OAuth disconnect and remaining quota visibility 2026-05-02 20:14:04 +02:00
webui Add OAuth disconnect and remaining quota visibility 2026-05-02 20:14:04 +02:00
default_config.yaml Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +02:00
plugin.yaml Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +02:00
README.md Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +02:00

OAuth Connections

Generic local OAuth bridge for Agent Zero.

The first provider is Codex/ChatGPT Account:

  • signs in with OpenAI's Codex device-code flow
  • writes Codex-compatible auth.json credentials
  • refreshes local tokens when needed
  • exposes a loopback OpenAI-compatible wrapper at /oauth/codex/v1

Tokens in auth.json are password-equivalent credentials. Keep this plugin on trusted local machines only.