Virtual users
Virtual users visit your site in a real browser on your machine, look around with their own goal, and answer the question cards they meet.
Run a research
Your agent reads your code to understand what the site is and who it is for, then casts a handful of people. The AI runs on your own Claude Code or Codex subscription. Each person only sees the screen: your agent may read your code to plan, but the visitors cannot.
The first time, Claude Code installs the visitor agent into ~/.claude/agents/ (not your repository) and may ask you to restart it. Then your agent:
- checks the site once: whether the Usercase script is running, whether a firewall blocks it, what the first screen shows
- reads your repository to understand the site
- casts the people and saves them to
.usercase/people.json, where you can edit them - sends one visitor per person, up to 5 at a time
- summarizes what happened
When a visit ends, it is sent to Visits in your dashboard. If the upload fails, it is kept in .usercase/outbox.jsonl and sent with the next one.
Research https://staging.example.com with 5 virtual users
/mcp__usercase__research https://staging.example.com 5
$usercase:research https://staging.example.com 5
How many people
The number is how many people visit in total (default 5). Above 5, your agent works in rounds of 5: you approve the first list, and after that it casts new people unlike the earlier ones, round after round. With unlimited it keeps going until you press Esc. Every visit uses your Claude Code or Codex usage.
Research https://staging.example.com with 30 virtual users
/mcp__usercase__research https://staging.example.com 30 /mcp__usercase__research https://staging.example.com unlimited
Focus on one part of the site
Name a part of the site, and your agent casts only people who come for it.
Research the checkout on https://staging.example.com with 5 virtual users
/mcp__usercase__research https://staging.example.com 5 focus=checkout
Take part in a research
Give a research id from your dashboard and the people take part in it instead of exploring freely. They accept its invitation and do its tasks from the study panel, the way invited participants do. The research must be live.
If the research is moderated by voice, the people read the moderator’s captions and answer out loud with a voice already on your computer (Windows voices, macOS say or espeak). No outside voice service is used.
Have 10 virtual users take part in Usercase research <research id> on https://staging.example.com
/mcp__usercase__research https://staging.example.com 10 research=<research id>
Sites behind a sign-in
Ask your agent to sign in first. It opens Chrome (or Edge) with a fresh, empty profile and you sign in with a demo account, once per account. Google and other sign-in buttons work there.
- Your usual browser profile is never touched, and the temporary profile is deleted afterwards.
- Only the sessions are saved (
.usercase/sessions/), never the password. - Several accounts keep the signed-in visitors from all sharing one history.
- Your agent checks that each sign-in worked, and asks you to sign in again only when one has expired.
What visitors will and won’t do
- They identify themselves on every request (see Production sites), and their answers are counted separately from real visitors. This cannot be turned off.
- By default they don’t write to your site: only
GET,HEADandOPTIONSrequests are sent. They may still press Post, Save or Like like a person would, but nothing reaches your site, and the visitor is told it was not sent. - Before the first round your agent asks whether to send those for real, for a test or staging site. Your answer is kept in
.usercase/settings.json. With writes sent, signed-in visitors use the demo account as their own, so use demo accounts only. - They stay on your site and block analytics tools such as Google Analytics and Hotjar.
- They never pay, delete, connect a wallet, sign out or change a password, and never type into personal fields such as email or phone.
- They stop when blocked. They do not solve CAPTCHAs or get around bot protection.
When the tool cannot do something on your site or misreads the screen, a diagnostic is sent to Usercase so the tool gets better: what failed, the page path, the HTML around the element and a screenshot of that moment. Only the Usercase team sees it, and it is kept for 30 days. Turn it off with USERCASE_DIAGNOSTICS=off.