Skip to main content
Glama
README.md
# xno-skills

[![npm version](https://img.shields.io/npm/v/xno-skills.svg)](https://www.npmjs.com/package/xno-skills)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)

A CLI, MCP server, and AI skills for [Nano](https://nano.org/) (XNO). Built on top of [Open Wallet Standard (OWS)](https://github.com/open-wallet-standard/core) for secure key custody — OWS ships as a bundled dependency, so there is nothing extra to install.

![xno-skills CLI preview](assets/xno-skills-cli.png)

## Design Overview

```text
CLI/MCP transaction command
        ↓
build unsigned Nano state block
        ↓
OWS signs the block hash
        ↓
choose work root + threshold
        ↓
local PoW, or remote work_generate → local fallback
        ↓
attach signature + work
        ↓
RPC process
```

xno-skills separates block construction, signing, proof of work, and publication. The CLI and MCP server use the same transaction code. The transaction code reads the account frontier and balance, builds the state block, and asks OWS to sign it without exposing wallet keys. It selects the Nano work root and threshold from the block subtype.

PoW runs locally through the `nano-core` work provider when recommended. Otherwise, xno-skills tries the configured `work_generate` endpoints and falls back to local generation if they fail. It then attaches the signature and work nonce and publishes the block with RPC `process`. Send and representative-change blocks use the send threshold. Receive and open blocks use the lower receive threshold. Open blocks use the account public key as their work root.

## Agent Skills

[![skills.sh](https://skills.sh/b/casualsecurityinc/xno-skills)](https://skills.sh/casualsecurityinc/xno-skills)

Built-in skill for Personal AI Agents (OpenClaw etc.) and humans with AI Coding Assistants (Claude Code, Cursor, etc.) alike:

```bash
npx skills add CasualSecurityInc/xno-skills -g
# or non-interactively, i.e. for agent use:
npx -y skills add CasualSecurityInc/xno-skills -g -y --all
```

### Claude Code

```
/plugin marketplace add CasualSecurityInc/xno-skills
/plugin install xno-skills@casual-security-inc
```

> [!IMPORTANT]
> If you installed skills from this repository before May 4, 2026, you have 11 individual `nano-*` skills that have been consolidated into a single `nano` skill. Remove the old ones first:
>
> ```bash
> npx skills remove nano-block-lattice-expert nano-check-balance nano-convert-units nano-create-wallet nano-generate-qr nano-mcp-wallet nano-request-payment nano-return-funds nano-sign-message nano-validate-address nano-verify-message -g -y
> ```
>
> Then reinstall as above.

Available skills:

- `nano`: Wallet ops, balance, send/receive, QR codes, address validation, unit conversion, payment requests, refunds, block-lattice protocol expertise, and more — all in one skill. Uses `xno-mcp` MCP tools first, falls back to `xno-skills` CLI.

No separate `ows` install is required. `xno-skills` ships `@open-wallet-standard/core` as a dependency and uses its local vault directly, so wallet listing, creation, and signing work out of the box.

The optional [Open Wallet Standard](https://github.com/open-wallet-standard/core) skill adds wallet lifecycle operations that `xno-skills` does not expose (import, rename, delete). Install it only if you need those:

```bash
npx skills add open-wallet-standard/core@ows
```

## CLI

### Installation

To install the CLI, AI agent skills, and wallet dependencies, run:

```bash
npm install -g xno-skills && npx -y skills add CasualSecurityInc/xno-skills -g -y --all
xno-skills --help
```

To upgrade an existing installation, rerun the same command. Reinstall the Nano skill and restart any MCP clients that use `xno-skills mcp` afterwards. Existing OWS wallet data stays in the local vault and needs no migration. Use a supported Node.js LTS release such as 22, 24, or 26.

#### Linux compatibility

The native proof-of-work binding ships separate builds for glibc and musl Linux:

| Distribution                           | Requirement                                        |
| :------------------------------------- | :------------------------------------------------- |
| Ubuntu 22.04+, Debian 12+, RHEL 9+     | glibc 2.34 or newer                                |
| Alpine, or any other musl-based distro | musl build, no glibc dependency                    |
| RHEL 8 / Rocky 8, Ubuntu 20.04         | use the musl build (Alpine, or a musl-based image) |

The package manager selects the right variant automatically. See
[nano-rspow's GLIBC_COMPAT.md](https://github.com/CasualSecurityInc/nano-rspow/blob/HEAD/GLIBC_COMPAT.md)
for the full support matrix and verification commands.

### Wallet Operations

| Command                                | Description                                 |
| -------------------------------------- | ------------------------------------------- |
| `wallet create --name <name> [--json]` | Create a Nano wallet in the local OWS vault |
| `wallets [options]`                    | List wallets that have Nano accounts        |
| `balance [options]`                    | Show balances and pending amounts           |
| `receive [options]`                    | Receive pending blocks                      |
| `send [options]`                       | Send Nano                                   |
| `change-rep [options]`                 | Submit a change representative block        |
| `submit-block [options]`               | Sign and submit a prepared block hex        |
| `history [options]`                    | Show transaction history                    |

#Run the packaged wallet creation acceptance check with `npm run test:wallet-create:docker`. It installs the candidate into a temporary image and runs the checks offline with a disposable vault. To select a Linux architecture, pass `-- --platform linux/amd64` or `-- --platform linux/arm64`.

## Utilities

| Command                             | Description                                                       |
| ----------------------------------- | ----------------------------------------------------------------- |
| `info [options]`                    | Discover the current state and representative of any Nano account |
| `convert [options] <amount> <from>` | Convert between XNO units                                         |
| `qr [options] <address>`            | Generate a QR code for a Nano address                             |
| `validate [options] <input>`        | Validate a Nano address or block hash                             |

### Cryptography & Signing

| Command                                            | Description                            |
| -------------------------------------------------- | -------------------------------------- |
| `sign [options] <message>`                         | Sign a NOMS message with a private key |
| `verify [options] <address> <message> <signature>` | Verify a NOMS message signature        |

### Advanced & RPC

| Command                | Description                                                                                           |
| ---------------------- | ----------------------------------------------------------------------------------------------------- |
| `rpc`                  | Query a Nano node RPC                                                                                 |
| `rpc probe-caps [url]` | Probe one or more comma-separated RPC URLs for JSON RPC, ledger-read, process, and remote PoW support |
| `block`                | Build unsigned Nano state blocks for manual/expert workflows                                          |

### System

| Command | Description                                                                                             |
| ------- | ------------------------------------------------------------------------------------------------------- |
| `diag`  | Show version, environment, effective RPC/work URLs, and local PoW recommendation without network probes |
| `mcp`   | Start the MCP server or view configuration instructions                                                 |

Batch independent balance and receivable reads with `balance --wallet A --wallet B`, `rpc account-balance <address1> <address2>`, or `rpc receivable <address1> <address2>`. The corresponding MCP tools accept `wallets` or `addresses` arrays.

All commands support `-j` / `--json` for machine-readable output.

Use `diag` for local configuration diagnostics. Use `rpc probe-caps <effective-work-url>` when you need live endpoint capability checks, including `work_generate` support.

Wallet lifecycle is managed by [OWS](https://github.com/open-wallet-standard/core), which `xno-skills` bundles as a dependency — **no separate `ows` install and no global `ows` executable are needed**. Listing, creating, and signing wallets all go through the bundled runtime against the local OWS vault.

`xno-skills` exposes wallet listing and creation directly (`wallet_list`, `wallet_create`, `xno-skills wallet create`). Import, rename, and delete are not exposed by `xno-skills`; use the optional OWS tooling for those — either the [OWS quick-start](https://openwallet.sh/#quickstart) for terminal usage, or the optional OWS agent skill:

```bash
npx skills add open-wallet-standard/core@ows
```

## MCP Server

The MCP server requires Node.js 20 or newer. Use a supported Node.js LTS release, such as 22, 24, or 26. It supports the 2026-07-28 protocol alongside legacy stdio clients.

The Nano wallet MCP server runs on your machine over stdio and uses your local OWS wallet. There is no hosted endpoint. Use the npm setup below and see [skill installation](#agent-skills) for the GitHub install command.

Exposes Nano wallet functions as tools for AI agents (Claude Desktop, Cursor, Codex, etc.). MCP resources (`xno-wallet://` URIs) are served but require client-side `resources/read` support — not yet available in OpenCode ([#15535](https://github.com/anomalyco/opencode/issues/15535)).

**Preferred** (global install — avoids `npx` concurrency handshake failures):

```bash
npm install -g xno-skills
```

```json
{
  "mcpServers": {
    "nano": {
      "command": "xno-skills",
      "args": ["mcp"]
    }
  }
}
```

**Fallback** (if global install is not possible):

```json
{
  "mcpServers": {
    "nano": {
      "command": "npx",
      "args": ["-y", "-p", "xno-skills", "xno-mcp"]
    }
  }
}
```

### Client Setup Examples

<details>
<summary>Codex</summary>

```bash
# Preferred (after npm install -g xno-skills):
codex mcp add nano \
  -c sandbox_mode="danger-full-access" \
  -c 'sandbox_permissions=["network-access"]' \
  -- xno-skills mcp

# Fallback:
codex mcp add nano \
  -c sandbox_mode="danger-full-access" \
  -c 'sandbox_permissions=["network-access"]' \
  -- npx -y -p xno-skills xno-mcp
```

</details>

<details>
<summary>Claude Desktop (<code>claude_desktop_config.json</code>)</summary>

```json
{
  "mcpServers": {
    "nano": {
      "command": "xno-skills",
      "args": ["mcp"]
    }
  }
}
```

</details>

<details>
<summary>OpenCode (<code>~/.config/opencode/opencode.json</code>)</summary>

```jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nano": {
      "type": "local",
      "command": ["xno-skills", "mcp"],
      "enabled": true,
    },
  },
}
```

</details>

<details>
<summary>Gemini CLI (<code>~/.gemini/settings.json</code>)</summary>

```json
{
  "mcpServers": {
    "nano": {
      "command": "xno-skills",
      "args": ["mcp"]
    }
  }
}
```

</details>

<details>
<summary>Antigravity (<code>~/.gemini/antigravity/mcp_config.json</code>)</summary>

```json
{
  "mcpServers": {
    "nano": {
      "command": "xno-skills",
      "args": ["mcp"]
    }
  }
}
```

</details>

<details>
<summary>VS Code (<code>.vscode/mcp.json</code>)</summary>

```json
{
  "servers": {
    "nano": {
      "type": "stdio",
      "command": "xno-skills",
      "args": ["mcp"]
    }
  }
}
```

</details>

## Library

For using `xno-skills` as a TypeScript library, see [LIBRARY.md](./LIBRARY.md).

## Security Notes

- **Never share your seed or private keys.** Anyone with access can fully control your wallet.
- **Store seeds securely.** Use hardware wallets or encrypted storage — never in plain text or version control.
- **Address validation.** Always validate addresses before sending. Nano addresses include checksums.
- **Unit precision.** Nano uses 30 decimal places. Always use string-based conversion to avoid floating-point errors.

## Development

```bash
npm install
npm test
npm run build
```

## Opt-in Codex wallet journey evaluation

This live evaluator makes ten real, owned transfers (five CLI and five MCP). It creates and retains the recipient wallets, places a local guard in front of the supplied Nano RPC, and writes raw Codex JSONL plus an independently checked report. Use only a dedicated source wallet whose balance meets the preflight requirements:

```bash
npm run eval:codex-wallet-journey -- --model <model> --source-wallet <name> --upstream-rpc <url> --out <private-output-dir>
```

For OpenCode’s Kilo Auto Free router, use the parallel command below. It runs `opencode run --format json --model kilo/kilo-auto/free` and requires the normal Kilo/OpenCode provider authentication or free-tier access:

```bash
npm run eval:opencode-wallet-journey -- --source-wallet <name> --upstream-rpc <url> --out <private-output-dir>
```

It is never part of CI or the release flow. The report deliberately makes no token-efficiency claim unless the captured Codex events provide an authoritative per-run token count.

For a manual, tool-by-tool routing check instead of the end-to-end journey, use [`test/user-journey-prompts.md`](test/user-journey-prompts.md): 28 prompts mapped one-to-one to the 28 MCP tools, run one at a time in a fresh agent session with the file withheld. It is also never part of CI.

## Releasing

See `RELEASING.md`.

## Similar Projects

- [kilkelly/nano-currency-mcp-server](https://github.com/kilkelly/nano-currency-mcp-server) — MCP server for Nano with a simple per-transaction send limit
- [strawberry-labs/berrypay-cli](https://github.com/strawberry-labs/berrypay-cli) — Nano wallet CLI for AI agents with payment processing and auto-sweep

## License

MIT

TDQS

B3.4/5.0

Scored across 29 tools

Disambiguation3/5

There is meaningful overlap between tiers: wallet_balance vs rpc_account_balance vs wallet_info vs rpc_account_info all report account state, and wallet_receive vs payment_receive vs block_receive all pull in funds. Descriptions do distinguish the OWS-vs-raw-RPC-vs-manual-block layers, so a careful agent can pick correctly, but boundaries require reading and are easy to misjudge.

Naming Consistency4/5

Strong, predictable namespace_verb naming across payment_*, wallet_*, config_*, util_*, rpc_*, and block_* groups. Minor deviations: system_diag breaks the namespace_verb form and wallet_ows_health is a three-part outlier, but overall the pattern holds.

Tool Count3/5

29 tools is on the heavy side for one server and partly driven by exposing three parallel layers (high-level wallet ops, raw RPC reads, and manual block construction). Each tool is defensible, but the volume raises selection cost.

Completeness4/5

Covers the full lifecycle: wallet creation, addressing, balances, send/receive, rep change, history, plus payment request create/receive/refund/status and manual block building. Gaps are minor — no explicit wallet export/backup or payment cancel/delete operation.

Maintenance

ActivityActive
ResponsivenessLimited data