Providers / Cursor

AI coding

Cursor API keys and credentials

What every Cursor credential a founder holds does, whether it expires, and what tends to break. Each fact links to Cursor's own docs.

Last checked 2026-11-08 · cursor.com

At a glance

CredentialExpiryPermissions
Team Admin API key (admin:* scope)Not documentedCan be scoped
Analytics API key (Enterprise teams)Not documentedNot documented
Cloud Agents API key (user or service account)Not documentedNot documented
Cursor account loginNot documented–

Each credential

Team Admin API key (admin:* scope)

Created by a team admin in the Cursor dashboard (API Keys section); copy it immediately. Authenticates with HTTP Basic, with the API key as the username. The docs list 'admin:*' as required for the Admin API and AI Code Tracking API key; other endpoints accept read:* or models:read scopes. Admin API usage and spend endpoints are reads. Keys belong to the organization and keep working when the creator's account changes status. No expiry or rotation rules were stated.

Cursor docs

Analytics API key (Enterprise teams)

Generated from the Cursor dashboard API Keys section. The docs do not state expiry or scope for this key type.

Cursor docs

Cloud Agents API key (user or service account)

Beta. Can be a user key from the dashboard or a service account key from team settings. Available on plans that include Cloud Agents. Expiry and scopes are not stated in the docs.

Cursor docs

Cursor account login

Dashboard login. Subscriptions are monthly with cancellation required at least 24 hours before renewal.

Cursor docs

What usually goes wrong

Renewals and billing

Team Admin API (HTTP Basic, key as username). POST /teams/spend (spend, per user; includes names and emails) and POST /teams/daily-usage-data (includes email; data aggregated hourly, poll at most once per hour). Admin API listed as Enterprise teams; a forum reply said Business (unconfirmed).

What Cursor's docs don't say

We couldn't confirm these from official docs, so don't rely on them either way:

Rotating or replacing a Cursor key

The steps are the same for most providers: make the new key, deploy it everywhere the old one is used, check it works, then revoke the old one. Our guides walk through it:

Sources

Keep track of every Cursor key

StackHangar stores your Cursor keys in an encrypted vault, grouped by the product they belong to, warns you before they expire, and walks you through rotating them. We can't read your secrets.