<br />
<b>Deprecated</b>:  The each() function is deprecated. This message will be suppressed on further calls in <b>/home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php</b> on line <b>456</b><br />
---
title: Vercel Agent
product: vercel
url: /docs/agent
canonical_url: "https://vercel.com/docs/agent"
last_updated: 2026-06-16
type: conceptual
prerequisites:
  []
related:
  - /docs/agent/pr-review
  - /docs/agent/investigation
  - /docs/analytics
  - /docs/speed-insights
  - /docs/agent/installation
summary: AI-powered development tools that speed up your workflow and help resolve issues faster
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# Vercel Agent

> **🔒 Permissions Required**: Vercel Agent

Vercel Agent lives in your dashboard and can investigate what's happening in production, answer questions about your projects, and take action on your behalf.

Because Agent is built into Vercel's platform that deploys and serves your app, it can read the signals around it: deployments, logs, metrics, project configuration, usage, and connected repositories. That context is what turns a question into an answer and a problem into a fix.

Vercel Agent runs on [Vercel's AI Cloud](https://vercel.com/ai). It can use secure sandboxes to reproduce issues, validate generated code, and run checks before suggested changes reach production.

## Availability

Dashboard chat, investigations, and approved actions are in public beta for Pro and Enterprise teams. Rollout will be gradual. If you don't have access yet, you can [request access](/products/early-access).

## Features

### Code Review

Get automatic code reviews on every pull request. Code Review gives you Sandbox-validated suggestions on your pull requests as one capability within the broader Vercel Agent.

What it does:

- Performs multi-step reasoning to identify security vulnerabilities, logic errors, and performance issues
- Generates patches and runs them in secure sandboxes with your real builds, tests, and linters
- Only suggests fixes that pass validation checks, allowing you to apply specific code changes with one click

You can also mention `@vercel` in any pull request comment. The agent will read your message and either propose a fix for you to review and apply, or respond directly to your question in the same thread.

Learn more in the [Code Review docs](/docs/agent/pr-review).

### Investigation

When anomaly alerts fire, Vercel Agent Investigations can analyze what is happening in production. Point Agent at a failed deploy, a runtime error, or a cost spike, and it traces the cause and recommends a fix.

What it does:

- Queries logs and metrics around the time of the alert
- Looks for patterns and correlations that might explain the problem
- Provides insights about potential root causes

Learn more in the [Agent Investigation docs](/docs/agent/investigation).

### Approved actions

When a task requires write access, Vercel Agent presents a scoped plan and waits for your approval. With your sign-off, Agent can open a pull request, roll back, or update a config to remediate an issue.

Agent is read-only by default and cannot make changes until you approve the plan.

### Installation

Add [Web Analytics](/docs/analytics) and [Speed Insights](/docs/speed-insights) to your project using Vercel Agent. Instead of manually installing and writing integration code, Vercel Agent analyzes your repository, installs dependencies, writes integration code, and creates a pull request. All you need to do is review and merge.

Learn more in the [Agent Installation docs](/docs/agent/installation).

## Control and permissions

Vercel Agent runs under its own identity and is bounded by the requesting user's permissions. It is read-only by default.

When Agent needs elevated access, it requests a scoped plan and makes no changes until you approve it. Generated code runs in Vercel Sandbox before it reaches production, and elevated actions are attributed to Agent, the requester, and the approver.

## Getting started

You can enable Vercel Agent in the [Agent section in the sidebar](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fvercel-agent\&title=Open+Vercel+Agent) of your dashboard. Setup varies by feature:

- **Code Review**: You'll need to configure which repositories to review and whether to review draft PRs. See [Code Review setup](/docs/agent/pr-review#how-to-set-up-code-review) for details.
- **Agent Investigation**: This requires [Observability Plus](/docs/observability/observability-plus) and in order to run investigations automatically, you'll need to enable Vercel Agent Investigations. See [Investigation setup](/docs/agent/investigation#how-to-enable-agent-investigation) to get started.
- **Installation**: See [Installation docs](/docs/agent/installation#getting-started) for details.

## Pricing

Vercel Agent uses a credit-based system. Each review or investigation costs a fixed $0.30 USD plus token costs billed at the Agent's underlying AI provider's rate, with no additional markup. Agent Installation is free for all teams.

You can [purchase credits and enable auto-reload](/docs/agent/pricing#adding-credits) in the Agent section in the sidebar of your dashboard. For complete pricing details, credit management, and cost tracking information, see [Vercel Agent Pricing](/docs/agent/pricing).

## Privacy

Vercel Agent never trains on customer code if your Vercel team's [data preferences setting](https://vercel.fyi/team-data-preferences) is "off" or you are on an [Enterprise plan](/docs/plans/enterprise).


---

[View full sitemap](/docs/sitemap)
