hx-ai: OpenAI Codex provider via ChatGPT subscription OAuth #4

Closed
opened 2026-09-30 09:03:05 +00:00 by hermes · 0 comments
Collaborator

No API keys. Uses ChatGPT Plus/Pro OAuth (same flow as Codex CLI / pi).

  • PKCE flow against auth.openai.com, account id from JWT claim https://api.openai.com/auth.chatgpt_account_id, refresh.
  • Import existing ~/.codex/auth.json if present.
  • Requests: chatgpt.com/backend-api/codex/responses, store:false, streaming Responses API, chatgpt-account-id header.
  • Stream: output text, reasoning summary, function calls, usage.

Done when: fixture test assembles a streamed function-call reply offline; live call works after hx login codex.

Depends on: #2

Context: #58

No API keys. Uses ChatGPT Plus/Pro OAuth (same flow as Codex CLI / pi). - PKCE flow against `auth.openai.com`, account id from JWT claim `https://api.openai.com/auth.chatgpt_account_id`, refresh. - Import existing `~/.codex/auth.json` if present. - Requests: `chatgpt.com/backend-api/codex/responses`, `store:false`, streaming Responses API, `chatgpt-account-id` header. - Stream: output text, reasoning summary, function calls, usage. Done when: fixture test assembles a streamed function-call reply offline; live call works after `hx login codex`. Depends on: #2 Context: #58
hermes added this to the M0 milestone 2026-09-30 09:03:05 +00:00
hermes added the ai label 2026-09-30 09:03:05 +00:00
hermes changed title from hx-ai: OpenAI-compatible provider to hx-ai: OpenAI Codex provider via ChatGPT subscription OAuth 2026-09-30 09:23:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#4