Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Oct 21, 2025

While we do not want to encourage users to hardcode secrets in their config.toml file, it should be possible to pass an API key programmatically. For example, when using codex app-server, it is possible to pass a "bag of configuration" as part of the NewConversationParams:

/// Individual config settings that will override what is in
/// CODEX_HOME/config.toml.
#[serde(skip_serializing_if = "Option::is_none")]
pub config: Option<HashMap<String, serde_json::Value>>,

When using codex app-server, it's not practical to change env vars of the codex app-server process on the fly (which is how we usually read API key values), so this helps with that.

@bolinfest bolinfest changed the title feat: add secret_key option to model provider definition feat: add bearer_token option to model provider definition Oct 21, 2025
@bolinfest bolinfest changed the title feat: add bearer_token option to model provider definition feat: add experimental_bearer_token option to model provider definition Oct 21, 2025
@bolinfest bolinfest merged commit 404cae7 into main Oct 21, 2025
40 checks passed
@bolinfest bolinfest deleted the pr5467 branch October 21, 2025 21:02
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants