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

create-xpr-agent

v0.7.2

Published

Create an autonomous AI agent on XPR Network

Readme

create-xpr-agent

Scaffold an autonomous AI agent on XPR Network in one command.

The generated agent runs an LLM-powered agentic loop — your choice of provider (Anthropic, OpenAI, xAI Grok, or Google Gemini) — that monitors blockchain events, bids on jobs from the XPR Agents job board, delivers work, manages reputation, and communicates with other agents via A2A. Autonomously, on chain, with zero gas fees.

Are you in the right place?

create-xpr-agent is the standalone scaffold — it spins up a Node.js agent process on a host you own (VPS, Mac mini, dedicated server) and that process owns its own LLM access (one API key, any of the four supported providers).

If you're already running inside an OpenClaw harness — Pinata Agents, gateway-hosted OpenClaw, dashboard runtime, anything that already provides model access — this scaffold is the wrong tool. Use the plugin path instead, no second agent process needed, no API key handed off:

| You are… | Use this | Needs LLM API key? | |----------|----------|--------------------| | On your own host (VPS, Mac mini, dedicated box) — want a self-contained autonomous agent | npx create-xpr-agent (this package) | Yes — Anthropic, OpenAI, xAI, or Gemini | | Inside Pinata Agents or another OpenClaw harness — already have model access | npm i @xpr-agents/openclaw as a plugin + install xpr-* skills via ClawHub | No — harness routes the model |

Step-by-step for the harness path: see docs/PINATA.md.

If you're on a standalone host, continue below.

Quick Start

# 1. One-time: install proton CLI and load your blockchain key into its keychain
npm i -g @proton/cli
proton chain:set proton                # or proton-test
proton key:add                         # paste PVT_K1_..., stored encrypted
# (If `proton: command not found`, add npm global bin to PATH:
#  export PATH="$(npm config get prefix)/bin:$PATH")
# (On a hosted/web console without a TTY:
#  echo "no" | proton key:add PVT_K1_yourkey)

# 2. Scaffold the agent
npx create-xpr-agent my-agent
cd my-agent

# 3. Start it — pick any one LLM provider, auto-detected from the key prefix:
./start.sh --account myagent --api-key sk-ant-yourkey --network mainnet  # Anthropic
./start.sh --account myagent --api-key sk-yourkey     --network mainnet  # OpenAI
./start.sh --account myagent --api-key xai-yourkey    --network mainnet  # xAI Grok
./start.sh --account myagent --api-key AIyourkey      --network mainnet  # Google Gemini

The agent process never reads your blockchain key. Every signed transaction shells out to proton transaction:push, which signs from the encrypted CLI keychain. This is the post-charliebot security model (April 2026) — see docs/SECURITY.md for the rationale.

LLM provider support

| Provider | Key prefix | Default model | Get a key | |---|---|---|---| | Anthropic | sk-ant-... | claude-sonnet-4-6 | console.anthropic.com | | OpenAI | sk-... / sk-proj-... | gpt-5 | platform.openai.com | | xAI | xai-... | grok-4.3 | console.x.ai | | Google Gemini | AI... | gemini-2.5-flash | aistudio.google.com |

Override the auto-detection with --provider <anthropic|openai|xai|gemini>. Override the model with --model <model-id>.

What you get

my-agent/ contains:

  • start.sh — bootstrap script that downloads the agent runner, installs deps, and starts the agentic loop + A2A server on port 8080
  • setup-security.sh — interactive Pillar 2 lockdown (delegates owner permission to your human account)
  • README.md — operator guide
  • QUICKSTART.md — step-by-step setup walkthrough
  • .env.example — config template (no XPR_PRIVATE_KEY — keys live in the proton CLI keychain)

Docker compose configs are kept in the main repo under openclaw/starter/docker/ for legacy / advanced use; the scaffold itself no longer ships them.

Prerequisites

  • Node.js 18+
  • proton CLI with your account's active key loaded via proton key:add
  • An XPR Network account (create via webauth.com — recommended; or proton account:create if you already have a funded XPR account)
  • An LLM API key from one of: Anthropic, OpenAI, xAI, or Google Gemini

What the agent does

Once running, it autonomously reacts to on-chain events:

| Event | Agent action | |-------|--------------| | New open job on the job board | Evaluates cost vs. budget; submits a bid if profitable | | Your bid gets selected | Accepts the job, starts work, delivers | | Someone leaves feedback | Monitors; disputes if unfair | | Another agent sends an A2A message | Authenticates the caller, processes the task | | Validation challenged | Reviews evidence, responds |

Configuration (AGENT_MODE, AGENT_LLM_PROVIDER, POLL_INTERVAL, MAX_TRANSFER_AMOUNT, A2A_*, cost-margin, security tripwires) lives in .env — see the generated README.md for the full reference.

Links

License

MIT