Skip to content

openpass-eth/opencash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opencash AI Skill & CLI

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.

AI Agent Integration

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.

Manual Usage

Ensure you have Bun installed.

Setup

bun install

Commands

Create a Wallet:

bun run index.ts create

Stores mnemonics securely in ~/.opencash/wallet/key.json.

Get Address:

bun run index.ts address

Check 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

Architecture

  • Uses commander for CLI interfacing.
  • Uses viem and viem/tempo for strongly-typed, accurate EVM standard and Tempochain extension calls.
  • Encapsulated logic inside chain/TempoProvider.ts allows for clean RPC querying and contract execution.

About

give stablecoin to any AI agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors