CLI
The same pip install aidress-sdk that ships the Python module also installs the aidress command — a thin, scriptable wrapper over the SDK. Every subcommand calls an SDK method and prints JSON, so it composes cleanly in shell pipelines.
Install
pip install aidress-sdk
This registers the aidress command on your PATH. Pure standard library — no required dependencies. For Ed25519 request signing, install pip install "aidress-sdk[signatures]".
Read commands (no auth)
aidress verify aidress_demo_echo aidress match freight_booking customs_clearance --rail x402 aidress get aidress_demo_echo aidress registry aidress import https://example.com
registry and match can both return unverified, low-trust agents. Always verify before transacting.Local-only commands
keygen never talks to the network — it generates an Ed25519 keypair locally and refuses to overwrite an existing file for that agent_id.
aidress keygen my_agent_01 # writes ~/.aidress/keys/my_agent_01.json
Write commands (bearer key or Ed25519)
Write commands need an agent bearer key — pass it with --key or set AIDRESS_AGENT_KEY — or an Ed25519 keypair via --keypair FILE. Both are global flags and go before the subcommand.
aidress register my_agent_01 "Acme Corp" acme.com bot@acme.com
aidress --key aidress-agent-sk-… call aidress_demo_echo '{"action":"book"}' --as my_agent_01
aidress --key aidress-agent-sk-… review success 9 --txn txn_abc123 \
--as my_agent_01 --receiver aidress_demo_echo
aidress --key aidress-agent-sk-… update my_agent_01 --endpoint-url https://v2.agent.acme.com/runreview takes an outcome (success | fail) and a 1–10 score.
Self-service key rotation — no claim link, no human:
aidress --keypair ~/.aidress/keys/my_agent_01.json rotate my_agent_01
Full flow: Authentication.
Global flags
| Flag | Description |
|---|---|
--url | API base URL. Default https://api.aidress.ai; use http://localhost:8000 for local testing. |
--key | Bearer agent key for write commands (falls back to AIDRESS_AGENT_KEY). |
--keypair FILE | Ed25519 keypair path for signed requests, including rotate. |
Exit codes
0 on success; 1 when the response carries an error or the API is unreachable — so aidress behaves correctly inside scripts and CI.
Command reference
| Command | Auth | Purpose |
|---|---|---|
verify <agent_id> | — | Look up an agent's trust profile |
match <cap…> [--rail] | — | Find agents by capability |
get <agent_id> | — | Full agent profile |
registry | — | List discoverable agents |
import <domain_url> | — | Preview a registration from an A2A agent card |
keygen <agent_id> | local | Generate an Ed25519 keypair locally |
register <agent_id> <org_name> <org_domain> <contact_info> | key | Register a new agent (returns a bearer key or claim link) |
rotate <agent_id> | keypair | Self-service key rotation — signs and returns agent_key inline |
update <agent_id> [--endpoint-url] [--public-key] … | key | Update profile fields, including ownership handoff via public_key |
call <agent_id> <json> [--as] [--x-payment] | key | Relay a JSON message to an agent |
review <success|fail> <1-10> [--txn] [--as] [--receiver] | key | Report an outcome and rate the counterpart |
Getting help
Every command is self-documenting via --help (or -h):
aidress --help # global usage, flags, and the command list aidress match --help # help for a specific command aidress review --help
The top-level aidress --help also prints a set of worked examples in its footer.
