• Tech Dev NotesTech Dev Notes
Apps
  • App lookup
  • App compare
Market movement
  • App charts
  • App rankings
Visual proof
  • App screens
  • App listing screenshots
  • App icons
Build intelligence
  • App tech stacks
  • Tool releases
  • Developers
More
  • X feature flags
  • Grokipedia
  • Blog
  • Follow on X
Skip to content
All content/ filesChangelog

cursor-docs/latest/content · Jun 26, 20:20 UTC

pages/account/enterprise/service-accounts.txt

TXT·5.8 KB·88 lines

content/

  • pages

    • api.txt
    • approval-agents.txt
    • bugbot.txt
    • cloud-agent.txt
    • customize-cursor.txt
    • enterprise.txt
    • evals.txt
    • extension-api.txt
    • hooks.txt
    • mcp.txt
    • models-and-pricing.txt
    • plugins.txt
    • rules.txt
  • pages/account

    • regions.txt
    • update-access.txt
  • pages/account/enterprise

    • billing-groups.txt
    • cyber-safeguards.txt
    • service-accounts.txt
  • pages/account/organizations

    • organization-admin-api.txt
  • pages/account/pricing

    • request-based-legacy.txt
  • pages/account/teams

    • admin-api.txt
    • ai-code-tracking-api.txt
    • analytics-api.txt
    • analytics.txt
    • dashboard.txt
    • members.txt
    • pricing.txt
    • scim.txt
    • setup.txt
    • sso.txt
  • pages/agent

    • agent-review.txt
    • agents-window.txt
    • debug-mode.txt
    • design-mode.txt
    • overview.txt
    • plan-mode.txt
    • prompting.txt
    • security.txt
  • pages/agent/security

    • run-modes.txt
  • pages/agent/tools

    • browser.txt
    • canvas.txt
    • search.txt
    • terminal.txt
  • pages/cli

    • acp.txt
    • changelog.txt
    • github-actions.txt
    • headless.txt
    • installation.txt
    • mcp.txt
    • overview.txt
    • shell-mode.txt
    • using.txt
  • pages/cli/reference

    • authentication.txt
    • configuration.txt
    • output-format.txt
    • parameters.txt
    • permissions.txt
    • slash-commands.txt
    • terminal-setup.txt
  • pages/cloud-agent

    • automations.txt
    • best-practices.txt
    • capabilities.txt
    • choose-runtime.txt
    • my-machines.txt
    • private-workers.txt
    • security-network.txt
    • self-hosted-cloud-run.txt
    • self-hosted-k8s.txt
    • self-hosted-pool.txt
    • settings.txt
    • setup.txt
  • pages/cloud-agent/api

    • endpoints.txt
    • webhooks.txt
  • pages/configuration

    • worktrees.txt
  • pages/configuration/migrations

    • vscode.txt
  • pages/cursor-review

    • merge-queue.txt
    • overview.txt
    • pr-inbox.txt
    • pr-page.txt
  • pages/cursor-review/cli

    • authentication.txt
    • parameters.txt
    • stacking.txt
  • pages/customizing

    • aws-bedrock.txt
  • pages/enterprise

    • baa.txt
    • compliance-and-monitoring.txt
    • deployment-patterns.txt
    • endpoint-security.txt
    • identity-and-access-management.txt
    • llm-safety-and-controls.txt
    • model-and-integration-management.txt
    • network-configuration.txt
    • organization-groups.txt
    • organizations.txt
    • pooled-usage.txt
    • privacy-and-data-governance.txt
    • private-connectivity.txt
    • security-hardening.txt
  • pages/get-started

    • quickstart.txt
  • pages/integrations

    • azure-devops.txt
    • bitbucket.txt
    • cursor-blame.txt
    • github.txt
    • gitlab.txt
    • jetbrains.txt
    • jira.txt
    • linear.txt
    • microsoft-teams.txt
    • notion.txt
    • slack.txt
    • xcode.txt
  • pages/mcp

    • install-links.txt
  • pages/models

    • claude-4-5-haiku.txt
    • claude-4-5-sonnet.txt
    • claude-4-6-sonnet.txt
    • claude-4-sonnet-1m.txt
    • claude-4-sonnet.txt
    • claude-fable-5.txt
    • claude-opus-4-5.txt
    • claude-opus-4-6-fast.txt
    • claude-opus-4-6.txt
    • claude-opus-4-7-fast.txt
    • claude-opus-4-7.txt
    • claude-opus-4-8.txt
    • cursor-composer-1-5.txt
    • cursor-composer-1.txt
    • cursor-composer-2-5.txt
    • cursor-composer-2.txt
    • gemini-2-5-flash.txt
    • gemini-3-1-pro.txt
    • gemini-3-5-flash.txt
    • gemini-3-flash.txt
    • gemini-3-pro-image-preview.txt
    • gemini-3-pro.txt
    • glm-5-2.txt
    • gpt-5-1-codex-max.txt
    • gpt-5-1-codex-mini.txt
    • gpt-5-1-codex.txt
    • gpt-5-2-codex.txt
    • gpt-5-2.txt
    • gpt-5-3-codex.txt
    • gpt-5-4-mini.txt
    • gpt-5-4-nano.txt
    • gpt-5-4.txt
    • gpt-5-5.txt
    • gpt-5-codex.txt
    • gpt-5-fast.txt
    • gpt-5-mini.txt
    • gpt-5.txt
    • grok-4-20.txt
    • grok-4-3.txt
    • grok-build-0-1.txt
    • kimi-k2-5.txt
  • pages/reference

    • deeplinks.txt
    • ignore-file.txt
    • keyboard-shortcuts.txt
    • permissions.txt
    • plugins.txt
    • sandbox.txt
    • third-party-hooks.txt
  • pages/sdk

    • python.txt
route: /docs/account/enterprise/service-accounts
title: Service Accounts
description: Automate Cursor-powered workflows at scale with non-human accounts for APIs and cloud agents.

Service Accounts
Service accounts are available on the Enterprise plan.
Service accounts are non-human accounts that enable teams to securely automate Cursor-powered workflows at scale. With service accounts, you can consume APIs, authenticate the CLI, and invoke cloud agents without tying integrations to individual developers' personal accounts.
Why use service accounts
As teams find new ways to automate coding tasks with Cursor cloud agents, APIs, and CLI, the need for centralized, secure automation becomes critical. Service accounts address this by:
Decoupling from individuals: Automations continue running even as people and roles change
Secure credential management: Easily rotate API keys without disrupting workflows
Centralized access control: Admins manage all service account permissions in one place
Attribution and auditability: Tie cloud agent runs to the initiating service or system
Key features
No additional seat required
Service accounts are included with your Enterprise plan at no extra cost. They do not consume a seat license.
Usage consumption
Service accounts consume usage from your team's usage pool, just like human users. All usage is tracked and visible in your team's analytics and billing.
Cloud agent integration
Service accounts can initiate cloud agent runs programmatically. This enables automation scenarios such as:
A ticket created in Linear triggering a cloud agent to implement a feature
An error in Sentry initiating a cloud agent to investigate and fix the issue
Internal engineering services kicking off migrations or refactoring tasks
Admin visibility
Cloud agent runs initiated by service accounts are accessible to all team admins. This ensures visibility and oversight of automated workflows across your organization.
Repository access
Service accounts can initiate cloud agent runs on any repository that has been authorized via the Cursor GitHub app.
The GitHub integration must be connected at the team level for service accounts to access repositories. If you have a personal GitHub integration but no team-level integration, service accounts will not be able to initiate cloud agent runs.
To connect GitHub at the team level:
Navigate to Dashboard → Settings → Integrations
Connect the Cursor GitHub app to your organization
Authorize the repositories you want service accounts to access
Repository access is governed by the permissions configured for your team's GitHub app installation.
Creating a service account
Admins can create and manage service accounts from the Cursor Dashboard.
Navigate to Dashboard → Settings → Service Accounts
Click New Service Account
Enter a name and optional description for the service account
Click Create
When you create a service account, an API key is generated. Copy this key immediately—it will only be shown once and cannot be retrieved later.
Store your API key securely. If you lose it, you'll need to rotate it to generate a new one.
Managing API keys
Each service account can have API keys associated with it. You can:
View masked keys: See the last few characters of each key for identification
Rotate keys: Generate a new key and invalidate the old one
Archive service accounts: Archive a service account and revoke all its API keys
Rotating an API key
To rotate an API key:
Navigate to Dashboard → Settings → Service Accounts
Find the service account and click the rotate icon next to its API key
Copy the new key immediately
The old key is immediately invalidated. Update any integrations using the old key.
Using service accounts with the API
Service accounts authenticate using their API key. Use the key in the Authorization header when making requests to the Cloud Agents API:
curl -X POST https://api.cursor.com/agents \
-H "Authorization: Bearer YOUR_SERVICE_ACCOUNT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"repo": "owner/repo",
"prompt": "Implement the feature described in issue #123"
}'
See the Cloud Agents API documentation for the full API reference.
Using service accounts with the CLI
Service accounts can authenticate the Cursor CLI by setting the API key as CURSOR_API_KEY. This is the recommended way to run the CLI in CI/CD pipelines, cron jobs, and other non-interactive environments where browser login isn't possible.
export CURSOR_API_KEY=your_service_account_api_key
# Run a task in a CI pipeline
agent -p --force "Refactor the authentication module to use OAuth 2.0"
The same environment variable works in any context, including local development. See the CLI authentication docs for all authentication options and the headless CLI guide for scripting patterns.
Security best practices
Rotate keys regularly: Establish a key rotation schedule for your service accounts
Use descriptive names: Name service accounts after their purpose (e.g., "Linear Integration", "Sentry Auto-Fix")
Limit scope: Create separate service accounts for different automation workflows
Monitor usage: Review service account activity in your team's analytics dashboard
Revoke unused accounts: Archive service accounts that are no longer in use
Archiving a service account
Archiving a service account:
Revokes all API keys associated with the account
Breaks any integrations using those keys
Preserves the account record for auditability
To archive a service account:
Navigate to Dashboard → Settings → Service Accounts
Click the archive icon next to the service account
Confirm the archive action
Archived accounts can be viewed by clicking Show Archived on the Service Accounts page. This helps maintain a complete audit trail of service accounts used by your team.
Service accounts are available on the Enterprise plan
Automate Cursor-powered workflows at scale with non-human accounts for APIs and cloud agents.
Contact Sales
Previouspages/account/enterprise/cyber-safeguards.txtNextpages/account/organizations/organization-admin-api.txt

© 2026 Tech Dev Notes

RSSAboutAPIPrivacyTermsSitemap@techdevnotes