The best way to control Claude Code, Codex and more from any computer or phone

main
ts 11 lines 405 Bytes
Raw
1 import type { D1Database, KVNamespace, R2Bucket } from "@cloudflare/workers-types";
2
3 export default {
4 async fetch(_request: Request, env: { KV: KVNamespace; BUCKET: R2Bucket; DB: D1Database }) {
5 return Response.json({
6 kv: await env.KV.get("seed"),
7 r2: await (await env.BUCKET.get("seed"))?.text(),
8 d1: await env.DB.prepare("SELECT value FROM seed").first("value"),
9 });
10 },
11 };