CLI

Sign in

Connect the CLI to your teams: trodo login in the browser, switching between teams, a key for CI, and what a key can do.

In the browser

trodo login

The terminal shows a code and opens the app's Connect the Trodo CLI page. Check that the page shows the same code and which terminal asked, choose the Team, and press Connect. The page then says Terminal connected, and you can close it.

The Connect the Trodo CLI page: the sign-in code, the terminal that asked (trodo-cli 0.4.2 on a laptop), the Team picker, and Cancel and Connect.

The terminal receives a key made for you on that team and saves it to ~/.trodo/config.json, readable only by you.

A terminal running npm i -g trodo-cli and trodo login: the code, the link it opened, then signed in to the team with its scopes.
  • The code works for 10 minutes and only once.
  • --no-browser prints the link instead of opening it (a remote machine, a container).
  • Cancel on the page refuses the sign-in; the terminal says so and stops.

Teams

Everything in Trodo belongs to a team, and so does a key: one key reaches one team. The CLI keeps a key for every team you sign in to and uses one at a time.

trodo login                     # add a team: choose it on the Connect page
trodo teams --table             # the teams this terminal is signed in to; * is the current one
trodo switch "Acme staging"     # every command uses that team from now on
trodo runs list --team Acme     # or pick a team for one command, by name or id
trodo logout                    # forget the current team's key (logout TEAM, or --all)

Signing in to a team you already have replaces its key. TRODO_API_KEY overrides all of this, for CI.

With a key (CI, scripts)

export TRODO_API_KEY=trodo_mk_...
trodo whoami

Or save one: trodo login --key trodo_mk_.... Keys are listed, made and revoked in Settings → MCP: the CLI and MCP use the same keys.

VariableDefault
TRODO_API_KEYthe key saved by trodo login
TRODO_API_URLhttps://api.trodo.ai
TRODO_CONFIG~/.trodo/config.json

What a key can do

A key acts as the person who made it, on its own team, with its scopes. Every check the app makes for that person applies: team membership, viewers cannot write, the example project is read-only. A request cannot reach another team, even one the person belongs to.

ScopeCommands
mcp:agent_runstraces, runs, spans, conversations, evals list
mcp:evalsevals get, explain, steps, verdicts, verdict, mark, queue, review, grade, pull, test, push, promote
mcp:datasetsdatasets
mcp:promptsprompts
mcp:issueissues
mcp:workflowsagents

A key made by trodo login has all six. A command whose scope the key lacks fails with missing_scope and the scope's name: run trodo login again for a key that has it.

trodo whoami     # team, person, key prefix and scopes
trodo logout     # forget the current team's key (revoke it in Settings → MCP)

On this page