---
title: "Quickstart · Promigence"
description: "Install the promigence CLI from npm, build a verified snapshot of your repository, fork 20 warm environments, and read the validity report, in about ten minutes."
url: "https://www.promigence.ai/docs/quickstart"
site: "Promigence"
---

# From nothing to 20 verified episodes

Five steps, about ten minutes, most of it the first snapshot build. Your free credit covers a first run like this, and there is no card to add.

## Install and sign up

Install the CLI from npm: one package, the CLI and the TypeScript SDK together. `promigence signup` opens your browser: a new account sees a short welcome, and then you authorize the CLI, which stores your API key for you (`promigence login` signs in to an account you already have). Then claim your free credit in the browser: until it is claimed, a first run stops with `credit_unclaimed`. A key you already have is best read from an environment variable or stdin (`promigence auth login --from-env VAR`): a key on a command line lands in shell history and every process listing. Our servers are on the US East Coast. From far away, each call adds your network's round trip.

Sign-up takes an invite code: [request access](https://www.promigence.ai/?ref=docs#request-access), and we email you one with $100 of free credit.

Terminal

```
npm i -g promigence
promigence signup                        # in your browser: sign up, then authorize the CLI
promigence credits claim                 # claim your free credit
promigence doctor
```

## Build a verified snapshot

Start from an image with git and your toolchain, clone your repository at a pinned commit, add the setup steps and a verify command. If verify does not exit zero, nothing is stored. Either way the build is billed per second at its size's rate for the time it runs, at most an hour, so a small build costs at most $0.17; a build that fails on our side is not billed. Pin the commit: a snapshot built from a moving ref is not reproducible.

Terminal

```
promigence snapshot create \
  --image node:22 \
  --setup "git clone https://github.com/<you>/<repo> /work/repo && git -C /work/repo checkout <40-char sha>" \
  --setup "cd /work/repo && npm ci" \
  --verify "cd /work/repo && npm test" \
  --tier small --alias myapp --wait --wait-timeout 10m
```

## Price the run before you start it

A quote is a ceiling, not an estimate: every sandbox running for its whole timeout. --cap enforces it: a run that would exceed the cap is refused outright, before anything starts.

Terminal

```
promigence run quote --snapshot myapp --count 20 --timeout 15m
# → 20 × small (2 vCPU, 4 GiB) for up to 15 minutes each
# → max cost  $0.83
```

## Fork, execute, report

One command forks N environments, runs your command in each, and prints the validity report. A new account runs 20 sandboxes at once.

Terminal

```
promigence run \
  --snapshot myapp \
  --count 20 --cap 1 \
  -- sh -c "cd /work/repo && npm test"

# → the validity report: completed, task failures, environment failures, and the cost
```

## Read the report, open a failure

A task failure is yours: your command exited non-zero. An environment failure is ours: it never counts against your agent. It is not billed before the sandbox reaches you; after that, when our side shows the failure was ours, the work since its last snapshot (or since it started), up to 24 hours, is credited back. An environment failure can be replayed, as a new sandbox billed like any other, and any failure can be reproduced from the command the report prints with --repro.

Terminal

```
promigence run report <run_id> --sandboxes failed
promigence run report <run_id> --sandbox <sid> --repro   # the command that reproduces it
```

## Next

- [Every command and flag](https://www.promigence.ai/docs/cli)
- [Do the same thing from TypeScript](https://www.promigence.ai/docs/sdk)
- [What each error code means and whether it was billed](https://www.promigence.ai/docs/errors)
