Signing in
~/.testorim/config.json with 0600 permissions. In CI, set
TESTORIM_API_KEY in the environment instead. It takes precedence over the
stored file.
Mint a key under
Settings → API keys. A key
runs tests in the workspace it was created in.
Commands
testorim init creates a .testorim.json so you can give saved procedures
short aliases and run them by name: testorim run checkout. It will not
overwrite an existing file unless you pass --force.
run prints the run’s page address, a status line as the run moves, the
report when it ends, and a summary line with the verdict and the step counts.
testorim mcp (version 0.3.0 and later) starts an MCP server so a coding
agent such as Claude Code, Codex or Cursor can run tests and read verdicts.
Setup for each agent is on the MCP server page.
The same package is a JavaScript and TypeScript library
(import { Testorim } from "@testorim/cli") for Playwright Test, Vitest
and Jest. Working in Python? The testorim package
runs the same tests from code and from pytest.
--expectation applies to ad-hoc tests. A saved procedure keeps its own
intent: a procedure saved from a negative test replays as one.Flags
The CLI does not pick an environment. A run it
starts uses the project’s default environment when there is one and you did
not pass
--base-url. To run against another environment, call
POST /api/runs/trigger with environmentId.
A saved procedure that types a stored password refuses a --base-url on a
host that is not the project’s own or one of its environments. Add the host
as an environment instead.
Exit codes
That is what makes the CLI a pipeline step: a failing test fails the build,
a run that needs a human stops it with its own code, and an infrastructure
problem is distinguishable from a real failure.
When the API refuses a run (no plan, a quota, your concurrent runs all in
use), the CLI prints the error, its
code and, where there is something to
buy, an upgrade link. With --json the same fields are printed as JSON.
In GitHub Actions
For a repository whose pull requests should always be tested, the
GitHub integration is less work, because it builds
the preview URL itself and reports in the PR.
Configuration precedence
- CLI flags
TESTORIM_API_KEY/TESTORIM_API_URLin the environment~/.testorim/config.json

