AI Engineering Workspace
PartialChat, 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- ..
- apple-touch-icon.png
- brand-guidelines-v2.md
- brand-manifest-v2.json
- favicon-16.png
- favicon-32.png
- favicon-48.png
- favicon.ico
- icon-192.png
- icon-512.png
- maskable-192.png
- maskable-512.png
- source-brand-board.png
- source-crop-icon-fullcolor.png
- source-crop-lockup-dark.png
- source-crop-wordmark-light.png
- zloud-app-icon-1024.png
- zloud-app-icon.svg
- zloud-favicon.svg
- zloud-mark-1024.png
- zloud-mark-512.png
- zloud-mark-mono-512.png
- zloud-mark-mono.svg
- zloud-mark-reversed.svg
- zloud-mark-white-512.png
- zloud-mark-white.svg
- zloud-mark.svg
- zloud-maskable.svg
- zloud-wordmark-dark.svg
- zloud-wordmark-light.svg
- zloud-wordmark-mono.svg
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
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD 692573d on master.
Approval requests
None pending.