AutoDevice SDK, CLI, and integrations for JavaScript & TypeScript.
Automate mobile app testing with AutoDevice — run test suites, manage flows, upload builds, and debug failures from code, the command line, or AI agents.
| Package | npm | Description |
|---|---|---|
@autodevice/sdk |
TypeScript client library | |
autodevice |
CLI tool | |
@autodevice/mcp |
MCP server for AI agents | |
@autodevice/skills |
Claude Code skills |
npm install @autodevice/sdkimport { AutoDeviceClient } from "@autodevice/sdk";
const client = new AutoDeviceClient({ apiKey: "sk_live_..." });
// List test suites
const suites = await client.suites.list();
// Run a suite and wait for results
const { run, flowRuns } = await client.suites.runAndWait("suite-id", {
targetId: "target-id",
});
console.log(`Result: ${run.outcome} — ${run.passed_flows} passed, ${run.failed_flows} failed`);npm install -g autodevice
autodevice configure --api-key sk_live_...# List suites
autodevice suites list
# Run tests and wait for results
autodevice suites run <suite-id> --target <target-id> --wait
# Upload a build
autodevice apps upload ./app-release.apk
# Debug a failed run
autodevice flow-runs steps <flow-run-id>Add to your MCP config (e.g., ~/.claude/mcp.json):
{
"mcpServers": {
"autodevice": {
"command": "npx",
"args": ["@autodevice/mcp"],
"env": {
"AUTODEVICE_API_KEY": "sk_live_..."
}
}
}
}npx @autodevice/skills install-skillsAll packages use the same API key. Get yours at autodevice.io.
Priority order:
- Explicit parameter (
apiKeyoption or--api-keyflag) AUTODEVICE_API_KEYenvironment variable~/.autodevice/config.json(set viaautodevice configure)
# Install dependencies
bun install
# Build all packages
bun run build
# Run tests
bun run test
# Typecheck
bun run typecheck