agent-zero/plugins/_oauth
Alessandro d387b1827f Fix Codex account SSE response recovery
Decode byte chunks from the live Codex/ChatGPT account SSE stream before parsing events.

Preserve accumulated output_text deltas when the final response.completed object is present but has no extractable output content.

Update the OAuth tests to cover byte-delivered SSE chunks and empty completed responses.
2026-04-28 16:14:53 +02:00
..
api Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +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 Fix Codex account SSE response recovery 2026-04-28 16:14:53 +02:00
webui Add Codex/ChatGPT account OAuth provider 2026-04-28 16:14:53 +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.