@asom/cli
v0.0.1
Published
asom command-line tool — create and operate agents on Somnia
Maintainers
Readme
@asom/cli
The asom command-line tool. Create and operate agents on Somnia — every agent gets a name and an ERC-6551 wallet.
pnpm --filter @asom/cli build
export PRIVATE_KEY=0x... # only needed for writes (create)
asom create neo # mint neo@asom + its wallet, on-chain
asom resolve neo # look up an agent (no key needed)
asom available trinity # is a name free?
asom whoami # show your signer addressasom create <name>
Mints the AgentNFT, deploys the agent's ERC-6551 token-bound wallet, registers the name, and (optionally) seeds the wallet with STT — in one transaction.
asom create neo --seed 0.05 # seed the wallet with 0.05 STT
asom create neo --owner 0xABC... # mint to a different ownerOutput:
✓ neo@asom is live.
neo@asom
token #1
wallet 0x3Ec0397677a61121CAe3b503835EDd3bB76061d3
owner 0x875eFb079A2b68267a1bE03cAd0E1A7Ee4bA0B2E
balance 0.0500 STT
explorer https://shannon-explorer.somnia.network/address/0x3Ec0...61d3
register tx https://shannon-explorer.somnia.network/tx/0xace1...9679Config
| Env var | Purpose | Required |
|---|---|---|
| PRIVATE_KEY | Signer for writes (create) | only for create |
| SHANNON_RPC_URL | RPC override | no (defaults to public Shannon RPC) |
Reads (resolve, available) need no key. The CLI loads a .env from the working directory.
Built on @asom/sdk.
