Skip to content

OpenAI codex oauth integration#23

Merged
frostming merged 9 commits intobubbuild:mainfrom
niyue:feat/openai-oauth-integration
Mar 9, 2026
Merged

OpenAI codex oauth integration#23
frostming merged 9 commits intobubbuild:mainfrom
niyue:feat/openai-oauth-integration

Conversation

@niyue
Copy link
Contributor

@niyue niyue commented Mar 5, 2026

Summary

This PR adds OpenAI Codex OAuth integration and Codex backend support.
Users can authenticate via Codex OAuth and use subscription-backed access without manually providing OpenAI API keys.
This PR will address #22

What Changed

  • Added provider-scoped API key resolver support in LLM core.
  • Added OpenAI Codex OAuth token storage/resolver/login flow.


from republic.auth.openai_codex import (
login_openai_codex_oauth,
openai_codex_oauth_resolver,
Copy link
Contributor Author

@niyue niyue Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this PR is merged, I’ll follow up with a separate PR in bub that uses these two APIs to:

  1. add a CLI login command for Codex OAuth (to generate/store credentials), and
  2. use those OAuth credentials for OpenAI requests.

I’ve already done an initial local validation of this flow in bub using these two APIs.

@PsiACE
Copy link
Collaborator

PsiACE commented Mar 6, 2026

I’m also a Codex user, so thanks for your contribution. Could you also fix the CI?

@niyue
Copy link
Contributor Author

niyue commented Mar 7, 2026

Could you also fix the CI?

Sure. It looks like there are some linting issues, I will fix them and get back to you later.

@niyue
Copy link
Contributor Author

niyue commented Mar 7, 2026

@PsiACE

I've fixed the the linting and type checking issues and verified them locally, could you please help to rerun the CI? Thanks.

@frostming frostming merged commit 8793266 into bubbuild:main Mar 9, 2026
6 checks passed
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.

3 participants