summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRohan Mukherjee <[email protected]>2025-12-30 21:15:09 +0530
committerGitHub <[email protected]>2025-12-30 09:45:09 -0600
commit23bbfb3d1584d9dd98ccb5431d193894af91f138 (patch)
tree69e8c5f2553ea643e0bc7e02f20e0fd1b8a0d36a
parent37da005a0141b099bb72671b320991c85de8cd0f (diff)
downloadopencode-23bbfb3d1584d9dd98ccb5431d193894af91f138.tar.gz
opencode-23bbfb3d1584d9dd98ccb5431d193894af91f138.zip
fix: cloudflare provider information (#6426)
-rw-r--r--packages/opencode/src/cli/cmd/auth.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/auth.ts b/packages/opencode/src/cli/cmd/auth.ts
index 658329fb6..a5e52dd0e 100644
--- a/packages/opencode/src/cli/cmd/auth.ts
+++ b/packages/opencode/src/cli/cmd/auth.ts
@@ -349,6 +349,12 @@ export const AuthLoginCommand = cmd({
prompts.log.info("You can create an api key at https://vercel.link/ai-gateway-token")
}
+ if (["cloudflare", "cloudflare-ai-gateway"].includes(provider)) {
+ prompts.log.info(
+ "Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway",
+ )
+ }
+
const key = await prompts.password({
message: "Enter your API key",
validate: (x) => (x && x.length > 0 ? undefined : "Required"),