Skip to content

Allow API-key auth for remote exec-server registration#24666

Open
sdcoffey wants to merge 2 commits into
mainfrom
dev/steve/exec-server-api-key-auth
Open

Allow API-key auth for remote exec-server registration#24666
sdcoffey wants to merge 2 commits into
mainfrom
dev/steve/exec-server-api-key-auth

Conversation

@sdcoffey
Copy link
Copy Markdown
Contributor

@sdcoffey sdcoffey commented May 27, 2026

Overview

Allow remote codex exec-server registration to use existing API-key auth for remotes that accept API keys.

  • Accept CodexAuth::ApiKey for the normal --remote registration path while retaining --use-agent-identity-auth as the explicit Agent Identity path.
  • Document remote registration using CODEX_API_KEY.

Big picture

Callers can now provide an API key directly to exec-server registration without first establishing ChatGPT login state:

CODEX_API_KEY="$OPENAI_API_KEY" \
codex exec-server \
  --remote https://api.example.com/api \
  --environment-id "$ENVIRONMENT_ID"

Validation

  • cargo fmt --all -- --check (just fmt is not installed on this host)
  • cargo test -p codex-cli -p codex-exec-server (run before the documentation and test-only cleanup; the behavioral code is unchanged)

@sdcoffey sdcoffey force-pushed the dev/steve/exec-server-api-key-auth branch from 4e0de11 to 348a07c Compare May 27, 2026 00:14
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.

1 participant