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: gateway · Verdagon/opencode@40036ab

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bun.lock
  • infra
    • app.ts
  • opencode.json
  • packages
    • function
      • package.json
      • src
        • gateway.ts
      • sst-env.d.ts
    • plugin
      • sst-env.d.ts
    • sdk/js
      • sst-env.d.ts
  • sst-env.d.ts
  • sst.config.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+26-5Lines changed: 26 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎infra/app.ts‎

Copy file name to clipboardExpand all lines: infra/app.ts
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,15 @@ new sst.cloudflare.x.Astro("Web", {
4646
VITE_API_URL: api.url,
4747
},
4848
})
49+
50+
const OPENCODE_API_KEY = new sst.Secret("OPENCODE_API_KEY")
51+
const ANTHROPIC_API_KEY = new sst.Secret("ANTHROPIC_API_KEY")
52+
const OPENAI_API_KEY = new sst.Secret("OPENAI_API_KEY")
53+
const ZHIPU_API_KEY = new sst.Secret("ZHIPU_API_KEY")
54+
55+
export const gateway = new sst.cloudflare.Worker("GatewayApi", {
56+
domain: `api.gateway.${domain}`,
57+
handler: "packages/function/src/gateway.ts",
58+
url: true,
59+
link: [OPENCODE_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY, ZHIPU_API_KEY],
60+
})
Collapse file

‎opencode.json‎

Copy file name to clipboardExpand all lines: opencode.json
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3+
"model": "opencode/anthropic/claude-sonnet-4",
4+
"provider": {
5+
"opencode": {
6+
"name": "opencode",
7+
"npm": "@ai-sdk/openai-compatible",
8+
"options": {
9+
"baseURL": "https://api.gateway.frank.dev.opencode.ai/v1"
10+
},
11+
"models": {
12+
"anthropic/claude-sonnet-4": {},
13+
"openai/gpt-4.1": {},
14+
"zhipu/glm-4.5-flash": {}
15+
}
16+
}
17+
},
318
"mcp": {
419
"context7": {
520
"type": "remote",
Collapse file

‎packages/function/package.json‎

Copy file name to clipboardExpand all lines: packages/function/package.json
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
"type": "module",
77
"devDependencies": {
88
"@cloudflare/workers-types": "4.20250522.0",
9-
"typescript": "catalog:",
10-
"@types/node": "catalog:"
9+
"@types/node": "catalog:",
10+
"openai": "5.11.0",
11+
"typescript": "catalog:"
1112
},
1213
"dependencies": {
14+
"@ai-sdk/anthropic": "2.0.0",
15+
"@ai-sdk/openai": "2.0.2",
16+
"@ai-sdk/openai-compatible": "1.0.1",
1317
"@octokit/auth-app": "8.0.1",
1418
"@octokit/rest": "22.0.0",
19+
"ai": "catalog:",
1520
"hono": "catalog:",
1621
"jose": "6.0.11"
1722
}

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.