npx skills add ...
npx skills add openai/plugins --skill v0-dev
v0 by Vercel expert guidance. Use when discussing AI code generation, generating UI components from prompts, v0 CLI usage, v0 SDK/API integration, or integrating v0 into development workflows with GitHub and Vercel deployment.
npx skills add openai/plugins --skill v0-dev
You are an expert in v0 (v0.app) — Vercel's AI-powered development agent that generates production-ready code from natural language descriptions.
v0 transforms prompts into working React/Next.js code. It supports 6M+ developers and 80K+ active teams globally. v0 operates as a universal coding agent with research, planning, debugging, and iteration capabilities.
v0 package)Install and pull v0-generated components into your Next.js project:
v0 init installs required dependencies (@radix-ui/react-icons, clsx, lucide-react) and creates a components.json config file.
From the v0.dev web interface, click the "Add to Codebase" button (terminal icon) to generate a command:
Run this in your project root to pull the entire generated project into your codebase.
Get your API key at: https://v0.app/chat/settings/keys
Chats:
v0.chats.create(params) — Create a new chatv0.chats.sendMessage(params) — Send a message to an existing chatv0.chats.getById(params) — Retrieve a specific chatv0.chats.update(params) — Update chat propertiesv0.chats.findVersions(params) — List all versions of a chatv0.chats.getVersion(params) — Retrieve a specific versionv0.chats.updateVersion(params) — Update files within a versionv0.chats.downloadVersion(params) — Download files for a versionv0.chats.resume(params) — Resume processing of a messageProjects:
v0.projects.create(params) — Create a new projectv0.projects.getById(params) — Retrieve a projectv0.projects.update(params) — Update a projectv0.projects.find() — List all projectsv0.projects.assign(params) — Assign a chat to a projectv0.projects.getByChatId(params) — Get project by chat IDv0.projects.createEnvVars(params) — Create env vars for a projectDeployments:
v0.deployments.create(params) — Create deployment from a chat versionv0.deployments.getById(params) — Get deployment detailsv0.deployments.delete(params) — Delete a deploymentv0.deployments.find(params) — List deploymentsv0.deployments.findLogs(params) — Get deployment logsBase URL: https://api.v0.dev/v1
Auth: Authorization: Bearer <V0_API_KEY>
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/projects | List projects |
POST | /v1/projects | Create project |
GET | /v1/projects/:id | Get project |
PUT | /v1/projects/:id | Update project |
DELETE | /v1/projects/:id | Delete project |
POST | /v1/chats | Create/initialize chat |
GET | /v1/chats/:id/messages | Get messages |
POST | /v1/chats/:id/messages | Send message |
POST | /v1/deployments | Create deployment |
v0-1.5-md — Everyday tasks and UI generationv0-1.5-lg — Advanced reasoningv0-1.0-md — Legacy modelUse v0's full capabilities as tools within an AI SDK agent:
For granular control, import specific tool sets:
The v0Tools export includes 20+ tools: createChat, sendMessage, getChat, updateChat, deleteChat, favoriteChat, forkChat, listChats, createProject, getProject, updateProject, listProjects, assignChatToProject, createEnvironmentVariables, createDeployment, getDeployment, deleteDeployment, listDeployments, getDeploymentLogs.
Connect v0 to any MCP-compatible IDE (Cursor, Codex, etc.):
Exposes 4 tools: create chat, get chat info, find chats, send messages.
v0/main-e7bad8e4)mainv0/main-abc123 → main+ → "Import from GitHub"You can queue up to 10 prompts while v0 is still generating:
Click a specific element in the preview before typing to target exactly what you want to change. Eliminates ambiguity for multi-instance components.
When no framework is specified, v0 generates:
v0 is strongest when you specify both structure and aesthetic direction. For Vercel-stack projects, include guidance like: use shadcn/ui primitives, use Geist fonts, default to dark mode, use zinc/neutral tokens, avoid generic card grids. After importing v0 code, normalize it: replace ad-hoc controls with shadcn components, collapse repeated card grids into stronger patterns, align typography to Geist, remove mixed radii and decorative effects.
Best for adding individual UI components to an existing app.
Then import the component:
Best for iterating on a full feature branch with non-engineers.
Best for CI/CD pipelines or programmatic component generation.
Best for autonomous agents that need to generate and deploy UI.
v0 has native support for these services in its sandbox: