Skip to content

IDProva launches April 7 — Registry packages coming at launch. Build from source now.

CLI Usage

The idprova CLI is the fastest way to work with the IDProva protocol. Generate keys, create agent identities, issue delegation tokens, inspect and verify tokens, and check audit receipt integrity — all from your terminal.

Terminal window
cargo install idprova-cli
  1. Generate a keypair

    Terminal window
    idprova keygen --output ~/.idprova/keys/alice.key

    Outputs the hex-encoded secret key and multibase public key.

  2. Create an AID

    Terminal window
    idprova aid create \
    --id "did:idprova:example.com:my-agent" \
    --name "My Agent" \
    --controller "did:idprova:example.com:alice" \
    --model "anthropic/claude-opus-4" \
    --runtime "custom/v1.0" \
    --key ~/.idprova/keys/alice.key

    Outputs the signed AID (W3C DID Document) as JSON.

  3. Verify the AID

    Terminal window
    idprova aid verify my-agent-aid.json

    Validates the document structure, key formats, and metadata fields.

Terminal window
# Issue a scoped delegation token (24 hour expiry)
idprova dat issue \
--issuer "did:idprova:example.com:alice" \
--subject "did:idprova:example.com:my-agent" \
--scope "mcp:tool:*:read,mcp:resource:docs:write" \
--expires-in "24h" \
--key ~/.idprova/keys/alice.key
# Verify a DAT (checks timing and claims)
idprova dat verify "eyJhbGciOiJFZERTQSIs..."
# Inspect a DAT without verifying (decode and pretty-print)
idprova dat inspect "eyJhbGciOiJFZERTQSIs..."
Terminal window
# Verify the hash chain integrity of a receipt log
idprova receipt verify receipts.jsonl
# Show receipt statistics (action types, entry counts)
idprova receipt stats receipts.jsonl
CommandDescription
idprova keygenGenerate an Ed25519 keypair
idprova aid createBuild and sign an AID document
idprova aid verifyValidate an AID from a JSON file
idprova aid resolveResolve an AID from a registry
idprova dat issueIssue a signed delegation token
idprova dat verifyVerify DAT timing and claims
idprova dat inspectDecode and pretty-print a DAT
idprova receipt verifyVerify receipt hash chain integrity
idprova receipt statsShow receipt log statistics

See CLI Commands Reference for full option documentation.

VariableDefaultDescription
IDPROVA_REGISTRYregistry.idprova.devRegistry server URL
IDPROVA_KEY_DIR~/.idprova/keys/Default key storage directory

The CLI works well in CI pipelines for automated identity and token management:

# GitHub Actions example
- name: Verify agent identity
run: idprova aid verify agent-identity.json
- name: Verify delegation chain
run: idprova dat verify "$DAT_TOKEN"
- name: Check receipt integrity
run: idprova receipt verify receipts.jsonl