mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add codex login --api-key (#1759)
Allow setting the API key via `codex login --api-key`
This commit is contained in:
1 parent
96654a5d52
commit
549846b29a
10 files changed
+218
-46
No files matched your search
@@ -26,7 +26,7 @@ pub struct CodexConversation {
|
||||
/// that callers can surface the information to the UI.
|
||||
pub async fn init_codex(config: Config) -> anyhow::Result<CodexConversation> {
|
||||
let ctrl_c = notify_on_sigint();
|
||||
let auth = load_auth(&config.codex_home)?;
|
||||
let auth = load_auth(&config.codex_home, true)?;
|
||||
let CodexSpawnOk {
|
||||
codex,
|
||||
init_id,
|
||||
|
||||
Reference in new issue
Block a user