@@ -16,10 +16,11 @@ import { useToast } from "../ui/toast"
1616
1717const PROVIDER_PRIORITY : Record < string , number > = {
1818 opencode : 0 ,
19- anthropic : 1 ,
19+ openai : 1 ,
2020 "github-copilot" : 2 ,
21- openai : 3 ,
22- google : 4 ,
21+ "opencode-go" : 3 ,
22+ anthropic : 4 ,
23+ google : 5 ,
2324}
2425
2526export function createDialogProviderOptions ( ) {
@@ -37,6 +38,7 @@ export function createDialogProviderOptions() {
3738 opencode : "(Recommended)" ,
3839 anthropic : "(Claude Max or API key)" ,
3940 openai : "(ChatGPT Plus/Pro or API key)" ,
41+ "opencode-go" : "(Low cost)" ,
4042 } [ provider . id ] ,
4143 category : provider . id in PROVIDER_PRIORITY ? "Popular" : "Other" ,
4244 async onSelect ( ) {
@@ -214,16 +216,30 @@ function ApiMethod(props: ApiMethodProps) {
214216 title = { props . title }
215217 placeholder = "API key"
216218 description = {
217- props . providerID === "opencode" ? (
218- < box gap = { 1 } >
219- < text fg = { theme . textMuted } >
220- OpenCode Zen gives you access to all the best coding models at the cheapest prices with a single API key.
221- </ text >
222- < text fg = { theme . text } >
223- Go to < span style = { { fg : theme . primary } } > https://opencode.ai/zen</ span > to get a key
224- </ text >
225- </ box >
226- ) : undefined
219+ {
220+ opencode : (
221+ < box gap = { 1 } >
222+ < text fg = { theme . textMuted } >
223+ OpenCode Zen gives you access to all the best coding models at the cheapest prices with a single API
224+ key.
225+ </ text >
226+ < text fg = { theme . text } >
227+ Go to < span style = { { fg : theme . primary } } > https://opencode.ai/zen</ span > to get a key
228+ </ text >
229+ </ box >
230+ ) ,
231+ "opencode-go" : (
232+ < box gap = { 1 } >
233+ < text fg = { theme . textMuted } >
234+ OpenCode Go is a $10 per month subscription that provides reliable access to popular open coding models
235+ with generous usage limits.
236+ </ text >
237+ < text fg = { theme . text } >
238+ Go to < span style = { { fg : theme . primary } } > https://opencode.ai/zen</ span > and enable OpenCode Go
239+ </ text >
240+ </ box >
241+ ) ,
242+ } [ props . providerID ] ?? undefined
227243 }
228244 onConfirm = { async ( value ) => {
229245 if ( ! value ) return
0 commit comments