The Issuer CLI tool provides identity management capabilities for the AGNTCY Internet of Agents.
It allows you to create and manage cryptographic keys, register as an issuer, generate metadata for identities, issue badges for Agent and MCP Server identities, and verify badges for existing identities.
To run or build the CLI locally, you need to have the following installed:
- Golang 1.24 or later
To install the latest version of the CLI, you can use the following command:
go install github.com/agntcy/identity/cmd/issuer@latest && \
ln -s $(go env GOPATH)/bin/issuer $(go env GOPATH)/bin/identity
The CLI follows a hierarchical command structure:
identity [command] [subcommand] [flags]- vault: Manage cryptographic vaults and keys
- issuer: Register and manage issuer configurations
- metadata: Generate and manage metadata for identities
- badge: Issue and publish badges for identities
- verify: Verify identity badges
- config: Display the current configuration context
# Configure a vault to store cryptographic keys
identity vault connect file -f ~/.identity/vault.json -v "My Vault"
# Generate a new key pair and store it in the vault
identity vault key generateUsing an Identity Provider (IdP):
identity issuer register -o "My Organization" \
-c "client-id" -s "client-secret" -u "https://idp.example.com"Without an Identity Provider (IdP):
identity issuer register -o "My Organization" \
-n "common-name"Note
This will create a new issuer configuration in the specified vault. Without an Identity Provider (IdP), the provided common name will not be verified and the issuer will be registered as a self-signed issuer.
Using an Identity Provider (IdP):
identity metadata generate \
-c "client-id" -s "client-secret" -u "https://idp.example.com"Without an Identity Provider (IdP):
identity metadata generateidentity badge issue [type] [options]You can issue badges for different types content:
# OASF Files - https://schema.oasf.agntcy.org/objects/agent
identity badge issue oasf -f /path/to/oasf_content.json
# A2A Agent Cards - https://google.github.io/A2A/tutorials/python/3-agent-skills-and-card/#agent-card
identity badge issue a2a -u http://localhost:9091/.well-known/agent.json
# MCP Servers - (https://github.com/modelcontextprotocol/servers))
identity badge issue mcp -u http://localhost:9090identity badge publishList existing vaults:
identity vault listList existing keys:
identity vault key listShow details of an issuer:
identity issuer show -i [issuer-id]Load a different metadata configuration:
identity metadata load -m [metadata-id]View current configuration:
identity configVerify a list of badges from a file:
identity verify -f /path/to/badges.jsonFor more detailed documentation on each command:
identity [command] --helpFor a full command overview:
identity --helpTo build the CLI from source:
go build -o identity cmd/issuer/main.goThen move the binary to a location in your PATH (optional):
mv identity /usr/local/bin/This will allow you to run the CLI from anywhere in your terminal with the command identity.
You can also run the CLI directly without building and installing it. This is useful for testing or development purposes:
go run cmd/issuer/main.go