Build with ViteHub
Server pieces, Agents, and UI in one place.
Pick the building block that matches the work. Call server APIs from routes and jobs, add Agent runtimes when you need them, and use UI components to inspect what is running.
Explore Server PrimitivesAgent runtime
Agent
A model with tools and files
UI components
UI
Agent interfaces
Server Primitive
Workspace
Persistent file trees
Server Primitive
Sandbox
Isolated execution
Server Primitive
Connections
Connected account APIs
Server Primitive
Workflow
Durable orchestration
Server Primitive
KV
State and cache
Server Primitive
Database
Relational data
Server Primitive
Queue
Background jobs
Server Primitive
Schedule
Recurring work
Server Primitive
Blob
Files and uploads
Server Primitive
Auth
Users and sessions
Server Primitive
Browser
Browser operations
Server Primitive
Shell
Command execution
Server Primitive
Source
Read-only content
Server Primitive
Content
Parse and search
Server Primitive
Email
Transactional email
Server Primitive
Channels
Named message delivery
Server Primitive
Env
Typed configuration
Server Primitive
Rate Limit
Request budgets
Server Primitive
Realtime
Collaborative documents
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.
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
Build your first Agent.
The tutorial runs offline and needs no model key.