[REMOTE-1688] Add Codex auth secret types to CLI#11122
Draft
abhishekp106 wants to merge 1 commit into
Draft
Conversation
Adds an `oz secret create codex api-key <NAME>` subcommand that mirrors the existing `oz secret create anthropic ...` provider flow. The Codex harness currently only authenticates via an OpenAI API key, optionally with a custom base URL (e.g. a regional endpoint), so the new command supports both: oz secret create codex api-key my-key --value-file key.txt oz secret create codex api-key my-key --base-url https://us.api.openai.com/v1 The API key value is read from --value-file, stdin, or an interactive prompt, matching the existing simple-secret flows. The --base-url flag is optional; an empty value is normalized to None. Tests: - Parser tests for the new `codex api-key` subcommand: minimal form, flags-and-team-scope form, and a regression test that the secret name is still required. Co-Authored-By: Oz <oz-agent@warp.dev>
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.
Description
Adds an
oz secret create codex api-key <NAME>subcommand that mirrors the existingoz secret create anthropic ...provider flow. The Codex harness currently only authenticates via an OpenAI API key (with an optional custom base URL, e.g. for regional endpoints), which matches the single Codex auth secret type the server already supports (openai_api_key).The API key value is read from
--value-file, stdin, or an interactive password prompt — same as the existing simple-secret flows. The--base-urlflag is optional; an empty value is normalized toNoneso we never persist a blank base URL.Closes REMOTE-1688.
Linked Issue
ready-to-specorready-to-implement.Testing
Added clap parser tests in
crates/warp_cli/src/lib_tests.rscovering:oz secret create codex api-key <NAME>form,--value-file,--base-url,--description, and--teamtogether,All 148
warp_clitests pass undercargo nextest run -p warp_cli.cargo fmt --check -p warp_cli -p warpandcargo clippy -p warp_cli -p warp --all-targets --tests -- -D warningsare clean.I have manually tested my changes locally with
./script/runAgent Mode
Conversation: https://staging.warp.dev/conversation/5d5a73fb-ec89-4c6c-91c0-54d49f9bfc90
Run: https://oz.staging.warp.dev/runs/019e3365-8f0e-70d3-8384-e763989d8229
This PR was generated with Oz.