Skip to content

feat(openai): support Codex CLI auth#215

Open
claytonlin1110 wants to merge 3 commits intovirattt:mainfrom
claytonlin1110:feat/compliance-guardrail-mode
Open

feat(openai): support Codex CLI auth#215
claytonlin1110 wants to merge 3 commits intovirattt:mainfrom
claytonlin1110:feat/compliance-guardrail-mode

Conversation

@claytonlin1110
Copy link
Copy Markdown
Contributor

@claytonlin1110 claytonlin1110 commented Mar 31, 2026

Summary

Closes #91

  • Dexter can use Codex CLI credentials from ~/.codex/auth.json (or CODEX_HOME), so OPENAI_API_KEY in .env is optional when Codex is already logged in.
  • Resolution order: env key → API key in auth.json → ChatGPT OAuth (tokens + account id).
  • OAuth chat goes to the ChatGPT Codex backend (chatgpt.com/backend-api/codex), not the usual platform chat URL.
  • Embeddings still require a platform API key (env or OPENAI_API_KEY in auth.json); OAuth-only setups should use Gemini/Ollama for memory embeddings if configured.
  • Dexter does not refresh OAuth tokens; rely on Codex / re-login to keep auth.json valid.

@claytonlin1110 claytonlin1110 force-pushed the feat/compliance-guardrail-mode branch 2 times, most recently from a35f881 to aa0e4ac Compare April 1, 2026 17:41
@claytonlin1110 claytonlin1110 changed the title feat: add compliance guardrails for financial responses feat(openai): support Codex CLI auth (API key + ChatGPT OAuth) Apr 1, 2026
@claytonlin1110 claytonlin1110 changed the title feat(openai): support Codex CLI auth (API key + ChatGPT OAuth) feat(openai): support Codex CLI auth Apr 1, 2026
@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt had a chance to review?

@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt Please review

@claytonlin1110 claytonlin1110 force-pushed the feat/compliance-guardrail-mode branch from aa0e4ac to 7ab2224 Compare April 9, 2026 06:21
@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt Sorry for pining, but please comment any feedback if you have. Thanks.

@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt Can you review?

@claytonlin1110 claytonlin1110 force-pushed the feat/compliance-guardrail-mode branch from 7ab2224 to c63728c Compare April 14, 2026 05:51
@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt I updated PR title & description

@claytonlin1110
Copy link
Copy Markdown
Contributor Author

@virattt Will you please review when you have a chance? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add codex oauth support to increase adoption and reduce expenses

1 participant