# Vercel

Let Lyna AI read deployments and logs, deploy code and manage projects in your own Vercel team while it builds.

Connect your own Vercel account so Lyna AI can check a deployment of yours, read its logs, deploy code and manage your projects there. This is about your own Vercel team only: publishing from Lyna does not need a Vercel account. See [Publish](/features/publish/publishing).

## What it lets you do

- Find your teams and projects, and read their settings.
- List and inspect deployments, and fetch a deployment address, even a protected one you can access.
- Deploy code, to a preview or to production, and cancel a deployment.
- Read runtime logs and grouped runtime errors.
- Query visitors, page views and custom events from Web Analytics.
- Search the Vercel documentation.
- Work with domains and DNS, environment variables, feature flags, firewall rules, storage and rolling releases.

| Item                         | Detail                                                                                                           |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| What it asks for             | A sign-in on Vercel's page, where you grant access to your teams.                                                |
| Who pays the provider        | You, through your own Vercel plan. Vercel lists billing and purchases among its tool groups.                     |
| Do actions change real data? | Yes. It can deploy code and change projects, deployments, domains and environment variables in your Vercel team. |
| Where it runs                | On Vercel's servers.                                                                                             |
| Who uses it                  | Lyna AI while it builds, in Build mode. Your published app does not use it.                                      |

## What you need before you start

- A Vercel account on any plan, with access to the team that owns your project.
- Edit access to your Lyna project.

### Permissions in Vercel

Every connection signs in with your account, so your team role sets what it can do. Vercel states that connecting grants the same access as your Vercel user account. Team roles exist on the Pro and Enterprise plans.

| Task                                               | What you need                                                    |
| -------------------------------------------------- | ---------------------------------------------------------------- |
| View projects and deployments                      | A read-only role such as **Pro Viewer** or **Billing** is enough |
| Read logs                                          | **Pro Viewer** cannot: Vercel keeps that role from log data      |
| Create deployments and manage projects and domains | **Owner**, **Member** or **Developer**                           |
| Change production environment variables            | **Owner** or **Member**. A **Developer** cannot                  |
| Manage team members and team billing               | **Owner**                                                        |
| Stay inside one project                            | On Enterprise, the **Contributor** role with a project role      |

See [Vercel's access roles](https://vercel.com/docs/rbac/access-roles).

## Ways to connect

**On the connector's page.** A sign-in on Vercel's own page, where you grant access to your teams. Lyna stores it encrypted. Only the owner can sign in again.

**Who owns the account?** The person who signed in. Every call goes out as that person's Vercel account, whoever typed the request.

**Who can use it?** Only you, in the projects you link it to, until you change it. On the connector's page, **Who can use it** also offers **Only this project** and **The whole workspace**. See [Who can use a connection](/integrations/connectors#who-can-use-a-connection).

## Set it up

1. ### Open the connector

   Open the **+** menu of the chat and choose **Connectors**. Find **Vercel** with the search field or under **Developer tools**, then open its page.
2. ### Connect

   Choose **Connect**. The **New connection** page opens and reads "Sign in with your Vercel account to connect." Choose **Connect** at the bottom of the page. **Sharing**, just above, sets who can use it.
3. ### Sign in

   A new window opens on Vercel's own page. If your browser blocks the window, the page goes to the sign-in in the same tab and brings you back after. Sign in and approve the access. The page shows the name Lyna, Lyna's site address and a team picker, and you approve each connection there. Grant access to the team that owns the project you care about. Vercel only lets clients it has reviewed sign in. If the page says Vercel is not available yet, it shows no **Connect** and you cannot connect it for now.
4. ### Read the result

   The page tests the connection and shows the result. **Connected** means Lyna can use it.

This connector shows no field to fill in: everything you give, you give on Vercel's own page.

> [!WARNING]
>
> **What never to share**
>
> Lyna never asks for your Vercel password. Type it only on Vercel's own page, and never paste a password, a token or a key in the chat.

### Check it works

After you choose **Connect**, the page tests the connection and shows the result. Run it again at any time with **Test connection**. **Connected** proves that Vercel's server answered, accepted your sign-in and listed its tools. A pass does not prove access to every piece of data. Your assistant also needs access to the team that owns a project, and your Vercel permissions still apply.

To check for real, ask for something you know exists:

- "List my Vercel teams and projects."

## What to ask Lyna AI

Type these in the chat, in Build mode, and adjust the names to yours. Once it is connected, **Use Vercel** on its page starts a message for you.

| What you build or do | What to type                                                                    | What happens                                                              |
| -------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| Find what broke      | "Find my project's latest deployment and check its runtime errors."             | Lyna AI reads the deployment and its errors, and tells you what it found. |
| Check the team       | "List the projects of my Vercel team and tell me which deployment failed last." | It lists the projects and names the deployment.                           |
| Read your traffic    | "How many page views did my marketing site get this week?"                      | It reads your Web Analytics and answers in the chat.                      |
| Get setup help       | "Look up in the Vercel docs how to set an environment variable for previews."   | It reads the docs and answers in the chat.                                |
| Change a setting     | "Add the variable API\_URL to the preview environment of my project."           | After your approval, the variable is set in Vercel.                       |

### Approvals and tool switches

Before a call, Lyna AI shows the tool and what it asks. You choose **Deny**, **Allow once**, **Always allow this tool** or **Always allow this connector**. A tool its server marks as read-only does not ask. A changed or new tool asks again, and **Ask again** on the connector's page takes a choice back.

Under **What Lyna AI can use**, each tool has a switch. Lyna AI stops using a tool you turn off, in your chats in this project.

### Stay safe

What a connector answers reaches the AI as data, never as instructions. Read each approval before you accept it.

- Vercel states that connecting grants the same access as your Vercel user account, so sign in with an account limited to what you need.
- Keep each approval on. Vercel gives the example of a hidden instruction asking an agent to copy private deployment logs to another site.
- After a change you are unsure of, ask Lyna to read the resource before it tries again.

> [!WARNING]
>
> **Purchases and live changes**
>
> Vercel's tools include billing and purchases, production deployments, domains and environment variables. Read each approval on these before you accept it.

## Limits

- It does not create AI Gateway API keys, exchange SSO tokens, import KMS private keys, or sign KMS messages or tokens.
- The tools you get depend on your sign-in, your team permissions and your project.
- See [Vercel MCP](https://vercel.com/docs/agent-resources/vercel-mcp) and its [tools](https://vercel.com/docs/agent-resources/vercel-mcp/tools).
- Connector tools run in Build mode. Plan and Ask do not run them.

## Troubleshooting

| What you see                                                           | What it means and what to do                                                                                                                                                         |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Needs sign-in**                                                      | Your sign-in ended, or you revoked it at Vercel. Choose **Connect** and sign in again.                                                                                               |
| The sign-in window does not open                                       | Your browser blocked it, so the page goes to the sign-in in the same tab. If nothing happens, allow pop-ups for Lyna and choose **Connect** again.                                   |
| No answer from the sign-in window yet                                  | If the window is still open, finish there. If you closed it, choose **Connect** again.                                                                                               |
| **The sign-in was cancelled.**                                         | You closed or declined Vercel's page. Choose **Connect** and approve the access.                                                                                                     |
| **The service refused the sign-in.**                                   | Check that you used the right account and that your organization allows this access, then choose **Connect**.                                                                        |
| **The sign-in took too long. Start it again.**                         | Choose **Connect** and sign in again.                                                                                                                                                |
| **The sign-in worked, but the server did not answer.**                 | Choose **Test connection**.                                                                                                                                                          |
| **Not tested yet**                                                     | No test has answered. Choose **Test connection**.                                                                                                                                    |
| **Connection failed**                                                  | The page says why next to it. If the server did not answer, choose **Test connection**.                                                                                              |
| A call fails with a permission error                                   | **Connected** does not prove access to every piece of data. Vercel refused the call with the rights of the account you connected. Check Permissions in Vercel above, then try again. |
| **New tools to review**                                                | The server changed its list of tools, so Lyna stops using it until you decide. Read the list, then choose **Approve new tools**.                                                     |
| **Turned off**                                                         | Lyna AI does not use it. Choose **Turn on**.                                                                                                                                         |
| It needs a new sign-in. Only the person who connected it can give one. | Someone else connected it, and that sign-in ended. Ask that person to choose **Connect**.                                                                                            |
| The person who connected it left the workspace                         | The connection holds no key or sign-in. Choose **Connect** to use it again.                                                                                                          |
| A team or a project is missing                                         | Check that you signed in with the right account and granted that team. Choose **Connect** to grant it.                                                                               |

### Disconnect

**Turn off** stops Lyna from using the connector and keeps your settings. **Remove from this project**, under **More options**, takes it out of this project only, and shows when another project uses it. **Delete connection**, in the same menu, removes it from every project, with what it stored, and says first how many projects lose it. If Vercel lists Lyna among the authorized applications of your account, you can remove it there too.

## Related

- [Connectors](/integrations/connectors): What connectors are and how the chat uses them.
- [Publish](/features/publish/publishing): Publish your project from Lyna.
- [Sentry](/integrations/connectors/sentry): Find and fix errors from your error tracker.
- [Chat modes](/features/ai/chat-modes): Build, Plan and Ask.
