Skip to main content

Agentity CLI — create, inspect, revoke, verify, manifest

Project description

agentity-cli

Command-line interface for the Agentity Protocol. Create agent identities, inspect AIDs, verify signatures, sign requests, and generate provider manifests.

Installation

pip install agentity-cli

Usage

# Create a new agent identity
agentity create --owner "did:agentity:human:alice" \
  --scope "api:read" --scope "api:write" --output agent.json

# Inspect an AID file
agentity inspect agent.json

# Verify signature and expiry
agentity verify agent.json

# Sign an HTTP request
agentity sign --key agent.json \
  --url https://api.example.com/data --method GET

# Generate a provider manifest
agentity manifest --name "My API" --scopes "data:read,data:write" --output manifest.json

Commands

create

Generate an Ed25519 keypair and create a signed Agent Identity Document.

Options:
  --owner TEXT         Owner DID (required)
  --scope TEXT         Scope(s), repeatable
  --ttl INTEGER        TTL in days (default: 30)
  --parent TEXT        Parent DID for delegation
  --depth INTEGER      Delegation depth (default: 0)
  -o, --output TEXT    Output file (default: stdout)

inspect

Parse and display an AID JSON file — DID, owner, scopes, dates, status, delegation, signature validity.

Arguments:
  file                Path to AID JSON file

verify

Verify the AID signature, expiry, and status. Exits with code 0 on success, 1 on failure.

Arguments:
  file                Path to AID JSON file

sign

Sign an HTTP request using a key file. Outputs Agentity-Token, Agentity-Nonce, Agentity-Timestamp headers.

Options:
  --key TEXT           Path to key/AID file (required)
  --url TEXT           Request URL (required)
  --method TEXT        HTTP method (default: GET)
  --body TEXT          Request body string

manifest

Generate a provider manifest JSON file.

Options:
  --name TEXT          Provider name (required)
  --description TEXT   Provider description
  --base-url TEXT      Provider base URL
  --fingerprint TEXT   Provider fingerprint
  --scopes TEXT        Comma-separated scope IDs (--scopes "read,write")
  -o, --output TEXT    Output file (default: stdout)

Output formats

All commands accept --output <file> or pipe to stdout. The inspect and verify commands output human-readable text. The create, sign, and manifest commands output JSON.

License: Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentity_cli-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentity_cli-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file agentity_cli-0.1.2.tar.gz.

File metadata

  • Download URL: agentity_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for agentity_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 202d82156de05e18339305f35408cfd6afa810f8e7021c28f8ae03677bd29f2a
MD5 45f3954769b4cf7e523c3f8692fbdb31
BLAKE2b-256 116c565034b7c0a549d5717a03de1ff19552bc9ba262069563fb08b5e29ef2ca

See more details on using hashes here.

File details

Details for the file agentity_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: agentity_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for agentity_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc87b0f9c661345efb8163a140e34c65f8f89ef5755287607aea6797b060630
MD5 425161e9f2f87fe37693c5e47b0beac8
BLAKE2b-256 567ebee65262475fe17e4157c10a35dbd2037d83c2132442cc439fd9960c16bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page