If I want to use Cursor in Claude Code, what should I do? Is it possible to convert Cursor into a corresponding API for use with Claude Code?
Hey, thanks for the request. The short answer is no. Cursor doesn’t provide a public general purpose API, and you can’t use a Cursor subscription as an Anthropic compatible backend for external tools like Claude Code. The subscription is meant for use inside Cursor products only, like the editor, Cursor CLI, and Cloud Agents.
If what you want is a terminal agent like Claude Code, Cursor has its own agent, Cursor CLI cursor-agent. It runs on your Cursor subscription and supports both interactive and non interactive CI modes. Install it with:
curl https://cursor.com/install -fsS | bash
Docs: Cursor CLI | Cursor Docs
About ACP. You can run the Cursor agent from editors that speak Agent Client Protocol, but Claude Code isn’t an ACP client, so that won’t work here. Claude Code is an Anthropic product, and it can only be pointed at an Anthropic API key.