Xpersona
S

Stellar Agent Wallet

CLAWHUB · Unverified

A Stellar USDC wallet skill for AI agents. Pay for 402-gated APIs via MPP Router or x402 facilitators, check balances, manage USDC trustlines, swap XLM→USDC on the Classic DEX, pay a Stellar deposit address directly with a memo, and bridge/send USDC cross-chain to Ethereum, Arbitrum, Base, BSC, Polygon, Solana, or back to Stellar via Rozo. Client-only, sponsored mode, testnet and mainnet. Triggers on "stellar wallet", "pay per call stellar", "x402 stellar", "mpprouter", "check stellar balance", "swap xlm to usdc", "add usdc trustline", "bridge from stellar", "send usdc cross-chain", "pay this deposit address with memo", "fund this invoice on stellar", "pay for api with stellar", or when the user shares a G... address with a payment intent.

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a57ypabprvxk3s4hkg6w6ax8460f3:stellar-agentic-wallet
  1. Install using `clawhub skill install s17a57ypabprvxk3s4hkg6w6ax8460f3:stellar-agentic-wallet` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/shawnmuggle/stellar-agentic-wallet before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-shawnmuggle-stellar-agentic-wallet/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: stellar-agent-wallet
description: >
  A Stellar USDC wallet skill for AI agents. Pay for 402-gated APIs via MPP Router
  or x402 facilitators, check balances, manage USDC trustlines, swap XLM→USDC on
  the Classic DEX, pay a Stellar deposit address directly with a memo, and
  bridge/send USDC cross-chain to Ethereum, Arbitrum, Base, BSC, Polygon, Solana,
  or back to Stellar via Rozo. Client-only, sponsored mode, testnet and mainnet.
  Triggers on "stellar wallet", "pay per call stellar", "x402 stellar",
  "mpprouter", "check stellar balance", "swap xlm to usdc", "add usdc trustline",
  "bridge from stellar", "send usdc cross-chain", "pay this deposit address with
  memo", "fund this invoice on stellar", "pay for api with stellar", or when the
  user shares a G... address with a payment intent.
metadata:
  author: Shawn Yu
  version: 1.8.8
  license: MIT
  runtime: node
  homepage: https://www.mpprouter.dev/
  repository: https://github.com/mpprouter/stellar-agent-wallet-skill

  # Runtime dependencies. These are the only packages the code imports.
  # - @stellar/stellar-sdk: transaction building + signing
  # - mppx: authoritative RFC 7235 `Payment` scheme codec (Challenge +
  #   Credential serialize/deserialize). Used by scripts/src/mpp-envelope.ts
  #   and scripts/src/pay-engine.ts so the wire format stays byte-identical
  #   to the reference implementation.
  # - tsx: runs the .ts entry points directly.
  dependencies:
    required:
      - "@stellar/stellar-sdk"
      - mppx
      - tsx

  # Secret handling.
  #
  # This skill signs Stellar transactions. It takes the signing key from
  # a file on disk or an existing Stellar CLI identity. Use:
  #
  #   ./node_modules/.bin/tsx scripts/generate-keypair.ts
  #
  # which writes a fresh secret to ./.stellar-secret with mode 600.
  # It refuses to overwrite existing wallet files. Every command accepts
  # --secret-file <path> (default: .stellar-secret) or --identity <name>.
  #
  # Why file-based: environment variables leak into shell history and
  # ps(1) output. File-based secrets with mode 600 are the pattern used
  # by comparable wallets on ClawHub.
  secret_handling:
    method: file
    default_path: .stellar-secret
    file_mode: "600"
    notes: >
      Generated via scripts/generate-keypair.ts or loaded from Stellar CLI
      identities. Never printed to stdout. Secrets are validated before use.

  # Configuration flags accepted by every command.
  cli_flags:
    "--secret-file <path>":
      description: Path to a file containing the Stellar secret key.
      default: .stellar-secret
    "--identity <name>":
      description: Existing Stellar CLI identity to use instead of --secret-file.
    "--network <name>":
      description: testnet or pubnet.
      default: pubnet
      warning: >
        Default is pubnet (mainnet). Real funds move. Pass --network testnet
        explicitly while prototyping.
    "--horizon-url <url>":
      description: Override Horizon REST endpo

skills/bridge/SKILL.md

---
name: bridge
description: Bridge or deposit USDC FROM Stellar TO another chain (Ethereum, Arbitrum, Base, BSC, Polygon, Solana) via Rozo. High-level routing — no manual smart contract calls. Triggers on "bridge to base", "deposit to ethereum", "move usdc from stellar to solana", "get my stellar usdc onto <chain>", or "i need usdc on <chain>". Delegates to Rozo's single intent API — this skill exists mostly as a semantic entry point.
---

# bridge

High-level "move my Stellar USDC to <other chain>" command. Under the hood this is the same Rozo intent API that powers `send-payment` — the difference is only intent:

- `send-payment` → sending TO someone else's address on another chain
- `bridge` → sending to **your own** address on another chain

Both map to the same Rozo `POST /payments` call. This skill exists to match natural language like "bridge" / "deposit" / "move my funds" without forcing the user to phrase it as a payment.

## When to trigger

- "Bridge 50 USDC from stellar to base"
- "Deposit my stellar USDC onto ethereum"
- "Move USDC from stellar to solana (my wallet is <addr>)"
- "I need USDC on arbitrum"
- "Get my stellar usdc onto polygon"

## Supported destinations

Same as `send-payment`:

| Chain | USDC | USDT |
|---|---|---|
| Ethereum | ✅ | ✅ |
| Arbitrum | ✅ | ✅ |
| Base | ✅ | ✅ |
| BSC | ✅ | ✅ |
| Polygon | ✅ | ✅ |
| Solana | ✅ | ❌ |

Stellar→Stellar is obviously not a bridge, so it's excluded here (use `send-payment` for that).

## Flow

1. Ask the user for their destination address on the target chain (if not given).
2. Preflight: check Stellar USDC balance with `stellar-balance`.
3. Delegate to `send-payment/run.ts` with source=stellar, dest=<chain>, to=<user's own addr>.
4. Show the Rozo payment ID + explorer links.

## How to run

```bash
# Interactive
./node_modules/.bin/tsx skills/bridge/run.ts

# Explicit
./node_modules/.bin/tsx skills/bridge/run.ts --chain base --amount 50 --my-address 0xAbCd...

# The confirmation prompt is the last look at the destination before real
# funds move — let it run. --yes exists for automation that has already
# verified the transaction independently; no example models it here.
```

## Why this is just a thin wrapper

Rozo's intent API doesn't distinguish "bridge" from "payment". A bridge is just a payment to yourself. So this skill is a 30-line wrapper that:

1. Adds natural-language triggers for bridge-flavored prompts.
2. Makes it obvious the destination address should be **your own**, not a counterparty.
3. Shells out to `send-payment/run.ts`.

If you need more granular bridge primitives (specific routes, custom relayers), go direct to Rozo or another bridge API — this skill is deliberately opinionated.

skills/check-balance/SKILL.md

---
name: stellar-balance
description: Manage a Stellar account's balance — check USDC/XLM, add a Classic USDC trustline, or swap XLM to USDC on the DEX. Stellar-only (does NOT do cross-chain balances — use the bridge skill for that). Triggers on "check balance", "how much USDC do I have", "add usdc trustline", "swap xlm to usdc", "i need usdc on stellar", "my account doesn't have usdc yet", or when the user pastes a G... address.
---

# stellar-balance

Stellar account management for the wallet agent. Three scripts, one skill.

| Script | When |
|---|---|
| `run.ts` | Check USDC + XLM on an account |
| `add-trustline.ts` | Enable Classic USDC (required before receiving from external wallets or swapping on DEX) |
| `swap-xlm-to-usdc.ts` | Convert XLM to USDC via the Stellar Classic DEX (path payment) |

## When to trigger

- "check my stellar balance" → `run.ts`
- "how much USDC do I have on stellar" → `run.ts`
- "add usdc trustline" / "i need usdc on stellar but have none" → `add-trustline.ts`
- "swap xlm to usdc" / "convert my xlm to usdc" → `swap-xlm-to-usdc.ts`
- User pastes a `G...` address with no other context → `run.ts`

## Not for

- EVM / Solana / multi-chain balances — route to `bridge` sub-skill (Rozo).
- SAC token balances for arbitrary contracts — this skill only knows USDC and XLM.
- Buying USDC with fiat — use an on-ramp (Coinbase, MoonPay, etc.).

## Typical onboarding flow

When a user's Stellar account is brand new and has only XLM:

```bash
# 1. See what's there
./node_modules/.bin/tsx skills/check-balance/run.ts

# 2. Enable USDC
./node_modules/.bin/tsx skills/check-balance/add-trustline.ts

# 3. Swap XLM → USDC (example: swap 10 XLM)
./node_modules/.bin/tsx skills/check-balance/swap-xlm-to-usdc.ts 10

# 4. Verify
./node_modules/.bin/tsx skills/check-balance/run.ts
```

## Commands

### check balance

```bash
# Derive pubkey from --identity or --secret-file (default: .stellar-secret)
./node_modules/.bin/tsx skills/check-balance/run.ts

# Use an existing Stellar CLI identity
./node_modules/.bin/tsx skills/check-balance/run.ts --identity mpp-mainnet-payer

# Check any pubkey
./node_modules/.bin/tsx skills/check-balance/run.ts GABCD...

# JSON output
./node_modules/.bin/tsx skills/check-balance/run.ts --json
```

Output:
```
Account: GABCD...
Network: pubnet

  USDC   42.5000000    (Classic)
  USDC    8.1234567    (SAC — Soroban)
  XLM   125.0000000    (native)

Reserves: 2.0 XLM
Spendable XLM: 123.0000000
```

Reads from Horizon (Classic balances + reserves) and Soroban RPC (SAC balance via contract simulation).

### add USDC trustline

```bash
./node_modules/.bin/tsx skills/check-balance/add-trustline.ts
```

- Idempotent — safe to re-run.
- Uses mainnet Circle issuer on pubnet (`GA5Z...KZVN`), testnet issuer on testnet.
- Costs one subentry (+0.5 XLM min balance).
- SAC-only users don't strictly need this, but any Classic USDC operation does.

### swap XLM → USDC

Two modes — pick whichever the user expressed naturally:

```b

skills/discover/SKILL.md

---
name: discover-mpprouter
description: Discover paid API services available via MPP Router (apiserver.mpprouter.dev) that accept Stellar USDC payments. Triggers on prompts like "summarize X using parallel.ai via MPPRouter", "search with exa via mpp", "find a service for <task>", "list mpp services", "what APIs can I pay for with stellar". Fetches the live service catalog, picks a matching service, and hands off to the pay-per-call sub-skill to actually invoke it.
---

# discover-mpprouter

High-level discovery for the MPP Router service catalog. Lets agents find and call paid APIs on Stellar mainnet without hardcoding URLs.

## What is MPP Router?

[MPP Router](https://www.mpprouter.dev) is a Stellar-native 402 proxy. It takes USDC payments on `stellar:pubnet` and forwards your request to upstream merchant APIs — Parallel.ai, Exa, Firecrawl, OpenRouter, and more. You pay once in Stellar USDC and get back whatever the upstream merchant returns. No need to hold USDC on Base/Tempo.

**Mainnet only.** The router does not run on testnet.

## When to trigger

- "Summarize https://stripe.com/docs using parallel.ai search via MPPRouter"
- "Search for X via exa through mpp"
- "Scrape this page with firecrawl — use stellar to pay"
- "List available MPP services"
- "What paid APIs can I call with stellar USDC?"
- User mentions `mpprouter` or `mpp router` by name

## Flow

1. **Discover** — `GET https://apiserver.mpprouter.dev/v1/services/catalog` returns the live service list.
2. **Match** — pick the service whose `id` or `category` best fits the user's intent. Ask the user if ambiguous.
3. **Read docs** — check the matched service's `docs` field:
   - If `docs.llms_txt` exists → fetch it and read the API schema to build the correct request body. **The router forwards bodies as-is — it does not transform or validate them.**
   - If only `docs.api_reference` → read that instead.
   - If only `docs.homepage` → browse it for the API format.
   - If no docs at all → ask the user for the request body format, or try a minimal probe.
4. **Invoke** — `{method} {base_url}{public_path}` with the correct request body. Use the `method` field from the catalog entry — most services are POST, but a few are GET; do not assume. Expect `402 Payment Required` with a Stellar challenge in `WWW-Authenticate: Payment request=...`.
5. **Pay** — hand off to `pay-per-call` with the 402 challenge; it produces a signed credential.
6. **Retry** — re-POST the same body with `Authorization: Payment <credential>`. Receive the upstream response + `Payment-Receipt` header.

## Service catalog

The catalog is live and large (~500 services). Always call
`/v1/services/catalog` fresh — never hardcode a list, never cache for
more than a minute.

### Payment-mode labels (IMPORTANT for the LLM)

The catalog exposes a `verified_mode` field per service. The discover
skill reads it and tags each record with a `payment_mode` string:

- **`charge`** (`✓ verified charge`) — end-to-end verified to wor

skills/onboard/SKILL.md

---
name: onboard
description: One-shot wallet readiness check for the Stellar agent wallet. Verifies the secret is loadable, the account is funded, the USDC Classic trustline is in place, and there is a USDC balance to pay with. Produces a scorecard with the exact next command for each missing piece. Optional --setup mode walks the user through adding the trustline and (on explicit request) swapping XLM for USDC. Triggers on "onboard", "set up wallet", "am I ready to pay", "first time", "get started", or before the user's first pay-per-call.
---

# onboard

The entry-point skill for a new user. Answers one question: **"Can I
pay an MPP Router / x402 API with this wallet right now?"** and, if
not, prints the exact command to fix each gap.

## When to trigger

- User says: "onboard", "set up wallet", "am I ready", "first time",
  "get started", "check my wallet".
- **Proactively, before the first pay-per-call.** If the user has never
  paid and there's no selected wallet / USDC in sight, run onboard
  rather than letting pay-per-call fail mid-flow.

## Not for

- Cross-chain bridging — use `bridge`.
- Ongoing balance checks during use — use `check-balance` (lighter).
- Key generation — use `scripts/generate-keypair.ts` (onboard never
  creates or overwrites a secret file).

## Checks

Run in order; the first failure is the one the user should fix first.

1. **Secret resolvable.** Reads from `--identity <name>` or `--secret-file`
   (default `.stellar-secret`), falling back to `.env.prod` then `.env` only
   when a secret file is missing. Only
   recognises these env keys, all validated against the Stellar strkey
   format `S[A-Z0-9]{55}`:
   - `STELLAR_SECRET` (preferred)
   - `STELLAR_SECRET_KEY`, `STELLAR_PRIVATE_KEY`, `STELLAR_PRIVATE` (legacy)

   If loaded from a legacy name, onboard warns and suggests renaming.
   **Never overwrites any existing file.** If the user has both an old
   and new key, we append a new `STELLAR_SECRET=` line rather than
   editing the old one — that migration step is manual by design.
2. **Account funded.** If Horizon returns 404 → the account has never
   received XLM. Report the pubkey so the user can top up.
3. **XLM reserve.** Stellar requires 1 XLM base + 0.5 XLM per subentry
   (the trustline counts). Onboard recommends ≥ 1.6 XLM (1 base + 0.5
   trustline + 0.1 cushion for fees and a swap).
4. **USDC Classic trustline.** Required to hold Classic USDC. SAC-only
   USDC doesn't need one, but Classic is what swaps, payouts, and most
   wallets use.
5. **USDC balance.** Sum of Classic + SAC. Zero means either receive a
   transfer from elsewhere or swap XLM on the DEX.
6. **.gitignore hygiene.** If a secret file lives inside a git repo and
   isn't matched by any `.gitignore` pattern, onboard warns. `--setup`
   refuses to proceed until the user adds it to `.gitignore` or passes
   `--i-know`.

## How to run

```bash
# Diagnose only — never spends, never writes.
./node_modules/.bin/tsx skills/onboard/run.ts

# I

Sponsored

Ads related to Stellar Agent Wallet and adjacent AI workflows.