npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stellar-agent/cli

v0.5.2

Published

Testnet-first CLI for safe agentic payments, policies, receipts, approvals, and guarded Mainnet workflows on Stellar.

Readme

@stellar-agent/cli

npm

Testnet-first command line interface for safe agentic payments, policies, receipts, approvals, Stellar contract workflows, DeFi preflight, and market-liquidity investigation.

Install

npm install -g @stellar-agent/cli
stellar-agent --help

You can also run it without a global install:

npx @stellar-agent/cli testnet doctor --json

Quickstart

stellar-agent testnet init
stellar-agent testnet smoke-test --json
stellar-agent receipts latest --json

The CLI defaults to Stellar Testnet. Generated local wallets are Testnet-only. Mainnet is disabled by default and local Mainnet auto-signing is blocked.

JSON Schema files for key --json payloads are included in the package under schemas/cli, for example @stellar-agent/cli/schemas/cli/pay-quote.schema.json and @stellar-agent/cli/schemas/cli/envelope.schema.json.

Common Workflows

stellar-agent wallet create-testnet agent --fund --json
stellar-agent pay quote --to G... --amount 1 --asset XLM --json
stellar-agent pay send --to G... --amount 1 --asset XLM --json
stellar-agent approval create-payment --to G... --amount 6 --json
stellar-agent approval open --port 8787 --token <session-token> --json
stellar-agent tx request-payment-signature --from treasury --to G... --amount 1 --json
stellar-agent approval sign-walletconnect appr_... --wallet lobstr --project-id "$WALLETCONNECT_PROJECT_ID" --json
stellar-agent tx submit-approval appr_... --json
stellar-agent demo market-aquarius --json
stellar-agent demo x402 --out ./demo-x402 --json
stellar-agent demo approval-flow --json
stellar-agent defi blend preflight --pool TestnetV2 --account agent --request supply_collateral:USDC:1 --json
stellar-agent defi aquarius swap preflight --from XLM --to AQUA --amount 0.01 --slippage-bps 100 --json
stellar-agent market listen config --file ./alerts.yaml --json

Command Map

| Command Group | Use For | | --- | --- | | testnet | Initialize, diagnose, fund, smoke-test, and run Testnet scenarios. | | wallet | Create Testnet wallets, import watch-only wallets, inspect balances, manage trustlines, and inspect WalletConnect signer sessions. | | pay | Quote, send, batch, x402-demo, and MPP-demo payments. | | demo | Create or summarize safe Testnet proof bundles for x402, approval flow, and market/Aquarius preflight. | | approval | Create, list, decide, serve, inspect, and externally sign local approval requests. | | tx | Build, request signatures for, and submit signed XDR. | | defi | Inspect and preflight Blend and Aquarius workflows. | | market | Inspect core Stellar liquidity pools, preflight LP actions, and run finite or config-file listeners. | | contract | Run Stellar CLI-backed Soroban contract workflows. | | ledger and receipts | Inspect ledgers, effects, payments, reports, and local receipts. | | policy | Write, check, print, and explain policy decisions. |

stellar-agent policy init --network local writes default-local.yaml; Testnet and Mainnet defaults use default-testnet.yaml and default-mainnet.yaml.

For stellar-agent policy explain --request ./payment-request.json, use the core request field destination, not the CLI flag name to:

{"destination":"G...","amount":"1","asset":"XLM","network":"testnet"}

Safety

  • Testnet is the default.
  • Mainnet requires explicit enablement and real-funds flags.
  • Secret keys are redacted from CLI output, logs, and receipts.
  • Policy checks run before submitted payment and protocol workflows.
  • WalletConnect and Freighter flows are external signing only; tx submit-approval remains the submission and receipt path.
  • Aquarius commands in this release are read-only or preflight-only.

Links

  • GitHub: https://github.com/someone-in-texas/Stellar-Agent
  • npm: https://www.npmjs.com/package/@stellar-agent/cli
  • GitHub releases: https://github.com/someone-in-texas/Stellar-Agent/releases
  • Mainnet safety: https://github.com/someone-in-texas/Stellar-Agent/blob/main/docs/mainnet-safety.md
  • Troubleshooting: https://github.com/someone-in-texas/Stellar-Agent/blob/main/docs/troubleshooting.md