# Introduction

ViteHub adds server APIs and Agents to Vite and Nuxt apps. Server Primitives store data or run background work. Agents run your code, call a model, or use a coding provider. You can use either part alone.

## Start with one result

Follow [Installation](https://vitehub.dev/docs/getting-started/installation) to pick Vite or Nuxt and check a server route. Then continue in the same app:

- [First Server Primitive](https://vitehub.dev/docs/getting-started/first-server-primitive) saves a theme setting in local KV and reads it back.
- [First Agent](https://vitehub.dev/docs/getting-started/first-agent) calls a function Driver and returns a greeting over HTTP.

Neither needs provider credentials. The Agent tutorial starts with an offline function Driver, so you can check the run before you pay for a model call.

[Build a chat app](https://vitehub.dev/docs/agents/build-a-chat-app) is a complete model-backed project. It connects an Agent to a chat UI, streams replies, and keeps history. Its offline mode needs no credentials. A model call can cost money.

The server APIs work with any frontend. [ViteHub UI](https://vitehub.dev/docs/ui) gives Vue and Nuxt components; [Built for the Vue ecosystem](https://vitehub.dev/docs/getting-started/built-for-vue) explains why.

## Add the feature your app needs

Next, pick a [Server Primitive](https://vitehub.dev/docs/getting-started/server-primitives) for uploads, relational data, or background jobs. Its tutorial shows setup, a server call, and the result. Its Hosts page lists provider requirements.

Agents use these APIs through [Capabilities](https://vitehub.dev/docs/agents/capabilities). Give an Agent only the operations it needs. Start with [Agent Definitions](https://vitehub.dev/docs/agents/agent-definitions) to select a Driver.

## Work with a coding agent

[AI resources](https://vitehub.dev/docs/getting-started/ai-resources) covers the ViteHub skill, the docs MCP server, and Markdown pages. Point your coding agent at a feature's tutorial so it uses current imports and commands.

## Understand or deploy the app

Read [How ViteHub works](https://vitehub.dev/docs/getting-started/concepts) for shared terms and [Build and deploy](https://vitehub.dev/docs/getting-started/build-and-deploy) for host setup. For a NuxtHub app, use [Migrate from NuxtHub](https://vitehub.dev/docs/compare/nuxthub#migrate-from-nuxthub).

<!-- vitehub-docs:section-links -->
## In this section

- Get started
  - [Introduction](https://vitehub.dev/raw/docs/getting-started.md) (this page)
  - [Installation](https://vitehub.dev/raw/docs/getting-started/installation.md)
  - [First Server Primitive](https://vitehub.dev/raw/docs/getting-started/first-server-primitive.md)
  - [First Agent](https://vitehub.dev/raw/docs/getting-started/first-agent.md)
- [Next steps](https://vitehub.dev/raw/docs/getting-started/server-primitives.md)
- [Build and deploy](https://vitehub.dev/raw/docs/getting-started/build-and-deploy.md)
- [Coding agents](https://vitehub.dev/raw/docs/getting-started/ai-resources.md)

Next: [Installation](https://vitehub.dev/raw/docs/getting-started/installation.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
