> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Deploy and manage Vercel projects from Guild agents

> Connect Guild agents to Vercel to create projects, trigger deployments, manage domains, control environment variables, and administer teams.

Integrations · Vercel

A Guild agent can deploy, monitor, and roll back Vercel projects without a human in the loop. Guild stores the Vercel access token server-side and injects it at request time, so agent code never sees the secret. Credential policies let you restrict which operations each agent may call, and every request is logged for audit.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Vercel.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Vercel to your first agent.

## What the Vercel integration exposes

The integration provides tools that cover projects, deployments, domains, DNS records, aliases, certificates, environment variables, webhooks, and teams. Agents can create and cancel deployments, approve or complete rolling releases, manage routing rules, and invite or remove team members. Tools are prefixed with vercel\_ and imported from the `guildai~vercel` package.

## How it works

**1. Create a Vercel access token**

In Vercel, go to Account Settings > Tokens and create an access token scoped to the team your agents should reach.

**2. Connect the credential in Guild**

In Guild, open Access & setup > Credentials, click Connect, select vercel, and paste the token into the API Key field.

**3. Add VercelTools to your agent**

Import VercelTools from the `guildai~vercel` package and spread it into your agent's tools object. Use pick() from the SDK to include only the tools your agent needs.

## Why Vercel access needs governing

Vercel credentials can create and delete projects, modify environment variables, transfer project ownership, and remove team members. Guild stores the access token server-side and injects it through its credential proxy, so the token never appears in agent code or logs.

Credential policies let you write ALLOW and DENY rules that the proxy enforces before any request leaves Guild. You can restrict an agent to read-only operations with a GET-only methods rule, limit it to specific projects, or block destructive operations like vercel\_delete\_project by name or wildcard pattern. Credentials can be scoped to an account, a single workspace, a specific member, or one agent. Without policies the credential is allow-all by default; adding scoped rules and deleting the allow-all policy moves the posture to default deny.

## About the Vercel integration

Agents can create and manage Vercel projects, trigger and cancel deployments, and configure domains and DNS records. They can also manage environment variables, aliases, webhooks, and team membership. Rolling releases, checks, and routing rules can be monitored and controlled as well. The integration is `guildai~vercel`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Get an API key**

Create an access token in Vercel under Account Settings > Tokens, scoped to the team your agents should reach, and paste it here.

**2. Connect Vercel**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **vercel**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { VercelTools } from "@guildai-services/guildai~vercel"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Vercel.",
  tools: { ...VercelTools },
})
```

### Selecting specific tools

Tools are named with the `vercel_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~vercel`:

> [accordion] All 118 tools
>
> | Tool | What it does |
> | - | - |
> | `vercel_accept_project_transfer_request` | Accept a project transfer request initated by another team. |
> | `vercel_add_project_domain` | Add a domain to the project by passing its domain name and by specifying the project by either passing the project 'id' or 'name' in the URL. |
> | `vercel_add_route` | Add a single routing rule to a project at a specified position. |
> | `vercel_approve_rolling_release_stage` | Advance a rollout to the next stage. |
> | `vercel_assign_alias` | Creates a new alias for the deployment resolved from the given deployment or alias ID or URL. |
> | `vercel_batch_remove_project_env` | Delete multiple environment variables for a given project in a single batch operation. |
> | `vercel_cancel_deployment` | Cancels a deployment that is currently in progress, stopping the build before it completes. |
> | `vercel_claim_domain_ownership` | Claim ownership of a domain for the authenticated team by verifying a TXT record. |
> | `vercel_complete_rolling_release` | Force-complete a Rolling Release. |
> | `vercel_create_check` | Creates a new check. |
> | `vercel_create_custom_environment` | Creates a custom environment for the current project. |
> | `vercel_create_deployment` | Creates a new deployment for the authenticated team or user. |
> | `vercel_create_or_transfer_domain` | This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. |
> | `vercel_create_project` | Allows to create a new project with the provided configuration. |
> | `vercel_create_project_env` | Create one or more environment variables for a project by passing its 'key', 'value', 'type' and 'target' and by specifying the project by either passing the project 'id' or 'name' in the URL. |
> | `vercel_create_project_transfer_request` | Initiates a project transfer request from one team to another. |
> | `vercel_create_record` | Creates a DNS record for a domain. |
> | `vercel_create_shared_env_variable` | Creates shared environment variable(s) for a team. |
> | `vercel_create_team` | Create a new Team under your account. |
> | `vercel_create_trace_session` | Mints a short-lived HS256 JWT scoped to a deployment hostname. |
> | `vercel_create_webhook` | Creates a webhook |
> | `vercel_delete_alias` | Delete an Alias with the specified ID. |
> | `vercel_delete_deployment` | This API allows you to delete a deployment, either by supplying its 'id' in the URL or the 'url' of the deployment as a query parameter. |
> | `vercel_delete_domain` | Delete a previously registered domain name from Vercel. |
> | `vercel_delete_microfrontends_group` | Deletes a microfrontends group from the team associated with the group ID. |
> | `vercel_delete_project` | Delete a specific project by passing either the project 'id' or 'name' in the URL. |
> | `vercel_delete_project_avatar` | Remove the avatar of the project identified by 'idOrName'. |
> | `vercel_delete_rolling_release_config` | Disable Rolling Releases for a project means that future deployments will not undergo a rolling release. |
> | `vercel_delete_routes` | Delete one or more routing rules from a project by ID. |
> | `vercel_delete_shared_env_variable` | Deletes one or many Shared Environment Variables for a given team. |
> | `vercel_delete_team` | Delete a team under your account. |
> | `vercel_delete_team_invite_code` | Delete an active Team invite code. |
> | `vercel_delete_webhook` | Deletes a webhook |
> | `vercel_edit_project_env` | Edit a specific environment variable for a given project by passing the environment variable identifier and either passing the project 'id' or 'name' in the URL. |
> | `vercel_edit_route` | Replace a routing rule identified by its ID, or restore it from the current production version. |
> | `vercel_filter_project_envs` | Retrieve the environment variables for a given project by passing either the project 'id' or 'name' in the URL. |
> | `vercel_generate_route` | Generate a routing rule configuration from a natural language description. |
> | `vercel_get_alias` | Retrieves an Alias for the given host name or alias ID. |
> | `vercel_get_all_checks` | List all of the checks created for a deployment. |
> | `vercel_get_cert_by_id` | Get cert by id |
> | `vercel_get_certs` | Get certs |
> | `vercel_get_check` | Return a detailed response for a single check. |
> | `vercel_get_custom_environment` | Retrieve a custom environment for the project. |
> | `vercel_get_deployment` | Retrieves information for a deployment either by supplying its ID ('id' property) or Hostname ('url' property). |
> | `vercel_get_deployment_events` | Get the build logs of a deployment by deployment ID and build ID. |
> | `vercel_get_deployments` | List deployments under the authenticated user or team. |
> | `vercel_get_domain` | Get information for a single domain in an account or team. |
> | `vercel_get_domain_config` | Get a Domain's configuration. |
> | `vercel_get_domain_project_domains` | List all project domains associated with an apex domain owned by the authenticated account. |
> | `vercel_get_domains` | Retrieves a list of domains registered for the authenticated user or team. |
> | `vercel_get_domain_verification_record` | Get the TXT verification record needed to claim ownership of a domain for the authenticated team. |
> | `vercel_get_project` | Get the information for a specific project by passing either the project 'id' or 'name' in the URL. |
> | `vercel_get_project_domain` | Get project domain by project id/name and domain name. |
> | `vercel_get_project_domains` | Retrieve the domains associated with a given project by passing either the project 'id' or 'name' in the URL. |
> | `vercel_get_project_env` | Retrieve the environment variable for a given project. |
> | `vercel_get_projects` | Allows to retrieve the list of projects of the authenticated user or team. |
> | `vercel_get_projects_by_id_or_name_custom_environments` | Retrieve custom environments for the project. |
> | `vercel_get_project_token` | Generates an OIDC token for the project and returns it. |
> | `vercel_get_project_trace` | Returns the OTEL trace for a given Vercel CLI request. |
> | `vercel_get_records` | Retrieves a list of DNS records created for a domain name. |
> | `vercel_get_rolling_release` | Return the Rolling Release for a project, regardless of whether the rollout is active, aborted, or completed. |
> | `vercel_get_rolling_release_billing_status` | Get the Rolling Releases billing status for a project. |
> | `vercel_get_rolling_release_config` | Get the Rolling Releases configuration for a project. |
> | `vercel_get_routes` | Get the routing rules for a project. |
> | `vercel_get_route_versions` | Get the version history for a project's routing rules. |
> | `vercel_get_shared_env_var` | Retrieve the decrypted value of a Shared Environment Variable by id. |
> | `vercel_get_team` | Get information for the Team specified by the 'teamId' parameter. |
> | `vercel_get_team_access_request` | Check the status of a join request. |
> | `vercel_get_team_members` | Get a paginated list of team members for the provided team. |
> | `vercel_get_teams` | Get a paginated list of all the Teams the authenticated User is a member of. |
> | `vercel_get_webhook` | Get a webhook |
> | `vercel_get_webhooks` | Get a list of webhooks |
> | `vercel_invite_user_to_team` | Invite a user to join the team specified in the URL. |
> | `vercel_issue_cert` | Issue a new cert |
> | `vercel_join_team` | Join a team with a provided invite code or team ID. |
> | `vercel_list_aliases` | Retrieves a list of aliases for the authenticated User or Team. |
> | `vercel_list_deployment_aliases` | Retrieves all Aliases for the Deployment with the given ID. |
> | `vercel_list_deployment_files` | Allows to retrieve the file structure of the source code of a deployment by supplying the deployment unique identifier. |
> | `vercel_list_promote_aliases` | Get a list of aliases related to the last promote request with their mapping status |
> | `vercel_list_shared_env_variable` | Lists all Shared Environment Variables for a team, taking into account optional filters. |
> | `vercel_move_project_domain` | Move one project's domain to another project. |
> | `vercel_patch_domain` | Update or move apex domain. |
> | `vercel_patch_team` | Update the information of a Team specified by the 'teamId' parameter. |
> | `vercel_patch_url_protection_bypass` | Update the protection bypass for the alias or deployment URL (used for user access & comment access for deployments). |
> | `vercel_pause_project` | Pause a project by passing its project 'id' in the URL. |
> | `vercel_post_team_dsync_roles` | Update the Directory Sync role mappings for a Team. |
> | `vercel_remove_cert` | Remove cert |
> | `vercel_remove_custom_environment` | Remove a custom environment for the project. |
> | `vercel_remove_project_domain` | Remove a domain from a project by passing the domain name and by specifying the project by either passing the project 'id' or 'name' in the URL. |
> | `vercel_remove_project_env` | Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project 'id' or 'name' in the URL. |
> | `vercel_remove_record` | Removes an existing DNS record from a domain name. |
> | `vercel_remove_team_member` | Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team. |
> | `vercel_request_access_to_team` | Request access to a team as a member. |
> | `vercel_request_promote` | Allows users to promote a deployment to production. |
> | `vercel_request_rollback` | Allows users to rollback to a deployment. |
> | `vercel_rerequest_check` | Rerequest a selected check that has failed. |
> | `vercel_stage_routes` | Stage routing rules for a project. |
> | `vercel_start_rolling_release` | Start a rolling release for a deployment. |
> | `vercel_unlink_shared_env_variable` | Disconnects a shared environment variable for a given project |
> | `vercel_unpause_project` | Unpause a project by passing its project 'id' in the URL. |
> | `vercel_update_check` | Update an existing check. |
> | `vercel_update_custom_environment` | Update a custom environment for the project. |
> | `vercel_update_integration_deployment_action` | Updates the deployment integration action for the specified integration installation |
> | `vercel_update_microfrontends` | Update the microfrontends settings for a project. |
> | `vercel_update_microfrontends_group` | Updates a microfrontends group's settings. |
> | `vercel_update_project` | Update the fields of a project using either its 'name' or 'id'. |
> | `vercel_update_project_domain` | Update a project domain's configuration, including the name, git branch and redirect of the domain. |
> | `vercel_update_project_protection_bypass` | Update the deployment protection automation bypass for a project |
> | `vercel_update_projects_by_project_id_rollback_by_deployment_id_update_description` | Updates the reason for a rollback, without changing the rollback status itself. |
> | `vercel_update_record` | Updates an existing DNS record for a domain name. |
> | `vercel_update_rolling_release_config` | Update (or disable) Rolling Releases for a project. |
> | `vercel_update_route_versions` | Promote staged routing rules to production, restore a previous production version, or discard staged changes. - 'promote': Publishes the staging version to production. - 'restore': Rolls back to a… |
> | `vercel_update_shared_env_variable` | Updates a given Shared Environment Variable for a Team. |
> | `vercel_update_team_member` | Update the membership of a Team Member on the Team specified by 'teamId', such as changing the *role* of the member, or confirming a request to join the Team for an unconfirmed member. |
> | `vercel_upload_cert` | Upload a cert |
> | `vercel_upload_file` | Before you create a deployment you need to upload the required files for that deployment. |
> | `vercel_upload_project_avatar` | Upload an image as the avatar of the project identified by 'idOrName'. |
> | `vercel_verify_project_domain` | Attempts to verify a project domain with 'verified = false' by checking the correctness of the project domain's 'verification' challenge. |

## Frequently asked questions

> [accordion] Can an agent trigger a Vercel deployment and then roll it back if checks fail?
>
> Yes. The vercel\_create\_deployment tool triggers a deployment, vercel\_get\_all\_checks and vercel\_get\_check let the agent read check results, and vercel\_request\_rollback rolls back to a previous deployment if needed.

> [accordion] Does the integration support rolling releases?
>
> Yes. Tools include vercel\_start\_rolling\_release, vercel\_approve\_rolling\_release\_stage, vercel\_complete\_rolling\_release, vercel\_get\_rolling\_release, and vercel\_get\_rolling\_release\_config, so an agent can start, advance, inspect, and force-complete a rolling release.

> [accordion] Does Guild expose the Vercel access token to the agent?
>
> No. Guild stores the token server-side and injects it through its credential proxy. Agent code never sees the secret, and the proxy enforces any credential policies before the request reaches Vercel.

> [accordion] Can I stop one agent from deleting projects while another agent retains that permission?
>
> Yes. Credential policies support agent-scoped rules. Add a DENY rule for vercel\_delete\_project scoped to the restricted agent, and leave the other agent's rules unaffected. DENY rules take precedence over ALLOW rules, so the block holds even if a broader ALLOW rule also matches.

## Put a governed agent on Vercel this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Vercel.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Vercel to your first agent.

## Related

**Also runs on Guild:** [Azure DevOps](https://docs.guild.ai/integrations/azure-devops.md) · [Bitbucket](https://docs.guild.ai/integrations/bitbucket.md) · [Buildkite](https://docs.guild.ai/integrations/buildkite.md) · [Convex](https://docs.guild.ai/integrations/convex.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
