skills$openclaw/sage-wallet
koba42corp1.3k

by koba42corp

sage-wallet – OpenClaw Skill

sage-wallet is an OpenClaw Skills integration for coding workflows. Interact with the Sage Chia blockchain wallet via RPC. Use for XCH transactions, CAT tokens, NFTs, DIDs, offers, options, coin management, and wallet configuration. Supports cross-platform setups (Mac/Linux/Windows) with configurable RPC endpoints and SSL certificates. Invoke with /sage commands or natural language like "send XCH", "check my NFTs", "create an offer", "mint a CAT token".

1.3k stars1.3k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namesage-wallet
descriptionInteract with the Sage Chia blockchain wallet via RPC. Use for XCH transactions, CAT tokens, NFTs, DIDs, offers, options, coin management, and wallet configuration. Supports cross-platform setups (Mac/Linux/Windows) with configurable RPC endpoints and SSL certificates. Invoke with /sage commands or natural language like "send XCH", "check my NFTs", "create an offer", "mint a CAT token". OpenClaw Skills integration.
ownerkoba42corp
repositorykoba42corp/sage-wallet
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @koba42corp/sage-wallet
last updatedFeb 7, 2026

Maintainer

koba42corp

koba42corp

Maintains sage-wallet in the OpenClaw Skills directory.

View GitHub profile
File Explorer
36 files
.
references
endpoints.md
4.8 KB
scripts
sage-config.sh
6.7 KB
sage-rpc.sh
4.5 KB
test-config.sh
4.0 KB
test-integration.sh
7.4 KB
test-rpc.sh
4.0 KB
sub-skills
sage-auth
SKILL.md
2.4 KB
sage-cat
SKILL.md
2.4 KB
sage-coins
SKILL.md
2.6 KB
sage-did
SKILL.md
1.8 KB
sage-network
SKILL.md
2.8 KB
sage-nft
SKILL.md
3.4 KB
sage-offers
SKILL.md
2.7 KB
sage-options
SKILL.md
2.3 KB
sage-system
SKILL.md
2.1 KB
sage-txn
SKILL.md
2.5 KB
sage-walletconnect
SKILL.md
2.8 KB
sage-xch
SKILL.md
2.5 KB
_meta.json
278 B
README.md
14.1 KB
SKILL.md
5.2 KB
SKILL.md

name: sage-wallet description: Interact with the Sage Chia blockchain wallet via RPC. Use for XCH transactions, CAT tokens, NFTs, DIDs, offers, options, coin management, and wallet configuration. Supports cross-platform setups (Mac/Linux/Windows) with configurable RPC endpoints and SSL certificates. Invoke with /sage commands or natural language like "send XCH", "check my NFTs", "create an offer", "mint a CAT token".

Sage Wallet Skill

RPC interface to Sage wallet for Chia blockchain operations.

Configuration

User settings stored in {workspace}/config/sage-wallet.json:

{
  "platform": "auto",
  "rpc_url": "https://127.0.0.1:9257",
  "cert_path": null,
  "key_path": null,
  "fingerprint": null,
  "auto_login": false
}

Platform Defaults

PlatformCert PathKey Path
mac~/Library/Application Support/com.rigidnetwork.sage/ssl/wallet.crt...wallet.key
linux~/.local/share/sage/ssl/wallet.crt...wallet.key
windows%APPDATA%\com.rigidnetwork.sage\ssl\wallet.crt...wallet.key

When platform is "auto", detect via uname -s.

Slash Commands

Configuration

CommandAction
/sage statusShow config and test connection
/sage configDisplay current settings
/sage config platform <auto|mac|linux|windows>Set platform
/sage config rpc <url>Set RPC URL
/sage config cert <path>Set SSL cert path
/sage config key <path>Set SSL key path
/sage config fingerprint <fp>Set default wallet fingerprint
/sage config autologin <on|off>Toggle auto-login
/sage config resetReset to defaults

Operations

Route to appropriate sub-skill based on domain:

DomainSub-SkillExample Commands
Auth & Keyssage-auth/sage login, /sage logout, /sage keys
XCHsage-xch/sage send xch, /sage balance, /sage combine
CAT Tokenssage-cat/sage cats, /sage send cat, /sage issue cat
NFTssage-nft/sage nfts, /sage mint nft, /sage transfer nft
DIDssage-did/sage dids, /sage create did
Offerssage-offers/sage offers, /sage make offer, /sage take offer
Optionssage-options/sage options, /sage mint option
Coinssage-coins/sage coins, /sage check address
Transactionssage-txn/sage pending, /sage submit
Networksage-network/sage peers, /sage network
Systemsage-system/sage sync, /sage version
WalletConnectsage-walletconnect/sage wc sign

Global Parameters

All commands accept optional overrides:

  • --fingerprint <fp> — Use specific wallet
  • --rpc <url> — Override RPC URL
  • --cert <path> — Override cert path
  • --key <path> — Override key path

Scripts

  • scripts/sage-config.sh — Config management
  • scripts/sage-rpc.sh — RPC caller with mTLS

Making RPC Calls

# Source the RPC helper
source scripts/sage-rpc.sh

# Call an endpoint
sage_rpc "get_sync_status" '{}'
sage_rpc "send_xch" '{"address":"xch1...","amount":"1000000000000","fee":"100000000"}'

Sub-Skills

Each sub-skill handles a specific domain. Load the appropriate one based on the operation:

Sub-SkillWhen to Load
sage-authLogin, logout, key management, mnemonics
sage-xchSend/receive XCH, combine, split coins
sage-catCAT token operations
sage-nftNFT minting, transfers, collections
sage-didDID creation and management
sage-offersOffer creation, acceptance, cancellation
sage-optionsOptions protocol operations
sage-coinsCoin queries, address validation
sage-txnTransaction signing, submission
sage-networkPeer and network settings
sage-systemSync status, version, database
sage-walletconnectWalletConnect integration

First Run

On first invocation:

  1. Check for config file; create if missing
  2. Detect platform if set to "auto"
  3. Verify cert/key files exist
  4. If missing, prompt user to configure paths
  5. Test connection with GetVersion

If certs not found, guide user:

Sage certificates not found. Configure with:
  /sage config cert /path/to/wallet.crt
  /sage config key /path/to/wallet.key

Error Handling

RPC errors return HTTP status codes:

  • 400 — Bad request (invalid params)
  • 401 — Unauthorized (cert mismatch)
  • 404 — Not found
  • 500 — Internal error

Always check response for error field before processing data.

Amount Formatting

Sage uses mojos (1 XCH = 1,000,000,000,000 mojos). The Amount type in requests/responses is a string representing mojos. Convert for display:

1 XCH = "1000000000000"
0.001 XCH = "1000000000"
README.md
<p align="center"> <h1 align="center">🌿 Sage Wallet</h1> <p align="center"> <strong>Complete RPC interface to the Sage Chia blockchain wallet</strong> </p> <p align="center"> <em>112 endpoints across 12 domain skills for XCH, CATs, NFTs, DIDs, Offers, and more</em> </p> </p> <p align="center"> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"> </a> <a href="https://www.chia.net/"> <img src="https://img.shields.io/badge/Blockchain-Chia-3AAC59.svg" alt="Chia Blockchain"> </a> <a href="https://github.com/xch-dev/sage"> <img src="https://img.shields.io/badge/Wallet-Sage-blue.svg" alt="Sage Wallet"> </a> <a href="https://clawd.bot"> <img src="https://img.shields.io/badge/Framework-Clawdbot-orange.svg" alt="Built for Clawdbot"> </a> </p> <p align="center"> <img src="https://img.shields.io/badge/Endpoints-112-brightgreen.svg" alt="112 Endpoints"> <img src="https://img.shields.io/badge/Sub--Skills-12-blue.svg" alt="12 Sub-Skills"> <img src="https://img.shields.io/badge/Platforms-Mac%20%7C%20Linux%20%7C%20Windows-purple.svg" alt="Cross Platform"> <img src="https://img.shields.io/badge/Version-1.0.0-blue.svg" alt="Version"> </p>

🎯 Overview

Full RPC integration with Sage Wallet for Chia blockchain operations. Send XCH, manage CAT tokens, mint NFTs, create offers, and more — all through natural language or slash commands.


✨ Features

<table> <tr> <td width="50%">

💰 XCH Transactions

  • Send to single or multiple addresses
  • Combine and split coins
  • Auto-combine dust
  • Clawback support

🪙 CAT Tokens

  • Issue new tokens
  • Send and receive CATs
  • Track balances
  • Auto-combine CAT coins

🖼️ NFTs

  • Mint single or bulk NFTs
  • Transfer ownership
  • Manage collections
  • Add URIs and metadata
</td> <td width="50%">

🆔 DIDs

  • Create identities
  • Transfer DIDs
  • Link NFTs to DIDs
  • Provenance tracking

🤝 Offers

  • Create P2P offers
  • Accept and combine offers
  • Cancel on-chain
  • View offer details

⚙️ System

  • Sync status monitoring
  • Database maintenance
  • Network peer management
  • WalletConnect integration
</td> </tr> </table>

📋 Requirements

RequirementVersionNotes
Sage WalletLatestRunning with RPC enabled
Bash4.0+Shell scripting
curlAnyHTTP client
jqAnyJSON processing
ClawdbotLatestAgent framework

🖥️ Platform Support

PlatformDefault Cert Path
macOS~/Library/Application Support/com.rigidnetwork.sage/ssl/wallet.crt
Linux~/.local/share/sage/ssl/wallet.crt
Windows%APPDATA%\com.rigidnetwork.sage\ssl\wallet.crt

Platform auto-detected, or set manually with /sage config platform.


🚀 Installation

Via ClawdHub (Recommended)

clawdhub install sage-wallet

Manual Installation

  1. Download and extract to ~/clawd/skills/sage-wallet/
  2. Make scripts executable:
    chmod +x ~/clawd/skills/sage-wallet/scripts/*.sh
    

🎬 Quick Start

Step 1️⃣: Verify Sage is Running

Ensure Sage Wallet is running with RPC enabled (default port 9257).

Step 2️⃣: Test Connection

/sage status

This auto-detects your platform, finds certificates, and tests the connection.

Step 3️⃣: Login to Wallet

/sage login 1234567890

Replace with your wallet fingerprint.

Step 4️⃣: Start Using

/sage balance
/sage nfts
/sage send xch xch1... 1.5

💬 Commands Reference

⚙️ Configuration

CommandDescriptionExample
/sage statusShow config & test connection/sage status
/sage configDisplay settings/sage config
/sage config platform <p>Set platform/sage config platform mac
/sage config rpc <url>Set RPC URL/sage config rpc https://192.168.1.50:9257
/sage config cert <path>Set cert path/sage config cert /path/to/wallet.crt
/sage config key <path>Set key path/sage config key /path/to/wallet.key
/sage config fingerprint <fp>Set default fingerprint/sage config fingerprint 1234567890
/sage config autologin <on/off>Toggle auto-login/sage config autologin on
/sage config resetReset to defaults/sage config reset

🔐 Authentication

CommandDescription
/sage login <fingerprint>Login to wallet
/sage logoutEnd session
/sage keysList wallet keys
/sage mnemonic generateGenerate new mnemonic

💰 XCH Transactions

CommandDescription
/sage balanceCheck XCH balance
/sage send xch <addr> <amount>Send XCH
/sage send xch <addr> <amount> --fee 0.0001Send with fee
/sage combineAuto-combine dust
/sage split <coin_id> <count>Split coin

🪙 CAT Tokens

CommandDescription
/sage catsList CAT tokens
/sage send cat <asset_id> <addr> <amount>Send CAT
/sage issue cat <name> <ticker> <supply>Issue new CAT

🖼️ NFTs

CommandDescription
/sage nftsList NFTs
/sage nft <nft_id>Get NFT details
/sage collectionsList collections
/sage mint nft --did <did> --data <uri>Mint NFT
/sage transfer nft <nft_id> <address>Transfer NFT

🆔 DIDs

CommandDescription
/sage didsList DIDs
/sage create did <name>Create DID
/sage transfer did <did_id> <address>Transfer DID

🤝 Offers

CommandDescription
/sage offersList offers
/sage offer view <offer_string>View offer details
/sage offer make --request <xch:1> --offer <cat:1000>Create offer
/sage offer take <offer_string>Accept offer
/sage offer cancel <offer_id>Cancel on-chain

📊 System

CommandDescription
/sage syncSync status
/sage versionWallet version
/sage peersConnected peers
/sage networkCurrent network
/sage pendingPending transactions

🔧 Global Options

All commands accept optional overrides:

--fingerprint <fp>    Use specific wallet
--rpc <url>           Override RPC URL
--cert <path>         Override cert path
--key <path>          Override key path

📁 Skill Structure

sage-wallet/
├── SKILL.md                    # Master skill (orchestration)
├── README.md                   # This file
├── references/
│   └── endpoints.md            # All 112 endpoints reference
├── scripts/
│   ├── sage-config.sh          # Configuration management
│   ├── sage-rpc.sh             # mTLS RPC caller
│   ├── test-config.sh          # Config tests
│   ├── test-rpc.sh             # RPC tests
│   └── test-integration.sh     # Full integration tests
└── sub-skills/
    ├── sage-auth/              # Authentication & keys
    ├── sage-xch/               # XCH transactions
    ├── sage-cat/               # CAT tokens
    ├── sage-nft/               # NFTs
    ├── sage-did/               # DIDs
    ├── sage-offers/            # Offers
    ├── sage-options/           # Options protocol
    ├── sage-coins/             # Coins & addresses
    ├── sage-txn/               # Transaction signing
    ├── sage-network/           # Network & peers
    ├── sage-system/            # System & sync
    └── sage-walletconnect/     # WalletConnect

🔌 Sub-Skills

Each domain has a dedicated sub-skill with full endpoint documentation:

Sub-SkillEndpointsDescription
sage-auth16Login, logout, keys, mnemonics, themes
sage-xch7Send, bulk send, combine, split, clawback
sage-cat9List, send, issue, combine CAT tokens
sage-nft14Mint, transfer, collections, URIs
sage-did6Create, transfer, normalize DIDs
sage-offers11Create, take, view, cancel offers
sage-options6Mint, exercise, transfer options
sage-coins8List coins, addresses, derivations
sage-txn6Sign, submit, pending transactions
sage-network12Peers, network settings, sync config
sage-system4Version, sync status, database
sage-walletconnect5dApp connectivity, message signing

Total: 112 endpoints


🧪 Testing

Run Config Tests

./scripts/test-config.sh

Run RPC Tests (Dry Mode)

./scripts/test-rpc.sh

Run RPC Tests (Live)

./scripts/test-rpc.sh --live

Full Integration Test

./scripts/test-integration.sh --fingerprint 1234567890

⚙️ Configuration File

Location: ~/.config/sage-wallet/config.json

{
  "platform": "auto",
  "rpc_url": "https://127.0.0.1:9257",
  "cert_path": null,
  "key_path": null,
  "fingerprint": null,
  "auto_login": false
}
FieldTypeDescription
platformstring"auto", "mac", "linux", or "windows"
rpc_urlstringSage RPC endpoint
cert_pathstring/nullCustom cert path (null = platform default)
key_pathstring/nullCustom key path (null = platform default)
fingerprintnumber/nullDefault wallet fingerprint
auto_loginbooleanAuto-login on first RPC call

💱 Amount Formatting

Sage uses mojos (smallest unit). Conversions:

XCHMojos
1 XCH1000000000000
0.1 XCH100000000000
0.001 XCH1000000000
0.000001 XCH1000000

CAT amounts are in the token's smallest unit (no decimals in RPC).


🔧 Troubleshooting

<details> <summary><b>❌ "Certificate not found"</b></summary>

Solution:

  1. Verify Sage is installed and has been run at least once
  2. Check platform detection: /sage config
  3. Set path manually:
    /sage config cert /path/to/wallet.crt
    /sage config key /path/to/wallet.key
    
</details> <details> <summary><b>❌ "Connection refused"</b></summary>

Solution:

  1. Ensure Sage wallet is running
  2. Check RPC is enabled in Sage settings
  3. Verify port 9257 is accessible:
    curl -k https://127.0.0.1:9257/get_version
    
  4. Check custom RPC URL if set: /sage config
</details> <details> <summary><b>❌ "Unauthorized" error</b></summary>

Solution:

  1. Sage uses mutual TLS — both cert and key required
  2. Ensure cert/key files are readable
  3. Verify cert matches the Sage installation
  4. Try regenerating certs in Sage settings
</details> <details> <summary><b>❌ "Not logged in"</b></summary>

Solution:

  1. Login with fingerprint: /sage login 1234567890
  2. Or set default fingerprint:
    /sage config fingerprint 1234567890
    /sage config autologin on
    
</details> <details> <summary><b>❌ Wrong platform detected</b></summary>

Solution:

/sage config platform linux

Options: auto, mac, linux, windows

</details>

🔐 Security Notes

Important: This skill interacts with real cryptocurrency wallets.

✅ Best Practices

  • Never share your mnemonic or wallet.key file
  • Use testnet for development and testing
  • Verify transaction details before submitting
  • Keep Sage wallet software updated
  • Use clawback for large transfers to new addresses

🔒 What This Skill Does

  • Reads certificates from your local Sage installation
  • Makes authenticated RPC calls to your local wallet
  • Does not store or transmit mnemonics
  • Does not access remote wallets (unless you configure a remote RPC)

📊 Use Cases

💼 Portfolio Management

Check balances, track NFTs, and monitor transactions across wallets.

🤖 Automated Trading

Create and manage offers programmatically through natural language.

🎨 NFT Operations

Bulk mint, transfer, and organize NFT collections.

🔄 Token Distribution

Bulk send CAT tokens or XCH to multiple addresses.

📈 Wallet Monitoring

Track sync status, pending transactions, and network health.


🗺️ Roadmap

✅ Completed (v1.0.0)

  • All 112 RPC endpoints mapped
  • 12 domain sub-skills
  • Cross-platform support (Mac/Linux/Windows)
  • Configuration management
  • Test suites
  • Comprehensive documentation

🚧 Planned

  • Transaction builder with confirmation prompts
  • Offer marketplace integration
  • Price feed integration (XCH/USD)
  • Portfolio analytics
  • Multi-wallet dashboard
  • Scheduled transactions
  • Webhook notifications

🤝 Contributing

Contributions welcome!

  • Bug Reports: Open an issue with reproduction steps
  • Feature Requests: Describe the use case
  • Pull Requests: Fork, branch, test, submit

📄 License

MIT License — Koba42 Corp


🙏 Credits

Built with ❤️ by Koba42 Corp

Powered By:

Resources:


📬 Support


<p align="center"> <strong>⭐ Star us on GitHub if this skill helped you!</strong> </p> <p align="center"> <em>"The Chia blockchain: where sustainability meets innovation."</em> </p> <p align="center"> <sub>Version 1.0.0 | January 2026</sub> </p>

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

User settings stored in `{workspace}/config/sage-wallet.json`: ```json { "platform": "auto", "rpc_url": "https://127.0.0.1:9257", "cert_path": null, "key_path": null, "fingerprint": null, "auto_login": false } ``` ### Platform Defaults | Platform | Cert Path | Key Path | |----------|-----------|----------| | mac | `~/Library/Application Support/com.rigidnetwork.sage/ssl/wallet.crt` | `...wallet.key` | | linux | `~/.local/share/sage/ssl/wallet.crt` | `...wallet.key` | | windows | `%APPDATA%\com.rigidnetwork.sage\ssl\wallet.crt` | `...wallet.key` | When `platform` is `"auto"`, detect via `uname -s`.

FAQ

How do I install sage-wallet?

Run openclaw add @koba42corp/sage-wallet in your terminal. This installs sage-wallet into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/koba42corp/sage-wallet. Review commits and README documentation before installing.