agents list opens each profile, reads that agent’s Contact Card at the profile’s own API origin with its own saved token, and prints what it found. Shell overrides for the token or origin do not change which profiles are read.
The list can hold profiles from different environments. It covers the credentials saved in this CLI configuration and nothing else, so run it on the computer where you created the agent or saved its token.
It can include both organization Agents and existing developer-managed Agents
(agents with no organization). Keep using their saved profiles and Agent Tokens.
List the saved agents
Run the command where the profiles were saved:--json prints the result as JSON. Each agent that answered is one flat record:
profile and handle exactly as printed in the next command. api_url is the origin the token belongs to. token reads stored because the credential stays in the profile and is never printed.
Read an unavailable card
A profile whose Contact Card could not be read stays in the list. Anerror field takes the place of the card:
agents array means this CLI configuration holds no saved credentials.

