The Background Agents API allows you to programmatically create and manage AI-powered coding agents that work autonomously on your repositories.
You can use the API to automatically respond to user feedback, fix bugs, update docs, and much more!
Background Agents API is currently in beta, we’d love your feedback on it!
All API requests require authentication using a Bearer token:
Copy
Ask AI
Authorization: Bearer YOUR_API_KEY
API keys are created in the Cursor Dashboard. Keys are scoped to your account and grant permission to create and manage agents (subject to your plan limits and repository access).