Loading...
Loading...
Manage Zerion agent tokens and security policies — the primitives for autonomous trading and signing. Create / list / use / revoke agent tokens; create / list / show / delete policies (chain locks, allowlists, transfer/approval gates, expiry). Use whenever the user asks to set up an agent token, configure a policy, or enable autonomous trading. Required by `zerion-trading` and `zerion-sign`.
npx skill4agent add zeriontech/zerion-ai zerion-agent-managementzerioncommand not foundnpm install -g zerion-clizerionzerion-tradingzerion-sign| Operation | Type | Notes |
|---|---|---|
| Agent | Read-only or config-only. Safe autonomously. |
| Manual | Require passphrase or confirmation. Humans must run these directly. |
zerion agent list-tokens # Tokens, attached policies, active flag, wallet binding
zerion agent list-policies # All policies with rules summary
zerion agent show-policy <id> # Full policy details
zerion agent use-token --wallet <wallet> # Switch the active token (config edit, no passphrase)# Interactive policy picker (recommended)
zerion agent create-token --name <bot> --wallet <wallet>
# Attach an existing policy by ID
zerion agent create-token --name <bot> --wallet <wallet> --policy <id>
# Multiple policies (AND semantics — all must pass)
zerion agent create-token --name <bot> --wallet <wallet> --policy <id1>,<id2>~/.zerion/config.jsonagentTokenszerion-tradingzerion-signzerion agent revoke-token --name <bot>
zerion agent revoke-token --id <id># Chain lock — restrict to specific chains
zerion agent create-policy --name safe-base --chains base,arbitrum
# Expiry — token deactivates after duration (e.g. 24h, 7d)
zerion agent create-policy --name short-lived --expires 7d
# Block raw native transfers (ETH/SOL send command)
zerion agent create-policy --name no-transfers --deny-transfers
# Block ERC-20 approvals (prevents allowance grants)
zerion agent create-policy --name no-approvals --deny-approvals
# Allowlist — only allow interaction with specific contract addresses
zerion agent create-policy --name dex-only --allowlist 0xUniRouter,0xCowSwap
# Combined rules (AND semantics)
zerion agent create-policy --name strict \
--chains base \
--expires 7d \
--deny-transfers \
--deny-approvalszerion agent delete-policy <id>| Flag | Effect |
|---|---|
| Restrict to listed chains (comma-separated) |
| Token deactivates after duration. Format: |
| Block raw native transfers ( |
| Block ERC-20 |
| Only allow interaction with listed contract addresses (comma-separated) |
policies/*.mjs# 1. Create wallet (manual — see zerion-wallet skill)
zerion wallet create --name agent-bot
# 2. Create a tight policy
zerion agent create-policy --name swap-only \
--chains base,arbitrum \
--expires 30d \
--deny-transfers \
--allowlist 0xUniswapRouter,0x1inchRouter
# 3. Create the agent token bound to that policy
zerion agent create-token --name agent-bot \
--wallet agent-bot \
--policy <swap-only-id>
# Now zerion-trading and zerion-sign work autonomously| Code | Cause | Fix |
|---|---|---|
| No active token for wallet | |
| Policy | Create a fresh token |
| Action blocked by policy | |
| Policy ID doesn't exist | |
| | Add at least one rule ( |
| Duplicate | Choose another name or |