replay-cli

Record your application to gather performance data and debug issues. It enables users to install Replay ClI, record a session, upload and manage them.

6 stars

Best use case

replay-cli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Record your application to gather performance data and debug issues. It enables users to install Replay ClI, record a session, upload and manage them.

Teams using replay-cli should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/replay-cli/SKILL.md --create-dirs "https://raw.githubusercontent.com/replayio/docs/main/.agents/skills/replay-cli/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/replay-cli/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How replay-cli Compares

Feature / Agentreplay-cliStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Record your application to gather performance data and debug issues. It enables users to install Replay ClI, record a session, upload and manage them.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

## replay-cli

**Description:** Use when the user wants help with Replay CLI commands for recording, uploading, managing recordings, or authentication. Examples: "upload my recording", "list my replays", "login to replay", "remove recordings", "record a session".

**Instructions:**

You are helping the user with the Replay CLI tool. Here is the complete reference:

### Installation

Install Replay CLI globally using your preferred package manager:

```sh
npm i -g replayio
# or
yarn add -g replayio
# or
pnpm i -g replayio
# or
bun i -g replayio
```

### Authentication

Navigate to https://app.replay.io settings page, create your API key and save the API key in the environment variable `REPLAY_API_KEY`.

### Available Commands

| Command              | Arguments    | Options                                                           |
| -------------------- | ------------ | ----------------------------------------------------------------- |
| `info`               | –            | –                                                                 |
| `list`               | –            | `--json`                                                          |
| `login`              | –            | –                                                                 |
| `logout`             | –            | –                                                                 |
| `record`             | `[url]`      | –                                                                 |
| `remove`             | `[ids...]`   | `-a`, `--all`                                                     |
| `update`             | –            | –                                                                 |
| `upload`             | `[ids...]`   | –                                                                 |
| `upload-source-maps` | `<paths...>` | `-g`, `--group`, `-x`, `--extensions`, `-i`, `--ignore`, `--root` |
| `help`               | –            | –                                                                 |

Pass `-h` or `--help` to any command for more info.

### Command Details

#### `replayio info`

Displays information about installed Replay dependencies including CLI version and Replay Browser info.

#### `replayio list`

Lists all local recordings with their ID, host, date, duration, and status (Uploaded/Recorded).

- `--json` - prints full list with details

#### `replayio login`

Opens browser to log in to your Replay account. Creates account if needed.

#### `replayio logout`

Logs out from Replay account. Does NOT invalidate API keys in environment variables.

#### `replayio record [url]`

Launches Replay Browser and starts recording the given URL. Default URL is `about:blank`.

- Recording continues until browser is closed
- If not prompted differently, agent should upload just the main URL
- Automatically checks for browser/CLI updates

#### `replayio remove [ids...]`

Removes one or more recordings.

- Without arguments: opens interactive menu to select recordings
- With IDs: removes specified recordings
- `-a`, `--all` - removes all local recordings

#### `replayio update`

Updates the Replay Browser only. CLI updates are done via npm/yarn/pnpm/bun.

#### `replayio upload [ids...]`

Uploads one or more recordings.

- Without arguments: opens interactive menu to select recordings
- With IDs: uploads specified recordings
- Returns URL to view recording after upload

#### `replayio upload-source-maps <paths...>`

Uploads source maps for a Workspace.

- `-g`, `--group <name>` - group name (e.g., commit SHA or release version)
- `-x`, `--extensions <exts>` - file extensions to process (default: ".js,.map")
- `-i`, `--ignore <pattern>` - ignore files matching pattern
- `--root <dirname>` - base directory for relative paths

#### `replayio help`

Displays all available commands and descriptions.

## Core Workflow

**Record and upload a session:**

```sh
replayio record https://myapp.com
# After recording, you'll be prompted to upload
```

**Upload a specific recording:**
If upload wasn’t done automatically after recording, agent should upload the recording manually using the recording ID from previous step

```sh
replayio upload <recording-id>
```

**Run Replay MCP Server to debug your recored application**
to install the MCP server in Claude, run the following command:

```
claude --mcp-config "{
    "mcpServers": {
      "replay": {
        "type": "http",
        "url": "https://dispatch.replay.io/nut/mcp",
        "headers": {
          "Authorization": "${REPLAY_API_KEY}"
        }
      }
    }
  }"
```

Related Skills

replay-playwright

6
from replayio/docs

Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.

replay-mcp

6
from replayio/docs

Use Replay MCP to inspect the contents of https://replay.io recordings.

replay-cypress

6
from replayio/docs

Set up and configure Replay for recording Cypress tests with time-travel debugging.

world-replay-buffer

16
from plurigrid/asi

Maximally snapshotted replay buffer with DuckLake embedding VSS and moments of interaction for world-transition storage

replay

10
from raddue/crucible

Resume interrupted pipelines from dispatch manifests, or replay historical pipelines with template mutations for A/B experimentation. Triggers on /replay, 'resume pipeline', 'replay build', 'A/B test templates'.

render-daily-replay

9
from cartridge-gg/nums

Auto-render a Remotion video replay of a Nums game on Mainnet. Resolves the target `gameId` from Torii (best reward of the day OR best score of the day, OR a specific gameId the user provides), silently auto-fetches the current NUMS price from Ekubo, then runs `pnpm remotion:render:game` with the right props. Use when the user asks to render today's top game, the daily winner, the biggest reward, the highest score, or any specific gameId, without having to assemble the render command by hand.

nums-remotion-replay

9
from cartridge-gg/nums

Project-specific skill for the Nums Remotion package that generates game replay videos by reusing the existing client React components. Covers the cross-package webpack setup, client-component overrides, Torii data fetching, font loading, render flow quirks, and hosting. Use when working on `remotion/` or the `SlidingNumber` component, adding new compositions, debugging font/animation issues, or setting up hosting for the Remotion Studio. Pairs with the generic `remotion-best-practices` skill.

posthog-replay-analysis

8
from stevengonsalvez/agents-in-a-box

Decode and analyse PostHog session replay recordings programmatically via the API. Use when investigating a user-reported incident (crash, infinite loop, unexpected navigation) where a PostHog session replay exists, and you want to extract the URL sequence, network request timeline, console logs, or DOM state WITHOUT opening the replay UI. Especially valuable when diagnosing iOS Safari/WebKit crashes ("A problem repeatedly occurred"), request storms, or any bug where the replay UI can't be scripted. Bypasses the broken `rrvideo` npm packages with a direct decode-and-chart approach.

proxy-replay

7
from heldernoid/agentic-build-templates

Replay recorded HTTP/HTTPS traffic using dev-proxy-recorder. Covers starting replay mode, selecting sessions, miss handling, and switching between record and replay.

swe-cli-skills

12
from SylphAI-Inc/skills

Senior engineer CLI expertise for AI agents — workflows, safety guardrails, gotchas, and anti-patterns across cloud, IaC, containers, databases, dev tools, and platforms

DevOps & Infrastructure

PicoClaw Fleet

11
from EricGrill/agents-skills-plugins

Orchestrate a fleet of remote PicoClaw workers over SSH for fast, ephemeral one-shot tasks.

DevOps & Infrastructure

VibeCollab — Setup Instructions for AI Assistants

9
from flashpoint493/VibeCollab

You are helping a user set up VibeCollab in their project.

Workflow & Productivity