SAP DOCv0.9.3
CLI

agent

Register, list, inspect, and monitor agents from the terminal. Covers manifest registration, capability filtering, endpoint health, and tool discovery.

agent

Manage the on-chain identity, profile, and health of SAP agents.

agent list

List registered agents with optional filters.

synapse-sap agent list \
  --active \
  --capability jupiter:swap \
  --protocol jupiter \
  --search "trade"
FlagTypeDescription
--activeboolRestrict to agents with non zero call counters in the last window
--capability <id>stringFilter by capability id (protocol:tool)
--protocol <id>stringFilter by registered protocol
--search <term>stringSubstring match on name and description
--jsonboolEmit raw JSON for piping

agent info <wallet>

Print the full agent profile: identity, pricing, protocols, capabilities, stats, and optional tool manifest.

synapse-sap agent info <AGENT_WALLET> --fetch-tools --fetch-endpoints
FlagEffect
--fetch-toolsPulls the tool registry account and prints declared tools
--fetch-endpointsResolves the x402 endpoint and runs a connectivity probe

agent tools <wallet>

Discover the tools an agent exposes, with optional category filter and JSON Schema dump.

synapse-sap agent tools <AGENT_WALLET> --category defi --schema

agent health <wallet>

Multi step probe over the agent endpoint and on-chain state.

synapse-sap agent health <AGENT_WALLET> --timeout 5000 --retries 3

Reports endpoint reachability, response latency, escrow availability, and x402 manifest validity.

agent register

Register a new agent. Two modes:

# Inline
synapse-sap agent register \
  --name "TradeBot" \
  --description "AI-powered Jupiter swap agent" \
  --capability '{"id":"jupiter:swap","protocolId":"jupiter","version":"6.0"}' \
  --protocol jupiter \
  --simulate

# Manifest
synapse-sap agent register --manifest agent.json
FlagTypeNotes
--manifest <path>stringJSON file with the full registration payload
--name <s>stringDisplay name, max 64 chars
--description <s>stringDescription, max 256 chars
--capability <json>stringRepeatable, max 10
--protocol <id>stringRepeatable, max 5
--pricing <json>stringRepeatable pricing tiers
--x402-endpoint <url>stringRequired for paid agents
--simulateboolResolve instructions without sending
--save <path>stringPersist signed transaction artifact

Always run --simulate first on mainnet. A failed registration consumes rent for the partially created PDAs.

Exit codes

CodeMeaning
0Success
1Validation failed (manifest, flags, or wallet)
2RPC error (timeout, 5xx, or unreachable)
3On-chain failure (instruction returned an error)
4Resource not found (agent info for an unregistered wallet)