Step 1: Install and sign in
Install the CLI globally and run the one-shot onboarding:testsprite setup prompts for your API key, verifies it, and installs the TestSprite agent skills (verification loop + onboarding) into your agent’s project configuration. Run it once per project.
For CI or non-interactive environments:
Step 2: Find your project
List the projects already on your account:The CLI only supports public
http:// or https:// URLs. For localhost targets, use the MCP Server, which owns the tunnel that exposes your local app to the cloud runner.Step 3: Create and run a test
Supply a plan file that describes the behavior to verify. The--plan-from flag accepts a JSON file with projectId, type, name, and a planSteps[] array. Then --run --wait triggers a real cloud run and blocks until the verdict:
--output json shape is a stable contract you can parse.
Step 4: When it fails, get the bundle
First, get a one-screen triage card to orient yourself:snapshotId. Your agent reads the bundle and has everything it needs to fix the code without another round trip.
test failure get always fetches the latest failure for the test. If multiple runs are in flight at once, use testsprite test artifact get <run-id> to pin the bundle to a specific run by its runId.Step 5: Fix and rerun
After editing the code, replay the test cheaply. Frontend reruns replay the saved script — no credits charged for a verbatim pass:Auto-heal is on by default and uses a small amount of credit only when it actually repairs a drifted step — see Rerun & Auto-Heal.
Step 6: Let your agent drive it
Install the TestSprite agent skills into your agent’s project.testsprite setup already did this, but you can re-run the agent install step standalone for any target:
Quickstart for Coding Agents
The agent-first walkthrough: what the skills do, what to say to your agent, and how the loop runs without you
Agent Integration
All eight supported agent targets (claude, codex, cursor, cline, antigravity, kiro, windsurf, copilot) and how the skills work
Where to Go Next
Creating Tests
Plan files, code files, batch create, and dependency authoring
Running Tests
Run, wait, run —all wave batches, and the credits model
Agent Integration
All eight agent targets and how the skill loop works
Command Reference
Every command, flag, and exit code in one place