GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wip console · josephschmitt/opencode@0f8cb69

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • opencode.json
  • packages/opencode/src/cli/cmd
    • auth.ts
    • github.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎opencode.json‎

Copy file name to clipboardExpand all lines: opencode.json
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3-
"provider": {
4-
"frank": {
5-
"npm": "@ai-sdk/openai-compatible",
6-
"name": "My AI ProviderDisplay Name",
7-
"env": ["OPENCODE_API_KEY"],
8-
"options": {
9-
"baseURL": "https://console.frank.dev.opencode.ai/gateway/v1"
10-
},
11-
"models": {
12-
"x-ai/grok-code-fast-1": {
13-
"name": "Grok Code Fast 1"
14-
},
15-
"qwen/qwen3-coder": {
16-
"name": "Qwen 3 Coder"
17-
}
18-
}
19-
}
20-
},
213
"mcp": {
224
"weather": {
235
"type": "local",
Collapse file

‎packages/opencode/src/cli/cmd/auth.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/auth.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ export const AuthLoginCommand = cmd({
103103
await ModelsDev.refresh().catch(() => {})
104104
const providers = await ModelsDev.get()
105105
const priority: Record<string, number> = {
106-
anthropic: 0,
107-
"github-copilot": 1,
108-
openai: 2,
109-
google: 3,
110-
openrouter: 4,
111-
vercel: 5,
106+
opencode: 0,
107+
anthropic: 1,
108+
"github-copilot": 2,
109+
openai: 3,
110+
google: 4,
111+
openrouter: 5,
112+
vercel: 6,
112113
}
113114
let provider = await prompts.autocomplete({
114115
message: "Select provider",
@@ -124,7 +125,7 @@ export const AuthLoginCommand = cmd({
124125
map((x) => ({
125126
label: x.name,
126127
value: x.id,
127-
hint: priority[x.id] === 0 ? "recommended" : undefined,
128+
hint: priority[x.id] <= 1 ? "recommended" : undefined,
128129
})),
129130
),
130131
{
Collapse file

‎packages/opencode/src/cli/cmd/github.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/github.ts
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,13 @@ export const GithubInstallCommand = cmd({
9393

9494
async function promptProvider() {
9595
const priority: Record<string, number> = {
96-
anthropic: 0,
97-
"github-copilot": 1,
98-
openai: 2,
99-
google: 3,
96+
opencode: 0,
97+
anthropic: 1,
98+
"github-copilot": 2,
99+
openai: 3,
100+
google: 4,
101+
openrouter: 5,
102+
vercel: 6,
100103
}
101104
let provider = await prompts.select({
102105
message: "Select provider",
@@ -111,7 +114,7 @@ export const GithubInstallCommand = cmd({
111114
map((x) => ({
112115
label: x.name,
113116
value: x.id,
114-
hint: priority[x.id] === 0 ? "recommended" : undefined,
117+
hint: priority[x.id] <= 1 ? "recommended" : undefined,
115118
})),
116119
),
117120
})

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.