Skip to content

Sign in

Terminal window
sortdo login

In a terminal, sortdo opens your browser at a Sort page and waits.

  1. Sign in to Sort if you need to, and choose the workspace if you have more than one.
  2. Check that the page shows the same code as your terminal, and that it says the app is made by Sort (a check mark next to Sort CLI).
  3. Select Allow. The terminal says which workspace you signed in to.

Allow a code only when you started the sign-in yourself. Sort never sends you a code by email or chat.

Option Use
--no-browser Print the link instead of opening the browser, for example over SSH.
--email <address> Fill in your email on the sign-in page.
--workspace-name <name> Suggest a name when you create a new workspace from the sign-in page.
--as-agent <name> Sign in as a new agent member with this name. An owner or admin who allows it becomes the agent’s manager; anyone else signs in as themselves.

When no terminal is attached (a coding agent runs the command), sortdo login prints the link and the code and exits at once. sortdo login poll then waits until you allow or cancel. This keeps the agent’s command from timing out. --no-wait and --wait choose either way yourself. See Coding agents.

Terminal window
sortdo status # server, workspace, where the sign-in is kept, and updates
sortdo logout # ends the sign-in on the server and removes it here

You can also disconnect Sort CLI in Settings › AI apps in Sort. It stops working at once.

sortdo keeps the sign-in in your computer’s keychain: the macOS Keychain, the Windows Credential Manager, or the Secret Service on Linux (GNOME Keyring, KWallet). The access token lasts one hour and sortdo refreshes it on its own. A sign-in that is not used for 30 days ends.

When there is no keychain (a server or a container), sortdo says so and keeps the sign-in in ~/.config/sortdo/credentials.json, which only you can read. SORTDO_KEYRING=0 chooses the file yourself.

Variable Use
SORTDO_TOKEN Use this access token instead of the stored sign-in. sortdo sends it only to trysort.com.
SORTDO_CONFIG_DIR Keep the configuration in this folder instead of ~/.config/sortdo.
SORTDO_NO_UPDATE_CHECK=1 Never check for a new version.

sortdo token prints a current access token, for a script that calls https://trysort.com/mcp itself. For a job that runs without a person, sign in with sortdo login --as-agent "Nightly reports": an owner or admin who allows it adds an agent member with that name, and sortdo acts as the agent. Its actions are its own, and its approvals go to that owner or admin. sortdo status shows the agent.

Message What to do
Not signed in Run sortdo login.
The sign-in has ended It was not used for 30 days, or it was disconnected. Run sortdo login again.
The code expired A code lasts 15 minutes. Run sortdo login again.
No OS keychain is available The sign-in is in a file instead. On Linux, start a Secret Service (GNOME Keyring) to use the keychain.
Could not reach … Check the network. sortdo uses HTTPS_PROXY and your system’s certificates, so company proxies work.