September 28, 2026

@vercel/sdk
A type-safe TypeScript SDK for controlling the entire Vercel platform via the Vercel REST API.
npm add @vercel/sdkimport { 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
@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
bearerTokenwhen 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 meQ&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.
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 productAlternatives
Muse2API
Self-hosted HTTP adapter for authorized Muse workflows

FreeAPI.app
A free, open-source API Hub for frontend, mobile, and backend developers to learn and practice API interactions.

free-api
A curated directory of free APIs for developers, updated monthly.

API For Docker
An open-source Docker-based API platform offering endpoints for lifestyle, travel, developer tools, and more.

Tikway
Access multiple AI models with a single API Key. Supports OpenAI, Anthropic, and Gemini protocols.

IIIF/api
Markdown source repository for IIIF API and model specification documents

Bungie.Net API
Official REST API specification for querying and interacting with Destiny game data

ServiceNow SDK
Delivers a modern development workflow for the Now Platform via a TypeScript-based DSL, enabling you to build, version, and deploy apps as source code.

Apache APISIX
A cloud-native API and AI gateway built on NGINX and etcd, offering dynamic routing, load balancing, and hot-reloadable plugins.

Windy Map Forecast API
A Leaflet-based library that helps developers embed Windy's dynamic weather maps into websites.
The product content on this page was translated by AI from the author's original.