Opencash is a specialized CLI wallet and AI Agent Skill built to natively interact with Tempochain (Tempo Moderato) using the viem/tempo extension.
It is designed to give AI agents (or human users) the ability to seamlessly manage crypto balances and perform token transfers, natively utilizing Tempochain's gas sponsorship (feeToken) features.
This repository ships with an Agent Skill definition. Agents will automatically read .agents/skills/opencash/SKILL.md to understand how to interact with this CLI.
Ensure you have Bun installed.
bun installCreate a Wallet:
bun run index.ts createStores mnemonics securely in ~/.opencash/wallet/key.json.
Get Address:
bun run index.ts addressCheck Balances:
bun run index.ts balances
bun run index.ts balances <address>Transfer & Pay Gas in Tokens:
# Transfer 10 USD to an address, and pay the transaction gas fee in USD
bun run index.ts transfer usd 10 0xYourAddressHere... --fee-token usd- Uses
commanderfor CLI interfacing. - Uses
viemandviem/tempofor strongly-typed, accurate EVM standard and Tempochain extension calls. - Encapsulated logic inside
chain/TempoProvider.tsallows for clean RPC querying and contract execution.