Welcome to the Nuxt website repository available on nuxt.com.
No environment variables are required — the site runs out of the box:
corepack enable
pnpm install
pnpm devIn this default mode (--ui-only):
- The docs are cloned from the public nuxt/nuxt and nuxt/examples repositories.
- Ecosystem APIs (
/api/v1/**— modules, templates, etc.) are proxied to nuxt.com. - The Nuxi agent is visible but disabled: the Eve runtime is not spawned, so no AI keys are needed.
| Command | What it does |
|---|---|
pnpm dev |
UI-only mode — zero config, no Eve agent, ecosystem APIs proxied to nuxt.com |
pnpm dev:nuxi |
UI-only mode + the Nuxi agent — spawns the Eve runtime (needs AI_GATEWAY_API_KEY and INTERNAL_API_SECRET) |
pnpm dev:full |
Full mode — spawns the Eve agent runtime and fetches the Nuxt ecosystem locally |
pnpm dev:full requires some environment variables (see .env.example, notably AI_GATEWAY_API_KEY for the agent). All variables in .env.example are optional and grouped by feature — only set what you need.
The docs live in the nuxt/nuxt repository. To edit them locally, clone/fork the repo somewhere outside this project and point the NUXT_V3_PATH / NUXT_V4_PATH / NUXT_V5_PATH variables in your .env to your local checkout (use pwd — or echo %cd% on Windows — inside the clone to get the path). Same goes for NUXT_EXAMPLES_PATH with nuxt/examples.
Sign-in (dashboard, chat history) needs a GitHub OAuth app: create one at github.com/settings/applications/new with http://localhost:3000/api/auth/github as the callback URL, then set NUXT_OAUTH_GITHUB_CLIENT_ID and NUXT_OAUTH_GITHUB_CLIENT_SECRET in your .env.
To list a Nuxt template, add a file in the ./content/templates directory.
Make sure to start the development server in order to generate the screenshot for the template and go to http://localhost:3000/templates to see the result.
If you want to update the url where we take the automated screenshot, use the screenshotUrl property.
To regenerate the image, delete the generated one in public/assets/templates.
Build the application for production:
pnpm generateTo run the evals for the MCP server, follow these steps:
-
Ensure your development server is running
Start the local Nuxt development server:pnpm dev
-
Create an AI Gateway API key
Go to https://vercel.com/ai-gateway and create an API key. Add the following variable to your.envfile (replacesk-...with your actual key):AI_GATEWAY_API_KEY=<you-api-key> -
Run the evals
You can execute the evals from the command line:pnpm evalOr launch the interactive UI to run them via a web interface:
pnpm eval:ui
Nuxi lives in layers/nuxi/ — Eve runtime (agent/), UI, and internal APIs in one layer. The agent only runs with pnpm dev:full (in the default pnpm dev ui-only mode, the Eve runtime is not spawned and the chat UI shows a disabled state). For local development:
# Required — Vercel AI Gateway key for the agent model
AI_GATEWAY_API_KEY=<your-api-key>
# Required — shared secret between the Nuxt app and Eve runtime
INTERNAL_API_SECRET=$(openssl rand -base64 32)
# Optional — canonical site URL for MCP + internal API callbacks
NUXT_PUBLIC_SITE_URL=http://localhost:3000
pnpm dev:nuxiOn Vercel, configure both the web and eve services (vercel.json) with the same INTERNAL_API_SECRET, AI_GATEWAY_API_KEY, and database env vars.
