ViteHub is still experimental. Expect bugs and breaking changes.

Local development

Run ViteHub locally, inspect generated files, and verify the behavior you changed.

Run the application locally before testing a hosted build. ViteHub uses the same Vite config to discover definitions, prepare generated files, and resolve Agent metadata.

Local proof map

Proof pathUse it forOutput to inspect
Vite dev serverDefinition discovery, server imports, Agent streams, and local providersTerminal output, CLI behavior, and resolved Agent metadata
ViteHub ConsoleDiscovered Agents, retained sessions, search, invocation events, and provider usage/_vitehub and the configured Agent Invocation store
ViteHub CLIPackage-owned command workflows such as Agent Evals and ProvisionCLI exit code, concise output, optional JSON files
Generated filesRegistries, generated env access, deployment output, and provision state.vitehub/**, .vercel/output/**, dist/**, or provider config files
Application testsServer API behavior and application regressionsTest output and application fixtures

Run the local app

Start with the app's normal development command. ViteHub Vite Integrations run during Vite startup, so discovery and generated local files use the same root as the app.

Terminal
pnpm dev

Run the application's normal test and build commands after the development server proves discovery.

Terminal
pnpm test
pnpm build

Inspect generated state

Generated files help you debug discovery and host output. Do not import them from application code unless a reference page documents the path.

Terminal
find .vitehub -maxdepth 3 -type f | sort
cat .vitehub/provision.json

Common generated paths include env modules, Workspace types, Agent webhook route handlers, schedule Nitro bridge files, and deployment output. The installed packages and selected host determine which files appear.

Inspect interactive Agent behaviour

Use the ViteHub CLI to inspect Agent metadata or run an Agent locally. Enable the ViteHub Console when you need retained session search and invocation event inspection in a browser. The Agents overview links to registration, invocation, and deployment details.

Verify before deploy

Run the narrowest check that proves the behavior you changed. Use a package test for public contract changes, vitehub agent eval for Agent behavior, vitehub provision run --dry-run for provider resources, and a provider build when generated Provider Output changed.

Terminal
pnpm vitehub agent eval
pnpm vitehub provision run --provider cloudflare --dry-run
pnpm build

Next steps