The Cursor CLI runs on your phone through
Cosyra for iPhone or
Cosyra for Android. The CLI runs in a cloud
Linux workspace, where cursor-agent is already installed. Your phone
is the terminal.
Cursor has no shortcut card of its own yet, so you start it from a terminal and then save your own shortcut. The screenshots are from the Cosyra 2.8.5 iPhone app, taken in October 2026. The flow is the same on Android.
What you need
- The Cosyra app. Core is $20 a month and Pro is $30. Eligible new users can start a 7-day free trial in the App Store app. Pricing has the details.
- A Cursor account. The CLI uses your Cursor plan.
- A browser on the phone. The sign-in happens on cursor.com.
Run the Cursor CLI on a mobile device
Step 1
Open a new terminal in Cosyra
On Terminals, tap New and choose New terminal. The workspace wakes up and you get a shell in your home folder.
Step 2
Run cursor-agent
Tap the terminal, type the command and press return:
cursor-agent
There is nothing to install first. The shorter agent starts the
same program.
Step 3
Press a key to log in
Cursor Agent shows its version and waits. Press any key to start the login.
Step 4
Open the sign-in link
The CLI cannot open a browser from the cloud, so it prints a link. Tap it. Sign in to Cursor in your phone's browser and approve the login.
Switch back to Cosyra. The CLI notices the login by itself and opens its prompt. There is no code to copy.
Step 5
Save it as a shortcut
Go back to Terminals and tap the plus next to Your shortcuts. Fill in the sheet:
- Name: Cursor CLI
- Folder: your home folder, or tap Browse to pick a project
- Command:
cursor-agent
Tap Save. The card appears at the start of the row. One tap now opens a terminal in that folder and starts the Cursor CLI.
Using the Cursor CLI from a phone
Start it inside a repository so it has code to work on. Clone the project, change into it and run the CLI:
git clone https://github.com/you/your-repo.git
cd your-repo
cursor-agent Then describe the change in plain words. The agent reads the files, proposes edits and asks before it runs commands.
For a one-off answer without the interactive screen, pass the prompt with
-p:
cursor-agent -p "summarize what changed in the last five commits" Cosyra's toolbar above the keyboard adds Esc, Tab, Ctrl, Alt and the arrow keys, which the CLI's menus need. The docs list every toolbar key. The terminal lives in the workspace, so a task carries on when you lock the phone.
Questions
Can you run the Cursor CLI on a phone?
Not on the phone itself. The Cursor CLI is built for macOS and Linux. Cosyra gives your phone a cloud Linux workspace where cursor-agent is already installed, and you run it from the app's terminal.
Is the command cursor-agent or agent?
Both are in the workspace. Cursor's current docs use agent, and cursor-agent is the older name. This guide types cursor-agent because it is harder to confuse with anything else.
Do I need to install the Cursor CLI?
No. It ships in the Cosyra workspace. If the command is not found, your workspace is on an older image: run Cursor's installer once with curl https://cursor.com/install -fsS | bash.
What Cursor plan do I need?
The Cursor CLI signs in with your Cursor account and uses that account's plan and limits. For scripts you can set CURSOR_API_KEY instead of signing in.
Does it work on both iPhone and Android?
Yes. The CLI runs in the cloud workspace, so the steps are the same from either app.
What does it cost?
Cosyra is a subscription: Core is $20 a month and Pro is $30 a month. Eligible new users can start a 7-day free trial in the App Store app. Cursor usage is separate and comes from your Cursor plan.
Related guides
- Cursor on your phone, for the editor rather than the CLI.
- Cosyra vs Cursor CLI, on how the two fit together.
- Claude Code on your phone, Codex CLI on your phone and Pi on your phone.
- AI coding agents on mobile, the overview of all of them.