The open source coding agent.
TypeScript
fix: cloudflare provider information (#6426)
Rohan Mukherjee23bbfb3d1584
diff --git a/packages/opencode/src/cli/cmd/auth.ts b/packages/opencode/src/cli/cmd/auth.tsindex 658329fb6ef..a5e52dd0e62 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"),