@agenzo/admin-cli — control plane: authentication, organizations, developers, API keys, settlement accounts, and CLI config. Bearer Token auth (obtained via auth login; credentials stored locally in ~/.agenzo-admin-cli/).
See SKILL.md for shared conventions (behavior rules, --yes, exit codes, API key format, idempotency).
19 commands across 6 nouns. config and the local orgs verbs are pure-local (no network); all others use the stored Bearer Token.
| Noun | Verb | Type | Description |
|---|---|---|---|
auth |
login / logout |
Write | Magic-link sign-in / sign out |
config |
set-host / show / reset-host |
Read/Write | Manage the API host (local only) |
orgs |
get / list / switch / update |
Read/Write | Organization info and active-org switch |
developers |
create / list / get / update |
Read/Write | Manage developers |
keys |
create / list / get / rotate / disable |
Read/Write | Manage API keys |
accounts |
get |
Read | Query a settlement account |
The end-to-end flow starts here, then continues in agenzo-token-cli:
[admin-cli] auth login → developers create → keys create → [token-cli] payment-methods add → payment-tokens create
Ask: --email — MUST ask the user for their email address before executing. Never assume or use a default.
agenzo-admin-cli auth login --email user@example.com- First-time users are auto-registered (prompts for org name)
- Invitation code: If an invitation code is required for new registrations (error
1103), the CLI will promptInvitation code:interactively. MUST ask the user to provide it; do not generate or guess a value. The CLI sends it as theinvitation_codefield and retries registration automatically. - Sends a magic link to the email
- CLI polls until the link is clicked (up to 10 minutes)
- Credentials are stored locally in
~/.agenzo-admin-cli/ auth logoutsigns out of the current organization (you must re-login via magic link to restore the session).
agenzo-admin-cli developers create --developer-name "My Agent" --developer-email agent@example.com- Ask:
--developer-email— MUST ask the user which email to use. If the user declines, fall back to the login email from Step 1. - Returns
developer_id— save it for Step 3. --billing-mode(optional):pay_per_call(default) ormonthly_settlement. Amonthly_settlementdeveloper is auto-provisioned a settlement account (see Settlement Accounts).- One org can have multiple developers
- Same email can only create one developer per org
agenzo-admin-cli keys create --developer-id <developer_id> --key-name "My Key"- Ask:
--key-name— MUST ask the user what name to use. If the user declines, generate a random name (e.g.key-<random-4-chars>). --developer-id: Use the value from Step 2 (do not ask again).--scope(optional): comma-separatedtoken,merchant,payment(default: all three).--yesdefaults to all; otherwise an interactive checkbox is shown. Invalid values fail locally (PARAM_INVALID, exit 1).- Returns the full API key (shown only once!) — remind the user to save it.
- Key format:
sk_<env>_...—sk_prod_in production,sk_test_in test/dev. Do not assumesk_prod_. - Used for all Runtime Plane operations (
agenzo-token-cli,agenzo-merchant-cli).
agenzo-admin-cli orgs get # View current org
agenzo-admin-cli orgs list # List all signed-in orgs
agenzo-admin-cli orgs switch <org_id> # Switch active org
agenzo-admin-cli orgs update --name "New Org Name" # Update org name
agenzo-admin-cli orgs update --email new@example.com # Update org email (requires verification)agenzo-admin-cli developers create --developer-name "My Agent" --developer-email agent@example.com --billing-mode monthly_settlement
agenzo-admin-cli developers list
agenzo-admin-cli developers get <developer_id>
agenzo-admin-cli developers update <developer_id> --name "New Name"
agenzo-admin-cli developers update <developer_id> --email new@example.comagenzo-admin-cli keys create --developer-id <dev_id> --key-name "Prod Key" --scope token,merchant,payment
agenzo-admin-cli keys list --developer-id <dev_id>
agenzo-admin-cli keys get <key_id>
agenzo-admin-cli keys rotate <key_id> # Generate new key value (old one invalidated)
agenzo-admin-cli keys disable <key_id> # Permanently disable key- Keys are bound to a developer. Cards/tokens created with Key A are NOT visible to Key B.
--api-keytakes the full key string (sk_<env>_...), not the key ID.
agenzo-admin-cli accounts get --developer-id <developer_id>- Auto-created when a developer is created with
--billing-mode monthly_settlement. - Returns
account: nullforpay_per_calldevelopers (read-only query; no error). balanceis in minor units, as a string (e.g."3000000"= $30,000.00). Booking a ride inmonthly_settlementmode deducts the fare; cancelling refunds it (see merchant-cli). There is no CLI top-up command.
agenzo-admin-cli config set-host https://agent-dev.agenzo.com # Switch to the test environment (or a profile name, e.g. production)
agenzo-admin-cli config show # Show current host / active org
agenzo-admin-cli config reset-host # Reset host to default (https://agent.everonet.com)| Error | Cause | Fix |
|---|---|---|
Invitation code required (code 1103) |
Registration requires an invitation code | Ask the user for their invitation code at the interactive prompt |
Duplicate key error |
Developer with same email exists | Use developers list to find existing |
email: value is not a valid email address |
Invalid email format | Check email format |