Skip to content
bitrefillPublic

About

Agent skills for Bitrefill: browse, buy, and manage gift cards, mobile top-ups, and eSIMs from AI coding agents. Agent Skills spec compliant. Works with Claude Code, Cursor, npx skills.

Topics

Resources

Stars

30 stars

Watchers

0 watching

Forks

Repository files navigation

Bitrefill Agent Skills

A unified, capability-aware agent skill for Bitrefill — enabling AI agents to browse, buy, and manage gift cards, mobile top-ups, and eSIMs across 180+ countries with crypto, Lightning, USDC via x402, pre-funded account balance, card, Apple Pay or Google Pay.

Status

Item Status
Repo bitrefill/agents on GitHub
Skill bitrefill v4.0.0 — capability-aware shopping and payment routing
Plugin Portable plugin.json + mcp.json; compatibility manifests for Codex, Claude Code / Cowork (.claude-plugin/) and Cursor / Grok Bot (.cursor-plugin/); all bundle the eCommerce MCP
Spec Agent Skills compliant

Installation

ChatGPT / Codex (plugin: skill + MCP)

Download bitrefill.zip from the latest GitHub release. It contains root Agent Plugins 1.0 manifests, OpenAI listing metadata, a Codex compatibility manifest, the skill and its resources, and the logo. Connect your Bitrefill account through the host's OAuth flow; no credentials are bundled. Install from an available local or development plugin source using your host's supported flow. A GitHub release does not install the plugin into OpenAI's public directory.

OpenAI public-directory review is separate. Bitrefill supports digital-goods purchases, which require resolution with OpenAI under the current commerce guidelines. See OpenAI review preparation for verified checks, review cases, and remaining materials. This package is not an approved directory listing.

Claude Code / Cowork (plugin: skill + MCP)

/plugin marketplace add bitrefill/agents
/plugin install bitrefill@bitrefill-skills
/reload-plugins

Registers the bitrefill skill and eCommerce MCP (.mcp.json); OAuth on first MCP call. Pin: /plugin marketplace add bitrefill/agents#v4.0.0.

Update from your shell, or in a session with /plugin → Installed → bitrefill → Update now, then /reload-plugins:

claude plugin update bitrefill@bitrefill-skills

Cowork: Customize → Plugins → add bitrefill/agents → install bitrefill. claude.ai: Connectors only → claude-chat.md. Other hosts → mcp.md.

Cursor / Grok Bot (plugin: skill + MCP)

Cursor: copy this repo to ~/.cursor/plugins/local/bitrefill and run Developer: Reload Window; once Bitrefill is listed on Cursor Marketplace, Customize → Bitrefill → Install. Grok Bot installs it from that listing. Both get the skill and the connector in .mcp.json (OAuth with your Bitrefill account). Host guide → grok-bot.md.

skills CLI

npx skills add bitrefill/agents

With a specific agent (e.g. Cursor):

npx skills add bitrefill/agents -a cursor -y

OpenClaw

Via the cross-host installer:

npx skills add bitrefill/agents -a openclaw -y

Or via OpenClaw's own ClawHub registry:

openclaw skills install bitrefill
openclaw gateway restart

Then wire the eCommerce MCP for typed purchase tools:

openclaw mcp set bitrefill '{"url":"https://api.bitrefill.com/mcp","transport":"streamable-http","auth":"oauth"}'
openclaw mcp login bitrefill

Connect with OAuth or configure Authorization: Bearer $BITREFILL_API_KEY using the host's supported secret/header settings. Keep credentials out of URLs.

Full setup, channel-aware scenarios, and hardening: skills/bitrefill/references/harnesses/openclaw.md.

What the plugin uses

  • Connector: https://api.bitrefill.com/mcp (HTTP, OAuth with your Bitrefill account, no API key): search, product details, buy, order updates, invoices, balances, saved cards, help articles.
  • Guest checkout (no account): npm @bitrefill/cli from registry.npmjs.org and an email; else a www.bitrefill.com link.
  • Optional APIs: api.bitrefill.com/v2 (BITREFILL_API_KEY); api.bitrefill.com/x402 through a wallet tool you already installed (e.g. Coinbase Wallet MCP, AgentCash), which pays any pay-per-call lookups, or direct HTTP. The skill never asks for private keys or seed phrases.
  • Bundled scripts: scripts/siwx_*.js use Node built-ins only, accept sign-in challenges only from https://api.bitrefill.com, write an unsigned sign-in draft to /tmp/siwx_payload.json and send the signed one back to api.bitrefill.com.
  • Headless sign-in (optional): an agent inbox such as AgentMail (agentmail-cli / agentmail-mcp from registry.npmjs.org, AGENTMAIL_API_KEY, api.agentmail.to); TOTP from the 1Password CLI (op, your own vault).

Each purchase is confirmed with you unless you opt into autonomous buying. Bitrefill Terms and Privacy Policy apply.

Skill

Skill Description
bitrefill Capability-driven routing: probe harness (exec, egress, MCP), pick touchpoint (Bitrefill MCP, x402 REST, CLI, API, browse), then wallet (balance, x402, send). Includes OpenClaw, Claude Chat, Grok Bot / Cursor, Hermes, ChatGPT + Coinbase Wallet MCP, and a matrix of agent wallets that can pay.

Structure

plugin.json                  # Agent Plugins 1.0 identity and OpenAI metadata
mcp.json                     # Portable Streamable HTTP MCP connection
.codex-plugin/plugin.json    # Codex compatibility manifest
assets/logo.png
.mcp.json                    # Claude / Cursor / older Codex MCP configuration
.claude-plugin/
├── plugin.json
└── marketplace.json
.cursor-plugin/
└── plugin.json
.github/workflows/
├── release.yml
└── check.yml
assets/
LICENSE
skills/bitrefill/
├── SKILL.md
├── scripts/
│   ├── siwx_build_message.js
│   └── siwx_send.js
└── references/
    ├── harnesses/
    │   ├── decision-engine.md
    │   ├── capability-matrix.md
    │   ├── openclaw.md
    │   ├── claude-chat.md
    │   └── grok-bot.md
    ├── touchpoints/
    │   ├── mcp.md
    │   ├── x402.md
    │   ├── cli.md
    │   ├── cli-headless-auth.md
    │   ├── api.md
    │   └── browse.md
    ├── wallets/
    │   ├── matrix.md
    │   ├── payment.md
    │   ├── base-mcp.md
    │   ├── siwx.md
    │   ├── agentcash.md
    │   ├── cdp-awal.md
    │   ├── metamask.md
    │   ├── kite-passport.md
    │   ├── bankr.md
    │   ├── alby.md
    │   ├── tether-wdk.md
    │   └── pay.md
    ├── safeguards.md
    └── troubleshooting.md

Contributing

Build and validate with Python 3.13 or newer:

python -m pip install -r requirements-dev.txt
python -m unittest discover -s tests -v
python scripts/package_plugin.py --tag v4.0.0
python scripts/package_plugin.py --validate dist/bitrefill.zip --tag v4.0.0

The release workflow validates tagged versions, packages the complete plugin as bitrefill.zip, and publishes it with SHA256SUMS. It excludes marketplace catalogs, development files and credentials. Keep versions synchronized across the portable, Codex, Claude and Cursor manifests, marketplace metadata and skill metadata.

To add a new skill:

  1. Create a new directory under skills/ (e.g., skills/my-skill/)
  2. Add a SKILL.md file with valid YAML frontmatter (name, description) and agent instructions
  3. Optionally add a references/ subdirectory with supporting documentation
  4. Bump the version fields → CLAUDE.md § Releasing Updates (skills are auto-discovered)

Skill names must be lowercase with hyphens and match the directory name exactly.

Documentation

For the full Agent Skills specification, see agentskills.io/specification.

License

MIT

About

Agent skills for Bitrefill: browse, buy, and manage gift cards, mobile top-ups, and eSIMs from AI coding agents. Agent Skills spec compliant. Works with Claude Code, Cursor, npx skills.

Topics

Resources

Stars

30 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages