A desktop coding agent with free access to frontier models.
TypeScript
Worker Routes
This folder owns worker lifecycle, runtime, billing, and heartbeat routes.
Files
index.ts: registers all worker route groupsactivity.ts: unauthenticated worker heartbeat endpoint authenticated by worker activity tokenbilling.ts: user-facing cloud worker billing endpointscore.ts: list/create/get/update/delete worker routes and token lookupruntime.ts: worker runtime inspection and upgrade passthrough endpointsshared.ts: worker schemas, helper functions, response mapping, and shared DB/runtime utilities
Middleware expectations
- Most worker routes use
requireUserMiddleware - Org-scoped worker routes should use
resolveUserOrganizationsMiddlewareto determine the current active org - Request payloads, params, and query flags should use Hono Zod validators from
src/middleware/index.ts
Notes
- Activity heartbeat is the exception: it uses worker tokens instead of user auth
- Runtime endpoints proxy to the worker runtime using stored host tokens and instance URLs
- Provisioning logic lives in
src/workers/, not in the route handlers themselves