Skip to main content

opm register-agent

Register your own security agent. Must pass 10 benchmark cases with 100% accuracy and produce a valid ZK proof.

Usage

Process

  1. Validate — Checks agent name, model, env vars
  2. Benchmark — Sends 10 labeled cases in a single LLM call (3 clean, 7 malicious)
  3. ZK proof — Generates proof of 100% accuracy without revealing test data
  4. 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.