Python SDK for Vercel
Project Links
Meta
Requires Python: >=3.10
Classifiers
Vercel Python SDK
Python SDK for Vercel APIs and Vercel Functions.
For product-level behavior, limits, and platform setup, use the official Vercel docs.
Getting Started
Install the package:
pip install vercel
Or with uv:
uv add vercel
Configure the credentials via environment variables based on your app's needs:
BLOB_READ_WRITE_TOKENfor Vercel BlobVERCEL_TOKEN,VERCEL_PROJECT_ID, andVERCEL_TEAM_IDfor Vercel API clientsVERCEL_OIDC_TOKENfor local OIDC testing. On Vercel, OIDC helpers can read the request token after you register request headers withvercel.headers.set_headers().
For local OIDC development, you can load a short-lived token dynamically with the Vercel CLI:
VERCEL_OIDC_TOKEN=$(vc project token some-project) some-command
Usage
import asyncio
from vercel.client import AsyncVercel
from vercel.oidc.credentials import get_credentials
async def main() -> None:
credentials = get_credentials()
vercel = AsyncVercel(access_token=credentials.token)
deployment = await vercel.deployments.create_deployment(
body={
"name": "hello-python",
"project": "hello-python",
"target": "preview",
"files": [
{
"file": "index.html",
"data": "<h1>Hello from Python</h1>",
}
],
}
)
print(f"Deployment created: https://{deployment['url']}")
asyncio.run(main())
Public API Vs Internals
Import from public modules under vercel.*, such as vercel.blob,
vercel.cache, vercel.headers, vercel.oidc, vercel.projects, and
vercel.sandbox. Modules under vercel._internal.* are implementation details
and may change without public API guarantees.
Sync counterparts are available for the main client classes and module-level helpers when you are not running an async application.
0.5.9
May 19, 2026
0.5.8
Apr 22, 2026
0.5.7
Apr 15, 2026
0.5.6
Apr 13, 2026
0.5.5
Apr 12, 2026
0.5.4
Apr 08, 2026
0.5.3
Mar 27, 2026
0.5.2
Mar 09, 2026
0.5.1
Feb 27, 2026
0.5.0
Feb 19, 2026
0.4.0
Feb 12, 2026
0.3.8
Jan 20, 2026
0.3.7
Jan 08, 2026
0.3.6
Dec 17, 2025
0.3.5
Oct 28, 2025
0.3.4
Oct 22, 2025
0.3.3
Oct 21, 2025
0.3.2
Oct 18, 2025
0.3.1
Oct 18, 2025
0.3.0
Oct 17, 2025
0.2.1
Jul 28, 2020
0.2.0
Jul 28, 2020
0.1.8
Jul 27, 2020
0.1.7
Jul 27, 2020
0.1.6
Jul 27, 2020
0.1.5
Jul 27, 2020
0.1.4
Jul 26, 2020
0.1.3
Jul 26, 2020
0.1.2
Jul 25, 2020
0.1.1
Jul 25, 2020
0.1.0
Jul 25, 2020