Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

app/src/app/api/cloud/usage/route.ts

1import { db } from "@/lib/db";
2import { tenant } from "@/lib/tenant";
3import { usageSummary } from "@/lib/cloud";
4export const dynamic = "force-dynamic";
5export async function GET() {
6 const g = await tenant("viewer"); if (g.res) return g.res; const o = g.ctx.orgId;
7 return Response.json({ summary: await usageSummary(o), records: await db().prepare("SELECT kind,quantity,unit,ts,instance_id FROM usage_records WHERE org_id=? ORDER BY id DESC LIMIT 50").all(o), byModel: await db().prepare("SELECT provider,model,COUNT(*) calls,SUM(tokens_in) tin,SUM(tokens_out) tout,SUM(cost_usd) usd FROM usage_ledger WHERE org_id=? GROUP BY provider,model ORDER BY usd DESC").all(o) });
8}
9

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD fb22adb on master.

Approval requests

None pending.