Builderoom

September 28, 2026

View repo

A type-safe TypeScript SDK for controlling the entire Vercel platform via the Vercel REST API.

Apache-2.0
安装命令(说明)bash
npm add @vercel/sdk
最小示例代码python
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.replaceDomainsByDomainRecords({
    domain: "example.com",
  });

  console.log(result);
}

run();

Product facts

Type
API, SDK & Library
Category
Development & Engineering › API Integration
Pricing
Open source
License
Apache-2.0
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

@vercel/sdk is a type-safe TypeScript SDK that gives developers full access to the Vercel REST API. It is built by Speakeasy and open-sourced under the Apache-2.0 license.

Key Capabilities

The SDK covers a wide range of Vercel platform resources and operations, including but not limited to:

  • Project Management: Update configuration fields of existing projects by name or ID.
  • Domain Management: Replace domain records, retrieve domain records, and more.
  • Access Groups: Create, read, update, and delete access groups along with their associated projects and members (Enterprise feature).
  • AI Gateway: Manage AI Gateway rules.
  • Aliases: List, assign, retrieve, and remove deployment aliases.
  • API Keys: Create API keys.
  • Observability: Create observability queries and fetch metric schemas.
  • Insights: Toggle Speed Insights and Web Insights on or off.

Technical Features

  • Authentication: Global support for HTTP Bearer Token authentication—just pass bearerToken when initializing the client.
  • Modular Design: Supports standalone functions, allowing you to call individual functions on demand.
  • Other Capabilities: Built-in file uploads, automatic retries, error handling, server selection, custom HTTP clients, and debugging support.
  • Package Format: Published exclusively as an ES Module (ESM). CommonJS applications must use dynamic imports via await import("@vercel/sdk").

Who It's For

Ideal for TypeScript/JavaScript developers who need to programmatically automate the management of Vercel deployments, projects, domains, and team permissions. Before using it, create an Access Token with the correct scope in the Vercel Dashboard.

Key features

  • Type Safety: Built with TypeScript, providing complete type hints and checks.
  • Bearer Token Authentication: Pass bearerToken when initializing the client to authenticate API requests.
  • Project Management: Update project configuration fields by project name or ID.
  • Domain Operations: Provides methods to replace domain records, fetch domain records by record ID, and more.
  • Access Groups Management: Supports CRUD operations for access groups, their members, and associated projects.
  • AI Gateway Rules: Create, list, update, and delete AI Gateway rules.
  • Deployment Alias Management: List, assign, retrieve, and remove deployment aliases.
  • Observability Queries: Create Observability queries and fetch related schemas.
  • Insights Toggles: Enable or disable Speed Insights and Web Insights.
  • Automatic Retries & Error Handling: Built-in request retry mechanism and structured error handling.
  • Custom HTTP Client: Allows developers to pass in a custom HTTP client instance.
  • ESM Only: The package is published as an ES Module; CommonJS environments require dynamic imports.

Releases

Notify me

Initial · @vercel/sdk

Q&A

How do I install @vercel/sdk?AI-generated
You can install it using npm, pnpm, bun, or yarn. For example, with npm: `npm add @vercel/sdk`; with pnpm: `pnpm add @vercel/sdk`.
How do I use this SDK in a CommonJS project?AI-generated
The package is published exclusively as an ES Module (ESM). In CommonJS applications, you need to dynamically import it using `await import("@vercel/sdk")`.
How do I authenticate?AI-generated
The SDK supports HTTP Bearer authentication globally. When initializing the Vercel client instance, simply assign a valid Access Token to the `bearerToken` parameter.
What should I do if I encounter a 403 permission error?AI-generated
Possible causes include: the token has expired; the token lacks the correct scope (e.g., mismatched team or account-level permissions); or the resource or operation you're trying to use isn't available on your current team plan (e.g., AccessGroups are Enterprise-only).
Who built this SDK?AI-generated
According to the repository documentation, this SDK was built by Speakeasy.
View repo
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.