testsprite-cli
Official TestSprite CLI — AI-powered automated testing from your terminal
TestSprite CLI is an agent skill that enables AI coding agents to verify their own code changes through automated testing. It installs verification capabilities into popular coding agents (Claude Code, Cursor, Cline, Windsurf, and others) and provides commands for creating, running, and triaging frontend and backend tests against live applications in the cloud. The tool delivers test failures as self-contained bundles that agents can parse and act on, creating a feedback loop where agents fix their own bugs before deployment. Proven on the CoderCup leaderboard, it helped the cheapest model achieve 89% correctness by adding verification to the coding workflow.
Key Features
Use Cases
- 01Enabling Claude Code or Cursor to verify every code change by creating and running tests automatically
- 02Building a regression suite as coding agents ship features, banking every passing test for future reruns
- 03Triaging test failures in CI by downloading failure bundles with screenshots and recommended fixes
- 04Generating initial test coverage by having TestSprite explore a live app and propose test cases
- 05Running scheduled test suites across multiple projects with environment-specific configurations
- 06Stabilizing flaky tests by replaying them multiple times and scoring reliability before deployment
Related Skills
View moresuperpowers
An agentic skills framework & software development methodology that works.
skills
Skills for Real Engineers. Straight from my .agents directory.
skills
Public repository for Agent Skills
ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
testsprite-cli — FAQ
What is TestSprite CLI and what does it do?+
TestSprite CLI is an agent skill that gives AI coding agents the ability to create, run, and triage automated tests against live web apps and APIs. It installs verification capabilities into coding agents so they can test their own code changes and fix failures autonomously.
How do I install TestSprite CLI for my coding agent?+
Install globally with npm (npm install -g @testsprite/testsprite-cli), then run 'testsprite setup' which auto-detects your coding agents and installs the verification skill for them. Requires Node.js 20.19+, 22.13+, or 24+.
Which AI coding agents work with TestSprite CLI?+
It supports Claude Code, Cursor, Cline, Windsurf, Antigravity, Kiro, GitHub Copilot, and Codex. The setup command detects which agents you use and installs skills for all of them automatically.
Do I need a TestSprite API key?+
Yes, you need an API key from testsprite.com. The 'testsprite setup' command prompts for it, verifies it, and stores it in your credentials file. You can also set TESTSPRITE_API_KEY as an environment variable for CI/CD.
Is TestSprite CLI free to use?+
The CLI itself is open source under Apache 2.0, but test execution uses a credit-based billing model. Frontend tests cost 0.5 credits per run, backend tests cost 0.2 credits, and test plan generation spends credits per stage.
What are the prerequisites for running TestSprite CLI?+
You need Node.js version 20.19+, 22.13+, or 24+, and a TestSprite API key from testsprite.com. The CLI handles all other dependencies including browser orchestration in the cloud.
How do I install testsprite-cli?+
Open the source repository on GitHub and follow its README. testsprite-cli is a skill — MCP Agents Market links you directly to the official repo.
Is testsprite-cli free?+
testsprite-cli is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.