Skip to content

The open source coding agent.

TypeScript

openapi route

Dax Raadf8807144d4b3
diff --git a/packages/console/app/src/routes/openapi.json.ts b/packages/console/app/src/routes/openapi.json.ts
new file mode 100644
index 00000000000..8b27cb89ae4
--- /dev/null
+++ b/packages/console/app/src/routes/openapi.json.ts
@@ -0,0 +1,7 @@
+export async function GET() {
+ const response = await fetch(
+ "https://raw.githubusercontent.com/sst/opencode/refs/heads/dev/packages/sdk/openapi.json",
+ )
+ const json = await response.json()
+ return json
+}