plurai SDK is the client side of Plurai Simulation. It runs your harness against the mock environment,
drives each scenario turn by turn, and moves data to the Plurai backend after applying your anonymization
posture locally.
If you use the plugin, you already use the SDK: every flow calls it from your agent’s virtual environment. You
don’t install it yourself: the first Plurai command installs the version the plugin was tested with into your
project’s environment, after asking once. You never call it by hand for normal use.
What the SDK contains
When to use the SDK directly
Use the SDK on its own when:- You run the suite in CI. Call
plurai-run-simulationwith your scenario set and eval set ids, and fail the build on the result. See Run in CI. - You maintain your own harness. Write or edit
simulate.pyagainst the harness contract. - You script data delivery. Export traces or a corpus with
plurai ingest-*, preview it with--plan-only, and check the audit log, without a coding agent in the loop.
Sign in
The SDK uses the login the plugin saved. To sign in on its own, run:~/.plurai/credentials.json. The key is never shown. For CI or a
machine without a browser, export a key created in the Plurai dashboard, with the backend address Plurai gives you, instead:
Stability contract
These stay compatible within a major version:- the names in
plurai.__all__and inplurai.observability.__all__, - the flags of the three command lines:
plurai,plurai-run-simulationandplurai-scan-contract, - the exit codes,
- the credentials file,
~/.plurai/credentials.json, - the
PLURAI_*environment variable names, - the keys
plurai capabilitiesprints.
plurai.observability submodules and the run files the plugin reads (run_summary.json, .last_run). The
API reference lists exactly the supported names.
Versions and updates
The plugin pins the exact SDK version it was tested with. To move to a new SDK version, update the plugin. Don’t upgrade the SDK on its own unless a command asks you to.Get help
Open an issue on the SDK’s GitHub page and paste the output of:pip install -v plurai-simulation-sdk, python --version and pip --version instead.
Never paste ~/.plurai/credentials.json or a token.
Next steps
Install the SDK
Installed for you by the plugin, or from PyPI.
Run simulations
Use
plurai-run-simulation directly.