Cursor CLI (like Claude Code)

Since Cursor now has background/web agents, I think internally Cursor background agents is essentially a CLI program. Is a customer-facing Cursor CLI coming soon?

This will be great so I can finally upgrade to Ultra and downgrade my Claude Code.

1 Like

Hey, thanks for the feature request, we’ll consider it.

2 Likes

I believe this will be key features.

1 Like

That was fast! Just a month since you “considered” it? Great work, thanks!

1 Like

Installation failed. The full log is as follows (macos 15.1.1):

➜ ~ curl Cursor CLI | Cursor - The AI Code Editor -fsS | bash

Cursor Agent Installer

✓ Detected darwin/arm64
▸ Creating installation directory…
✓ Directory created
▸ Downloading Cursor Agent package…
Download URL: https://downloads.cursor.com/lab/2025.08.08-562252e/darwin/arm64/agent-cli-package.tar.gz
#=#=# 0.1%tar: could not chdir to ‘/Users/xx/.local/share/cursor-agent/versions/.tmp-2025.08.08-562252e-1754619171’

Manually creating the /Users/xxx/.local/share/cursor-agent/versions directory fixed this error.

Fantastic. I’m sure you’re working on it , but just flagging that the vim key mode is broken as soon as I start typing in insert mode. Very very nice feature idea though

Anyone get this error after logging in on macos when trying to use with ssh?

Failed to store authentication tokens: Cy: Security command failed: Security process exited with code: 36

2 Likes

next time the very first thing to do is to … ask your favorite LLM for clues

security unlock-keychain -p ‘<KEYCHAIN_PASSWORD>’ ~/Library/Keychains/login.keychain-db

will do the trick, next you may want to automate that, essentially keychain needs GUI loggeid in user session bla bla

else do
id -u <username>
sudo launchctl asuser <UID> sudo -u <username> cursor-agent

Hello there. I am running an intel mac and it keeps telling me that installed successfully but the cursor-agent command is not found.

Does your solution apply to those ?

Hello there,

After checking the cursor-cli, it seem facing some issue with multiple conversations, the issue was the system not able to response and keep returning directly reading files!! while the token already consumed and the process is terminated. This issue is impacting the tokens and start consume them very fast. “Every message “prompt” send token will consume without any the output result.
This issue appears after multiple back-forth with the cursor-agent cli.

Any one face this issue, while using the cursor-agent cli?

@sanjeed5 One critical thing is missing to replace Claude Code: With CC, there is a jetbrains plugin that does two important things:

  • direct access to the IDE diagnostics, which means that typing/linting errors (I work with Pycharm) are fixed automatically before generating the diff for approval
  • display the diff in the IDE for approval

Is something similar planned?

Thanks @clemux . Makes sense!

Can you raise a Feature Requests for this please? Thanks!