Lightweight coding agent that runs in your terminal
Rust
feat: add specific instructions for creating API keys in error msg (#581)
theg1239ad1e39c9037c
diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsxindex 1118bfe6df..9a1fcd2228 100644--- a/codex-cli/src/cli.tsx+++ b/codex-cli/src/cli.tsx@@ -271,6 +271,10 @@ if (!apiKey && !NO_API_KEY_REQUIRED.has(provider.toLowerCase())) {? `You can create a key here: ${chalk.bold(chalk.underline("https://platform.openai.com/account/api-keys"),)}\n`+ : provider.toLowerCase() === "gemini"+ ? `You can create a ${chalk.bold(+ `${provider.toUpperCase()}_API_KEY`,+ )} ` + `in the ${chalk.bold(`Google AI Studio`)}.\n`: `You can create a ${chalk.bold(`${provider.toUpperCase()}_API_KEY`,)} ` + `in the ${chalk.bold(`${provider}`)} dashboard.\n`