zerion-agent-management
Original:🇺🇸 English
Translated
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`.
4installs
Sourcezeriontech/zerion-ai
Added on
NPX Install
npx skill4agent add zeriontech/zerion-ai zerion-agent-managementTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Zerion — Agent Token & Policy Management
Agent tokens authorize the CLI to sign transactions on behalf of a wallet without a passphrase prompt. Policies attached to a token scope what the token can do (chains, allowlist, deny rules, expiry). This is the foundation for safe autonomous trading and off-chain signing.
Setup
If a command fails with , install once:
zerioncommand not foundbash
npm install -g zerion-cliRequires Node.js ≥ 20. For auth see the umbrella skill. To execute trades after setup → . To sign messages/typed-data → .
zerionzerion-tradingzerion-signWhen to use
- "Create an agent token"
- "Set up autonomous trading"
- "Restrict the bot to chain X / address Y"
- "Block transfers" / "block approvals" / "expire the token in N days"
- "Switch which agent token is active"
- "Revoke a token"
Agent vs manual operations
| Operation | Type | Notes |
|---|---|---|
| Agent | Read-only or config-only. Safe autonomously. |
| Manual | Require passphrase or confirmation. Humans must run these directly. |
Read-only — agents may invoke freely
bash
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)Manual — humans only
Create an agent token
bash
# 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>The token is auto-saved to under and (if no token was active before) becomes the default. Trading commands () and signing commands () read it from config.
~/.zerion/config.jsonagentTokenszerion-tradingzerion-signRevoke a token
bash
zerion agent revoke-token --name <bot>
zerion agent revoke-token --id <id>Create a policy
A policy is a set of rules a token must pass before signing. At least one rule required.
bash
# 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-approvalsDelete a policy
bash
zerion agent delete-policy <id>Tokens that referenced the deleted policy will no longer pass that rule check.
Policy reference
| 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 execute as locally-spawned scripts ( in the CLI repo). They run on every signing attempt before the transaction is built.
policies/*.mjsRecommended setup pattern
bash
# 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 autonomouslyCommon errors
| 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 |