/simulate.
Requirements
- Claude Code on macOS, Linux or Windows (PowerShell, with Git for Windows and a python.org Python).
- A browser, to sign in to Plurai once.
python3on yourPATH, for the plugin’s own scripts.- Python 3.12 or newer for your agent’s environment. The plugin installs the
pluraiSDK there for you. - Node 22.15 or newer, if your agent is written in Node. See Node agents.
claude from your agent’s folder or a folder above it. From anywhere else, the report stays on your machine and you won’t get a private link.
Install
1
Add the marketplace and install the plugin
In a Claude Code session, run:Install it at project scope. The install is then recorded in the project’s
.claude/settings.json, so
teammates get the same plugin, and its commands don’t load in projects that never use them. From your shell:2
Restart Claude Code
Claude Code reads the plugin’s skills, hooks and MCP server once, at session start. Exit (
/exit) and start
claude again.3
Run your first flow
Sign in again or check your login
Run/harness-setup. It tells you whether you’re signed in, and signs you in when you aren’t. A saved login whose
key has expired counts as signed out, so the next command signs you in again.
To sign out from a terminal, run plurai logout in your agent’s environment. It revokes the key and removes it from
your machine.
First run: a read permission prompt
The plugin is installed outside your project, so the first time a command reads the plugin’s own reference files, Claude Code asks “Read outside the working directories … Allow this read?”. That’s expected:- Auto mode: answer Yes, and keep allowing any reads outside the working directories. It won’t ask again.
- Default mode: answer
Yes, allow reading from <folder> during this session. It asks once per skill in each session.
A machine without a browser
- Create a key under API keys in the web app. Plurai gives you the backend address with your account.
-
Save the key from a terminal of your own. It asks for the key with echo off and saves it privately in
~/.plurai/credentials.json: -
Claude Code reads the backend address from its launch environment, so export it there too and restart Claude Code:
PLURAI_URL and PLURAI_TOKEN instead. See Environment variables.
Update the plugin
Update the plugin from the/plugin menu, or from your shell:
For admins: managed settings
If your organization manages Claude Code settings, two of them decide whether the plugin works:allowManagedHooksOnly: enable the plugin in your managed settings ("enabledPlugins": {"plurai-simulation@<marketplace>": true}, with its marketplace underextraKnownMarketplaces). Otherwise it runs in a limited mode with some automatic checks off.allowManagedMcpServersOnly: admit Plurai’s server by URL inallowedMcpServers:{"serverUrl": "https://*.plurai.ai/*"}and{"serverUrl": "https://*.plurai.uk/*"}. AserverNameentry can’t admit it.
Uninstall
Run/plurai-uninstall to remove what the plugin created in your project and home folder, then remove the plugin:
--scope project if you installed it for a project. The SDK stays in your agent’s environment; remove it with
pip uninstall plurai-simulation-sdk plurai-mockenv if you no longer need it.
Auto permission mode
The plugin’s flows run under Claude Code’s auto mode without extra configuration. If the permission classifier ever blocks one of the plugin’s scripts, add anautoMode.allow entry. See
Permissions.
Next steps
Quickstart
Simulate your first agent.
Scan your agent
The first stage, in detail.