cloudthinker) brings your CloudThinker workspace into the terminal. Type cloudthinker, describe the task in plain language, and the agent works in your current directory; scripts use cloudthinker chat -p to get an answer on stdout.
Beta. The CLI is in beta. Command names and flags may change before general availability. The CLI calls a Worker an outpost, so you’ll see
--outpost in commands. Run cloudthinker --version to see yours, and check the releases page for what changed.What you can do
What runs where
Run the agent only in folders whose contents you’re fine sending to the model. See Where work runs for the details.
Prerequisites
- macOS (Apple Silicon or Intel) or Linux (x86_64 or arm64). There is no native Windows build.
- A CloudThinker account with access to at least one workspace. Headless chat (
cloudthinker chat) works on every plan, including Free. The interactive agent (cloudthinker) needs Team, Scale, Scale Plus, or Enterprise; on Free it refuses to start with an upgrade prompt. See Pricing. - Outbound HTTPS to
cloudthinker.io(installer),github.com(CLI and agent downloads), andapp.cloudthinker.io(the API). Behind a proxy, setHTTPS_PROXY. If the proxy re-signs HTTPS, setSSL_CERT_FILEto your company CA bundle.
Install and run your first session
1
Install the CLI
cloudthinker binary in ~/.local/bin and adds that folder to your PATH in your shell profile. In a terminal, it then starts the login for you unless you are already logged in. It skips the login in CI, or when you set CLOUDTHINKER_CLI_NO_LOGIN=1. Open a new shell when it finishes.If your machine blocks piping a script into sh, or you need a specific version, download the archive and its .sha256 file for your platform from the releases page instead:cloudthinker --version prints a version number.2
Log in
Skip this step if the installer already printed The CLI asks How would you like to log in? Pick Log in with browser on your own machine, or Log in with a code over SSH. Approve the request in the browser and choose a workspace if you have more than one.
Success state: the terminal prints
Logged in to <workspace>.
Logged in to <workspace>. See CLI authentication for remote machines, several workspaces, and CI.3
Check who you are
host=https://app.cloudthinker.io email=you@example.com workspace=Production (<workspace-id>).4
Start the agent, or ask one question
cloudthinker run downloads the agent build that matches your CLI version into ~/.cloudthinker/agent/bin/<version>/ and checks it against the release’s SHA-256 checksum. Later runs reuse it.Success state: the agent header names your workspace, your user, and the workspace Approval mode (· Auto or · Manual), and the prompt is ready for your request. See Agent CLI.Commands
Every flag, environment variable, and exit code is on the CLI reference.
Keep the CLI up to date
Runcloudthinker update at any time. On an interactive terminal, the CLI also offers an update when a newer release exists, checking at most every 20 hours. It asks Install it now? [y/N] (s skips this version):
Set
CLOUDTHINKER_NO_UPDATE_CHECK=1 to turn the offer off, for example in CI. To pin a version, install that release’s archive by hand, as in step 1.
Use the CLI from another coding agent
The binary carries an operating guide that teaches an AI coding agent to use the CLI: chat, follow conversations, read code reviews, and run a local Cyber pentest. Printing it needs no login or network. Save it where your coding agent reads skills, for example:Uninstall
cloudthinker folder in your config directory (~/Library/Application Support/cloudthinker on macOS, $XDG_CONFIG_HOME/cloudthinker or ~/.config/cloudthinker on Linux), and remove the PATH line the installer added to your shell profile. See Files for every path the CLI writes.
Troubleshooting
cloudthinker: command not found
cloudthinker: command not found
The installer added
~/.local/bin to your PATH, but the current shell started before that. Open a new shell, or run ~/.local/bin/cloudthinker --version directly.A command says you are not logged in (exit code 3)
A command says you are not logged in (exit code 3)
The credential is missing or expired, or the server refused access. Run
cloudthinker login, then cloudthinker whoami to confirm. See CLI authentication.Ctrl-C stopped a chat before the answer arrived
Ctrl-C stopped a chat before the answer arrived
Only the wait stopped. The run continues on the server, and the CLI prints the command that resumes the wait.
Next steps
CLI authentication
Log in over SSH, switch workspaces, and authenticate CI jobs
Agent CLI
Run an agent session in your own repository
Headless chat
Pipe CloudThinker’s answer into scripts and pipelines
CLI reference
Every command, flag, variable, and exit code