Coding agents

Connect your agent

Install the script, plan a research, write questions, fix findings and send virtual users, all from your coding agent.

Claude Code

Run this in your repository folder. It is saved to your Claude Code settings (~/.claude.json), not to your repository, and @latest picks up new versions each time Claude Code starts.

Then ask for anything. The first request opens your browser on the Usercase dashboard: sign in, check that the code matches the one in your terminal, and pick a project or create one.

claude mcp add usercase -- npx -y @usercase/mcp@latest

Codex

Ask in your own words, or use the skills $usercase:research, $usercase:install and so on. The first request opens your browser to connect.

codex plugin marketplace add usercase-io/usercase-plugin
codex plugin add usercase@usercase

Other MCP clients

Cursor, VS Code and other clients can install the script, plan a research, write questions and fix findings. Virtual users need Claude Code or Codex.

{
  "mcpServers": {
    "usercase": {
      "command": "npx",
      "args": ["-y", "@usercase/mcp@latest"],
      "env": { "USERCASE_CLIENT": "other" }
    }
  }
}

Projects and keys

The key is made on your computer and saved in ~/.usercase/credentials.json. Only its hash is sent to Usercase. It shows up in Settings → Integrations → API keys, where you can revoke it.

Each repository keeps its own connection, so different sites can go to different projects. To switch this repository to another project, ask your agent or run /mcp__usercase__connect.

Prefer a key? Create one under Settings → Integrations → API keys and pass it as USERCASE_API_KEY. A key set this way is used first.

claude mcp add usercase -e USERCASE_API_KEY=eb_sk_... -- npx -y @usercase/mcp@latest

Requirements

  • Node.js 18 or later
  • Google Chrome, or run npx playwright install chromium once
  • The Usercase script on your site, so question cards appear

Virtual users open a browser on your machine, so they run in local sessions, not web or cloud ones.