Signing in
From your repository, run setup and enter the key at the masked prompt. Setup verifies the key and installs the verification skill for the coding agents it detects. Usetestsprite setup --no-agent for credentials only.
TESTSPRITE_API_KEY through your CI secret store. Commands can use it directly. To run setup noninteractively with that key, use testsprite setup --from-env --yes --no-agent. Keep the secret in the environment so it stays out of shell history.
Checking who you are
auth status shows the user, key ID, endpoint, API environment, and granted scopes. When available, org: shows the active workspace, plan, and role, and org binding: identifies the workspace tied to this key. Check the active workspace before running a suite. usage shows its balance.
Profiles
Store keys for different workspaces in separate profiles.--profile chooses the profile for one command. TESTSPRITE_PROFILE sets it for a shell. The default profile is named default.
~/.testsprite/credentials with mode 0600. TESTSPRITE_API_KEY overrides the stored key even when you choose a named profile. If switching profiles shows the same workspace, check whether the variable is set. Configuration
Scopes
auth status lists the scopes granted to your key. Some operations need more than one. For example, waiting reads results, and local frontend execution also opens a tunnel.
When a command returns
AUTH_FORBIDDEN, check details.requiredScope and your workspace role. A workspace Admin or Owner can check your access. Members and Roles
Signing out
TESTSPRITE_API_KEY there as well.