Company2 min read
The cloudphone CLI: manage cloud phones from a terminal
The cloudphone CLI runs your cloud phones from a terminal or an AI agent: list phones, take screenshots, tap, type and start macros. Install it with one line.

The cloudphone CLI is a command-line program that controls your cloud phones from a terminal, a script or an AI agent. It's out today for Linux, macOS and Windows.
If you've wanted a script to do something on a phone and then look at the result, this is for you.
Install the cloudphone CLI
On Linux and macOS:
curl -fsSL https://app.cloudphone.gg/cli/install.sh | sh
On Windows, in PowerShell:
irm https://app.cloudphone.gg/cli/install.ps1 | iex
Both installers check the download's SHA-256 before they put anything on your machine. The install page has the same commands under "Manage phones with AI".
Signing in
Run cloudphone login and it opens your browser. You approve the sign-in on the CloudPhone site, so your password never goes through the CLI. Passkeys and two-factor sign-in work the way they do on the web.
The CLI keeps its session in your system keychain. cloudphone logout signs it out, and --profile keeps several accounts side by side.
What the commands do
The commands cover what you'd do in the stream:
cloudphone phoneslists your phones and their statecloudphone screenshotsaves what the phone's screen shows right nowcloudphone tapandcloudphone keysend a tap or a key presscloudphone typetypes text into the field the phone is editingcloudphone macroslists, starts and stops your macroscloudphone creditsshows your balancecloudphone autoclickerswitches a phone's autoclicker on and off
Add --json to any command and it prints JSON, so a script can read the result without scraping text.
Writing macros from the terminal
The CLI can create and edit macros as well as run them, and it has a Python view of a macro graph that you can read and write. That makes a macro something you can keep in a file, diff and review like code.
AI agents
The CLI includes an MCP server, so an AI agent can use the same commands as tools. An agent can look at a screenshot, decide what to tap, and check the result.
It works with the account you signed in with and sees only the phones that account owns. Give an agent a phone you don't mind it touching, because it presses real buttons in real apps.
Keeping the cloudphone CLI up to date
Run cloudphone update and the CLI replaces itself with the newest version, after checking its SHA-256. It also checks for a newer version by itself and tells you when there is one.
- #cli
- #terminal
- #agents
- #automation



