The server layer for Vite apps

Any agent, anywhere.

Bring any model or coding provider, compose your own Capabilities around a persistent Workspace, and deploy the same Agent across supported hosts.

One file. One Agent.

Each field answers one question. ViteHub discovers the file and runs it on your host.

server/agents/review.tsChannel docs
import { defineAgent } from "vite-hub/agent"
import { browser } from "vite-hub/agent/capabilities"
import { github } from "vite-hub/agent/channels"

export default defineAgent({
  description: "Reviews pull requests.",
  channels: {
    github: github({ pullRequest: { reconcile: { events: ["opened"] } } }),
  },
  driver: "codex",
  workspace: { mode: "write" },
  capabilities: [browser()],
})

Invocation

ChannelDriverWorkspaceCapabilitiesReply

Build your first Agent.

The tutorial runs offline and needs no model key.