Install Nitro
Pick your agent. Every command is ready to paste.
npx skills add antfu/skills --skill nitroThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads nitro when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the nitro skill”. In Codex, type $nitro.
The skill is based on Nitro v3 (beta, 3.0.260903), generated at 2026-09-25.
Nitro is a framework-agnostic, deployment-agnostic server toolkit powered by H3 v2, unstorage, and Vite/Rolldown/Rollup. It powers Nuxt and works standalone. From one codebase it builds optimized output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify, and more.
Key capabilities:
- Filesystem routing with H3 v2 event handlers, dynamic params, and method suffixes.
- Route rules for declarative caching, headers, redirects, proxying, and CORS.
- Caching layer (cached handlers/functions, SWR) on top of the unstorage KV layer.
- Runtime config overridable via
NITRO_*env vars. - Tasks (on-demand + scheduled/cron), WebSockets/SSE, a SQL database layer, and OpenAPI auto-docs.
- Plugins & lifecycle hooks, custom renderer/server entry, and portable deployment presets.
Key v3 changes (vs.
nitropackv2): the package is renamednitropack→nitrowith H3 v2 (web-standardRequest/Response); auto-imports are removed (import everything explicitly); directory scanning is opt-in viaserverDir;useStorage→useKV(nitro/kv) and thestorageconfig option →kv; cacheswrnow defaults tofalse. If unsure about v2-vs-v3 APIs, read advanced-migration first.
Core
| Topic | Description | Reference |
|---|---|---|
| Routing | File-based routes, defineHandler, params, middleware, route rules, errors |
core-routing |
| Configuration | nitro.config.ts, defineConfig, key options, runtime config |
core-configuration |
| Storage | unstorage KV, mount points, drivers, dynamic mounts | core-storage |
| Cache | defineCachedHandler, defineCachedFunction, SWR, invalidation |
core-cache |
| Assets | Public assets, compression, server assets via storage | core-assets |
| Rendering | Renderer (HTML/SSR), server entry, framework integration | core-rendering |
Features
| Topic | Description | Reference |
|---|---|---|
| Plugins & Hooks | definePlugin, runtime lifecycle hooks, error capture |
features-plugins |
| Tasks | On-demand & scheduled (cron) tasks, runTask |
features-tasks |
| WebSocket & SSE | defineWebSocketHandler, pub/sub, namespaces, event streams |
features-websocket |
| Database | Built-in SQL layer via db0, useDatabase, connectors |
features-database |
| OpenAPI | Auto spec from defineRouteMeta, Scalar/Swagger UIs |
features-openapi |
Advanced / Deployment
| Topic | Description | Reference |
|---|---|---|
| Deployment Presets | Runtimes & providers, compatibility dates, platform integration | deploy-presets |
| v2 → v3 Migration | Package rename, nitro/* imports, H3 v2 API, preset changes |
advanced-migration |
Tips for Nitro
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 14 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Nitro
What does the Nitro skill do?
Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node/Bun/Deno/Cloudflare/Vercel.
How do I install Nitro?
Run "npx skills add antfu/skills --skill nitro" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Nitro work in Cursor and Codex?
Yes. Nitro uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Nitro free?
Nitro is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Nitro?
Nitro is published by antfu in the antfu/skills repository, together with 13 other skills.



