[codex] add experimental managed Amazon Bedrock login and logout#28148
Closed
celia-oai wants to merge 3 commits into
Closed
[codex] add experimental managed Amazon Bedrock login and logout#28148celia-oai wants to merge 3 commits into
celia-oai wants to merge 3 commits into
Conversation
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
from
June 14, 2026 03:50
56da969 to
1a11fef
Compare
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
from
June 14, 2026 04:03
1a11fef to
6161f76
Compare
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
7 times, most recently
from
June 14, 2026 06:30
9fd89f7 to
02699b6
Compare
celia-oai
force-pushed
the
dev/cc/managed-3
branch
from
June 16, 2026 04:54
1e6ae6d to
a025639
Compare
This was referenced Jun 16, 2026
celia-oai
force-pushed
the
dev/cc/managed-3
branch
2 times, most recently
from
June 16, 2026 07:09
a028e42 to
e0a2c1e
Compare
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
2 times, most recently
from
June 16, 2026 20:37
c7ebb58 to
297c2f6
Compare
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
5 times, most recently
from
June 17, 2026 00:49
90dc87a to
29993e2
Compare
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
from
June 17, 2026 23:20
29993e2 to
0c7bdc7
Compare
Contributor
|
Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
celia-oai
force-pushed
the
codex/managed-bedrock-login
branch
from
July 6, 2026 20:39
0c7bdc7 to
f83e13d
Compare
This was referenced Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
After #27751,
account/readcan report whether Amazon Bedrock is using AWS-managed credentials or a Codex-managed API key, but app-server clients still have no matching way to create or remove that managed credential.This PR adds an experimental managed Amazon Bedrock login/logout flow so app-server clients can onboard Bedrock users without treating a Bedrock API key as general OpenAI authentication. Bedrock credentials stay provider-scoped, while account reporting, request telemetry, CLI status, and diagnostics use the auth mode reported by the active model provider.
What changed
amazonBedrockvariant to v2account/login/start, including generated JSON and TypeScript schema updates.experimentalApiinitialization capability for managed Bedrock login. The parameterlessaccount/logoutremains available as a best-effort cleanup path for clients that cannot use the experimental login method.AuthManagercache, and keep the credential separate fromCodexAuth. General API-key login clears a previously stored Bedrock credential.model_provider = "amazon-bedrock"to the user config after login. Logout removes managed Bedrock credentials and clears that user-layer provider only when it still points toamazon-bedrock, preserving a provider value changed after login.bedrockApiKeythroughaccount/updatedand reportcredentialSource: "codexManaged"throughaccount/read. An app-server already configured for Bedrock reflects transitions between Codex-managed and AWS-managed credentials without a restart.codex login status, andcodex doctorthrough provider-reported auth mode so managed Bedrock is visible without exposing its API key through the general OpenAI auth path.codex-rs/app-server/README.md.A running session whose active provider is not Bedrock does not live-switch model providers after the config write; a new app-server session or restart picks up the persisted provider. The auth and config writes are also not transactional, so cross-store rollback remains follow-up work.
Verification
just test -p codex-app-server-protocoljust test -p codex-loginjust test -p codex-model-provider