summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-02-25 01:54:28 -0500
committerDax Raad <[email protected]>2026-02-25 01:54:28 -0500
commit561f9f5f059ccefdad89ca01e79cc1234b913820 (patch)
tree6746342626c8d98570baac0538dafa8267409193
parent3c6c74457d53a01a3f42a758ad1317cd6ed1b963 (diff)
downloadopencode-561f9f5f059ccefdad89ca01e79cc1234b913820.tar.gz
opencode-561f9f5f059ccefdad89ca01e79cc1234b913820.zip
opencode go copy
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx42
1 files changed, 29 insertions, 13 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
index 9682bee4e..d88dfdd86 100644
--- a/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
@@ -16,10 +16,11 @@ import { useToast } from "../ui/toast"
const PROVIDER_PRIORITY: Record<string, number> = {
opencode: 0,
- anthropic: 1,
+ openai: 1,
"github-copilot": 2,
- openai: 3,
- google: 4,
+ "opencode-go": 3,
+ anthropic: 4,
+ google: 5,
}
export function createDialogProviderOptions() {
@@ -37,6 +38,7 @@ export function createDialogProviderOptions() {
opencode: "(Recommended)",
anthropic: "(Claude Max or API key)",
openai: "(ChatGPT Plus/Pro or API key)",
+ "opencode-go": "(Low cost)",
}[provider.id],
category: provider.id in PROVIDER_PRIORITY ? "Popular" : "Other",
async onSelect() {
@@ -214,16 +216,30 @@ function ApiMethod(props: ApiMethodProps) {
title={props.title}
placeholder="API key"
description={
- props.providerID === "opencode" ? (
- <box gap={1}>
- <text fg={theme.textMuted}>
- OpenCode Zen gives you access to all the best coding models at the cheapest prices with a single API key.
- </text>
- <text fg={theme.text}>
- Go to <span style={{ fg: theme.primary }}>https://opencode.ai/zen</span> to get a key
- </text>
- </box>
- ) : undefined
+ {
+ opencode: (
+ <box gap={1}>
+ <text fg={theme.textMuted}>
+ OpenCode Zen gives you access to all the best coding models at the cheapest prices with a single API
+ key.
+ </text>
+ <text fg={theme.text}>
+ Go to <span style={{ fg: theme.primary }}>https://opencode.ai/zen</span> to get a key
+ </text>
+ </box>
+ ),
+ "opencode-go": (
+ <box gap={1}>
+ <text fg={theme.textMuted}>
+ OpenCode Go is a $10 per month subscription that provides reliable access to popular open coding models
+ with generous usage limits.
+ </text>
+ <text fg={theme.text}>
+ Go to <span style={{ fg: theme.primary }}>https://opencode.ai/zen</span> and enable OpenCode Go
+ </text>
+ </box>
+ ),
+ }[props.providerID] ?? undefined
}
onConfirm={async (value) => {
if (!value) return