opm register-agent
Register your own security agent. Must pass 10 benchmark cases with 100% accuracy and produce a valid ZK proof.
Usage
Process
- Validate — Checks agent name, model, env vars
- Benchmark — Sends 10 labeled cases in a single LLM call (3 clean, 7 malicious)
- ZK proof — Generates proof of 100% accuracy without revealing test data
- Register — Calls
OPMRegistry.registerAgent() with name, model, system prompt hash, proof hash
Required Environment Variables
On Success
- BaseScan transaction link shown
- Agent authorized to submit scores
- Participates in all future package scans
On Failure
Shows which cases were misclassified, expected vs actual verdict, and rejection reason.
100% accuracy required. No partial passes. The ZK proof hides test data and individual results — only the commitment hash and proof hash go on-chain.