Any agent, anywhere.

Bring any model or harness, compose your own Capabilities around a persistent Workspace, and deploy the same Agent to any host.

Start with an Agent.

Use Server Primitives directly when ordinary server code is all you need.

Agents

Define one inspectable server actor, choose how it runs, and attach only the context and abilities it needs.

Build your first Agent
server/agents/review.ts
import { defineAgent } from "@vite-hub/agent"

export default defineAgent({
  description: "Reviews one repository change.",
  driver: {
    run({ prompt }) {
      return { text: "Reviewing " + String(prompt ?? "the repository") + "." }
    },
  },
})

Server Primitives

Use storage, queues, schedules, sandboxes, and more directly from ordinary server code.

Try a Server Primitive
server/api/settings.put.ts
import { kv } from "@vite-hub/kv"

export default defineEventHandler(async (event) => {
  await kv.set("settings", await readBody(event))
  return { ok: true }
})
Copyright © 2026