Skip to content
Docs

The Complete Guide to Vercel Agent

Learn what Vercel Agent does, how to set up Code Review, Investigation, Chat, and Installation, and what each feature costs on Pro and Enterprise plans.

9 min read
Last updated June 26, 2026

Vercel Agent is a suite of AI-powered development tools that reviews your pull requests, investigates production anomalies, answers questions about your projects, and adds features to your code. Because Vercel builds your code, deploys your functions, and serves your traffic, Vercel Agent reasons about problems with full context about your codebase, deployment history, and runtime behavior.

Everything runs on Vercel's agentic infrastructure, which lets Vercel Agent reproduce issues in secure sandboxes, use current AI models, and validate its suggestions before you see them. The result is a tested, actionable output rather than a set of speculative guesses.

In this guide, you'll learn what Vercel Agent is and how it uses context about your application to review pull requests, investigate anomalies, and answer questions. You'll see how each of its four features works (Code Review, Investigation, Chat, and Installation) and how to enable and configure them for your team. You'll also learn how to control what Vercel Agent can access, which actions require your approval, and how to estimate costs under its credit-based pricing.

Vercel Agent works because it already understands your application. Vercel builds your code, deploys your functions, and serves your traffic. This allows Vercel Agent to have direct access to your codebase, deployment history, and runtime behavior without any extra setup. That context is what separates Vercel Agent from a general-purpose coding assistant. It can connect a failing deployment to a recent code change, or a latency spike to a specific function, because it sees the whole picture.

Every Vercel Agent feature runs on Vercel's agentic infrastructure, purpose-built for AI workloads. This gives Vercel Agent two capabilities that make its output reliable:

  • It spins up secure sandboxes (isolated microVMs with their own filesystem and kernel) to reproduce issues and run your real builds, tests, and linters.
  • It also validates its work before surfacing it, so a suggested fix appears only after it passes those checks.

Every suggestion you see has already been tested in a sandbox.

Code Review automatically reviews every pull request you open and suggests fixes you can apply in one click. It uses multi-step reasoning to catch security vulnerabilities, logic errors, and performance issues that linters miss, and it uses your entire codebase as context to understand how each change fits the larger system.

Code Review validates every suggestion before showing it to you. It generates a patch, runs it in a secure sandbox against your real builds, tests, and linters, and surfaces the suggestion only if it passes. You apply specific changes directly from the pull request, confident they've already been tested.

Code Review runs automatically when you create a pull request, push a batch of commits to an open pull request, or open a draft pull request (if you've enabled draft reviews). It analyzes all human-readable files in your repository, including source code, test files, configuration files such as package.json, documentation, and inline comments.

Beyond automatic reviews, you can interact with Vercel Agent on demand by mentioning @vercel in any pull request comment. Vercel Agent reads your comment and either proposes a fix for you to review and apply or answers your question in the same thread. For example:

  • @vercel run a review runs a full code review
  • @vercel fix the type errors implements and commits a fix
  • @vercel why is this failing? investigates the issue

Code Review detects and applies coding guidelines from your repository so its feedback matches your project's conventions. It looks for guideline files in priority order, from highest to lowest:

FileTool
AGENTS.mdOpenAI Codex / universal standard
CLAUDE.mdClaude Code
.github/copilot-instructions.mdGitHub Copilot
.cursor/rules/*.mdcCursor
.cursorrulesCursor (legacy)
.windsurfrulesWindsurf
.windsurf/rules/*.mdWindsurf (directory)
.clinerulesCline
.github/instructions/*.instructions.mdGitHub Copilot workspace
.roo/rules/*.mdRoo Code
.aiassistant/rules/*.mdJetBrains AI Assistant
CONVENTIONS.mdAider
.rules/*.mdGeneric rules
agent.mdGeneric agent file

When several guideline files exist in the same directory, Code Review uses the highest-priority one. Guidelines apply hierarchically and by scope: a CLAUDE.md at the repository root applies to every file, while a src/components/CLAUDE.md adds context for that directory only, and a guideline in src/ never affects files in lib/. Guidelines can reference other files with @import "file.md" or relative markdown links, and the total guideline size is capped at 50 KB.

Write guidelines to capture conventions a linter can't enforce, such as architecture patterns, project-specific pitfalls, and testing requirements. Code Review treats guidelines as context, so its core job of finding bugs, security issues, and performance problems takes precedence over any conflicting guidelines.

To enable Code Review, open the Agent section of the dashboard, and:

  1. Click Enable Automatic Reviews to turn on Vercel Agent.
  2. Under Code Review in the modal, enable Review PRs and build failures automatically
  3. Under Repositories, choose which repositories to review: all repositories (the default), public only, or private only.
  4. Under Review Draft PRs, choose whether to skip draft pull requests (the default) or review them.
  5. Under PR Approval, choose whether to auto-approve low-risk PRs (the default) or not.
  6. Click Save.

Once saved, Code Review reviews pull requests in every repository connected to your Vercel projects.

Investigation analyzes your logs and metrics when an anomaly alert fires and shows you the likely root cause, so you spend less time digging through data during an incident. An anomaly alert fires when Vercel detects unusual application activity, such as a sudden spike in error rate or response time. When that happens, Investigation queries the logs and metrics around the time of the alert, looks for patterns and correlations that might explain the change, checks for related errors, and summarizes what it found.

Investigation requires an Observability Plus subscription, which includes 10 alert investigations per billing cycle. To run investigations automatically for every alert, enable Agent Investigations in your team settings. Enabling Vercel Agent for Code Review does not enable Investigations; you need to turn them on separately.

  1. Go to Agent in your team settings.
  2. Under Investigations, enable Investigate anomalies automatically.
  3. Click Save.

With automatic investigations enabled, Vercel Agent runs an investigation each time an alert fires. Make sure your team has enough credits to cover investigations beyond the 10 included in each billing cycle.

To review an investigation, go to your Vercel dashboard, open Observability, then Alerts, and select the alert. The investigation results appear alongside the alert details, and if the investigation is still running, you can watch the analysis stream in real time. You can also send the agent a follow-up if you have any questions.

If you haven't enabled automatic investigations, you can still investigate any alert that has already fired. Open the alert from Observability > Alerts and click Investigate.

Chat is a conversational interface for Vercel Agent that answers questions about your projects and makes configuration changes on your behalf. Click New Chat in your dashboard to start a conversation. You can ask about deployments, projects, domains, and logs, investigate issues across your linked repositories, and have Vercel Agent carry out changes after you approve its plan.

Through Chat, Vercel Agent can:

  • Answer questions about deployments, projects, domains, and logs
  • Create, update, and delete environment variables
  • Trigger deployments, rollbacks, and redeployments
  • Configure observability alerts and dashboards
  • Create, update, and delete storage resources (Blob, Redis, and Edge Config)

Chat reads public and private repositories you have access to that are linked to your Vercel projects, and it may read from multiple repositories at once when investigating an issue. Vercel Agent only accesses data you can already access on the currently selected team, and it can't reach other teams or their projects, even if you belong to them.

These example prompts give you a sense of what Chat handles:

  • "Fix my 500 errors"
  • "How do I improve the Core Web Vitals of my site?"
  • "Where can I add caching to reduce my bill?"
  • "Why did I get charged more this month compared to last?"
  • "List environment variables and who created them"
  • "Configure bot protection for my project"

Installation adds Web Analytics and Speed Insights to your project for you, rather than requiring you to install packages and write integration code by hand.

Web Analytics tracks your site's visitors and traffic, and Speed Insights reports your site's performance against Core Web Vitals. When you start an installation, Vercel Agent analyzes your project configuration and connected repository, installs the required dependencies, writes the integration code, and opens a pull request for you to review.

  1. In your Vercel dashboard, select your GitHub-connected project.
  2. Navigate to the Analytics or Speed Insights tab.
  3. If the feature isn't on yet, click Enable.
  4. Click Implement with Vercel Agent to begin.
  5. Review the pull request and merge it when you're ready.

Once you merge and deploy the pull request, tracking starts automatically. To regenerate the pull request, click Run Again.

Installation is free for every team. You pay only for usage of the features it installs: after Vercel Agent adds Web Analytics, you're billed for Web Analytics usage, and the same applies to Speed Insights.

Vercel Agent operates within your existing permissions and requests approval before performing sensitive reads or writes. It can't approve or perform an action you don't have permission to do yourself. The table below shows what runs automatically and what needs your sign-off:

OperationAuthorization
Reads on non-sensitive resources (projects, deployments, logs, domains)Auto-approved
Reads on sensitive resources (environment variables, tokens)Requires approval
All write operationsRequires approval

When an action needs approval, Vercel Agent presents a plan that lists the tasks it intends to perform and the permissions it needs, then waits for you to authorize it. Authorization is plan-based rather than session-based. Each plan is a discrete unit of work with its own permissions, a new plan needs new authorization even within the same chat, and permissions expire when the plan finishes or is cancelled.

GitHub write operations get an extra layer of control. Creating or updating pull requests, writing comments, and pushing commits all require your explicit authorization, and these actions are attributed to you, with commits listing Vercel Agent as a co-author.

Every authorization event and write operation is recorded in your team's Activity Log, including who approved each plan and what was authorized. Enterprise customers can also view these events in the Audit Log. Write operations to your account and projects appear as performed by you "via Vercel Agent."

Team Owners and Admins can disable Vercel Agent from Team Settings > Agent.

Disabling it immediately ends all ongoing chat sessions, revokes permissions for in-progress tasks, and stops team members from starting new chats. To turn it back on, return to the same page and toggle it on. You can also disable Agent Investigation on its own from your team settings without disabling the rest of Vercel Agent.

Vercel Agent uses credit-based pricing.

Each Code Review or Investigation costs $0.30 USD, plus token costs billed at the underlying AI provider's rate with no markup from Vercel. Token cost varies with the work involved, so a complex pull request or a data-heavy investigation uses more tokens than a small one. Installation is free for all teams, and you pay only for usage of the Web Analytics or Speed Insights features it sets up.

Observability Plus includes 10 Investigations per billing cycle. After your team uses those, each additional investigation follows the same $0.30-plus-tokens pricing. You can purchase credits and turn on auto-reload in the Agent section of your dashboard sidebar.

Vercel Agent only accesses data you can already access on your currently selected team. That can include your Vercel and GitHub profile information, team memberships and billing details, project and deployment configurations, build and runtime logs, usage and traffic metrics, and private repositories linked to your Vercel projects. Vercel Agent can't access other teams or their projects.

Vercel doesn't train on your source code or chat transcripts if your team's data preferences setting is off or you're on an Enterprise plan. During the Chat beta, Vercel staff may review chat transcripts to improve Vercel Agent, in line with Vercel's Privacy Notice.

Vercel Agent is a suite of AI development tools that reviews your pull requests, investigates production anomalies, answers questions about your projects, and adds features to your code. It includes four features: Code Review, Investigation, Chat, and Installation. Because Vercel builds your code, deploys your functions, and serves your traffic, Vercel Agent works with full context about your codebase, deployment history, and runtime behavior. That context is what lets it connect a failing deployment to a recent code change, or a latency spike to a specific function.

Each Code Review or Investigation costs $0.30, plus token costs charged at the AI provider's rate with no markup from Vercel. Token costs depend on the work involved, so a complex pull request or a data-heavy investigation uses more than a small one. Installation is free for every team; you pay only for the Web Analytics or Speed Insights usage it sets up. Observability Plus includes 10 Investigations per billing cycle, and any additional investigations follow the same $0.30-plus-tokens pricing. You can buy credits and turn on auto-reload in the Agent section of your dashboard.

Yes. Vercel Agent asks for your approval before any write operation and before reading sensitive resources like environment variables and tokens. Reads on non-sensitive resources such as projects, deployments, logs, and domains run automatically. When an action needs sign-off, Vercel Agent shows you a plan listing the tasks it intends to perform and the permissions it needs, then waits for you to authorize it. It can't perform any action you don't have permission to do yourself, and GitHub writes like commits and comments are attributed to you.

It depends on your settings. Vercel doesn't train on your source code or chat transcripts if your team's data preferences setting is turned off or you're on an Enterprise plan. Vercel Agent only accesses data you can already reach on your current team, and it can't access other teams or their projects. During the Chat beta, Vercel staff may review chat transcripts to improve the product, following Vercel's Privacy Notice.

Open the Agent section of your Vercel dashboard and click Enable Automatic Reviews. Under Code Review, turn on "Review PRs and build failures automatically." Then choose which repositories to review (all, public only, or private only), whether to review draft pull requests, and whether to auto-approve low-risk pull requests. Click Save. Code Review then runs on pull requests in every repository connected to your Vercel projects.

Was this helpful?

supported.

Read related documentation

Explore more Vercel Agent guides

No related guides available.