You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Materialize codex credentials β auth.json + file-backed cred store (#393)
* Materialize codex credentials β auth.json + file-backed cred store
The codex adapter only *checked* OPENAI_API_KEY in the env and wired nothing.
Codex authenticates from $CODEX_HOME/auth.json (and may otherwise reach for an
OS keyring the container lacks), so a bare env var never logged codex in β a
launch blocker.
Add a `write_credentials` seam to the AgentCLI ABC (claude: no-op; codex:
render auth.json from CODEX_API_KEY/OPENAI_API_KEY in the exact shape
`codex login --with-api-key` writes, 0600, idempotent β never clobbering an
existing login β and pin `cli_auth_credentials_store = "file"`). The launcher
calls it after the auth check, before launch β it holds no CLI-specific
credential shape.
Fix `auth_missing_detail`: it now takes the config dir and accepts any of
CODEX_API_KEY / OPENAI_API_KEY / CODEX_ACCESS_TOKEN *or* a pre-existing
auth.json on the per-task volume (a container already logged in β e.g. carried
across respawn β was wrongly failed before). The detail names every option.
Document the codex/OpenAI tiers in docs/auth.md and fix the stale
"auth β OPENAI_API_KEY" docstrings.
Out of scope: the shared credential-dir mount for rotating ChatGPT
subscription tokens (its own subtask).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Reorient auth docs around per-repo agent_cli (claude vs codex)
The page opened "Every task runs claude", which is wrong for tasks whose repo
sets agent_cli=codex. Restructure into per-CLI sections: a generalized intro,
"Claude (the default)" wrapping the existing flow, and a first-class
"Codex (tasks whose agent_cli is codex)" section framed as the parallel
per-repo env-file setup (API key or ChatGPT workspace token), plus a codex
rotating-key gotcha (auth.json is cached on the per-task volume). Shared notes
are retitled "both CLIs" with claude-specific items tagged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Panopticon Agent <agent@panopticon.local>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments