Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d08ae83
Add the Hermes Agent manifests
0xDovah Oct 26, 2026
0c9135f
Guide Hermes Agent shoppers from product to payment
0xDovah Oct 26, 2026
f352865
Document Hermes sign-in and hardening
0xDovah Oct 26, 2026
7a5e32c
Document the Hermes Agent install
0xDovah Oct 26, 2026
840137f
Keep Hermes guest checkout local and behind the user's OK
0xDovah Nov 24, 2026
beb5645
Re-confirm a Hermes guest invoice that costs more than quoted
0xDovah Nov 24, 2026
f82cff9
Point Hermes users only at the catalog install
0xDovah Nov 24, 2026
70601d1
Show the decoded config of the Hermes install link
0xDovah Nov 24, 2026
94e628f
Find the Hermes connector among deferred tools
0xDovah Nov 24, 2026
97f7af0
Buy with the Hermes connector only in local sessions
0xDovah Nov 24, 2026
a628651
Say where npx keeps the Hermes guest CLI
0xDovah Nov 24, 2026
3df6e33
Promise the Hermes order prompt only for connector orders
0xDovah Nov 24, 2026
54f4290
Tighten Hermes refusals, chat-app reads and autonomous buying
0xDovah Nov 24, 2026
fee7b92
Let any wallet a Hermes agent has pay the invoice
0xDovah Nov 24, 2026
7168c77
Quote before every Hermes order and finish the wallet payment rules
0xDovah Nov 25, 2026
268af5e
Post the Hermes guest invoice before checking its status
0xDovah Nov 25, 2026
1020718
Close the remaining gaps in the Hermes refusal and payment rules
0xDovah Nov 25, 2026
2777d1a
Fix Hermes DM detection on Slack and the chat-app connect offer
0xDovah Nov 25, 2026
9f978b2
Run Hermes orders from an x402-only wallet on x402 checkout
0xDovah Nov 26, 2026
73cfae1
Add Hermes catalog submission and CI validation
purrgrammer Nov 26, 2026
cdefbc5
Bump to v4.1.0 and state the Hermes prompt exactly
purrgrammer Nov 26, 2026
09511b1
Check the invoice after a wallet error before telling the user to pay…
purrgrammer Nov 26, 2026
cf009de
Ask Hermes users to connect an account or continue as guest before th…
0xDovah Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"metadata": {
"description": "Agent skills and bundled eCommerce MCP connector for buying digital goods on Bitrefill with card, Apple Pay, Google Pay, crypto or balance",
"version": "4.0.0"
"version": "4.1.0"
},
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bitrefill",
"description": "Browse and buy gift cards, mobile top-ups, and eSIMs on Bitrefill — 1,500+ brands, 180+ countries, card, Apple Pay, Google Pay, crypto or balance payments",
"version": "4.0.0",
"version": "4.1.0",
"author": {
"name": "Bitrefill",
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bitrefill",
"description": "Browse and buy gift cards, mobile top-ups, and eSIMs on Bitrefill — 1,500+ brands, 180+ countries, card, Apple Pay, Google Pay, crypto or balance payments",
"version": "4.0.0",
"version": "4.1.0",
"author": {
"name": "Bitrefill",
"email": "[email protected]"
Expand Down Expand Up @@ -106,7 +106,7 @@
},
"publication": {
"countries": [],
"release_notes": "Purchases stay behind the user's explicit OK and quote the real charge; wallet and email sign-in resist spoofed messages; wallet pages list today's agent wallets; MCP/CLI invoices pay by balance, send or payment link (x402 only on x402 REST invoices); MCP uses OAuth or a Bearer-header API key. Portable plugin manifests, assets and release ZIP are validated."
"release_notes": "Adds Hermes Agent: the bundled connector asks before every order through a per-order spend limit, guest checkout runs the Bitrefill CLI through npx, and x402-only wallets pay on x402 checkout. CI validates the package with Hermes. Purchases stay behind the user's explicit OK and quote the real charge."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"category": "integrations",
"skills": "./skills/",
"mcpServers": "./.mcp.json",
"version": "4.0.0"
"version": "4.1.0"
}
15 changes: 15 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ jobs:
print(f'::error file={md}::broken link {link}')
bad = 1
sys.exit(bad)

hermes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# The same check the Hermes plugin catalog runs at admission. The action and the Hermes
# source are pinned to one release commit; bump both together.
- name: Validate the plugin with Hermes
uses: NousResearch/hermes-agent/.github/actions/plugin-validate@8fc0374447313e276f6b9a2764bfc750190c966a # v0.23.4
with:
path: ${{ github.workspace }}
hermes-ref: 8fc0374447313e276f6b9a2764bfc750190c966a
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ jobs:
Digital-goods commerce requires OpenAI policy review. Live MCP/OAuth
tests, demo recording, reviewer access, scans and attestations must be
completed before directory submission.
[OpenAI review preparation](https://github.com/bitrefill/agents/blob/${{ github.ref_name }}/docs/openai-review.md).
OpenAI review preparation: https://github.com/bitrefill/agents/blob/${{ github.ref_name }}/docs/openai-review.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This repository contains Bitrefill agent skills packaged as a portable **Agent P
/reload-plugins
```

Bundled **eCommerce MCP** ([`.mcp.json`](.mcp.json), OAuth on first call). Pin: `/plugin marketplace add bitrefill/agents#v4.0.0`.
Bundled **eCommerce MCP** ([`.mcp.json`](.mcp.json), OAuth on first call). Pin: `/plugin marketplace add bitrefill/agents#v4.1.0`.

### Claude Cowork

Expand All @@ -40,12 +40,12 @@ claude --plugin-dir ./

`/reload-plugins` after edits. Cursor: copy (not symlink) the repo to `~/.cursor/plugins/local/bitrefill`, run **Developer: Reload Window**, check **Customize** lists the skill and the `bitrefill` connector.

Before a release: `claude plugin validate .`. Its warning that this CLAUDE.md is not loaded as plugin context is expected, so CI runs it without `--strict`.
Before a release: `claude plugin validate .`. Its warning that this CLAUDE.md is not loaded as plugin context is expected, so CI runs it without `--strict`. Hermes: `hermes plugins validate . --install-deps` (Hermes ≥ 0.22.3); the `com.nousresearch.hermes` gate in `plugin.json` and the Desktop link in `touchpoints/mcp.md` § Hermes Agent carry the same values.

## Repository Structure

```
plugin.json # Portable identity and OpenAI metadata
plugin.json # Portable identity, OpenAI metadata, Hermes server trust + per-order spend limit
mcp.json # Portable MCP configuration
.codex-plugin/
plugin.json # Codex compatibility fallback
Expand All @@ -57,7 +57,7 @@ mcp.json # Portable MCP configuration
.mcp.json # eCommerce HTTP MCP, bundled by both manifests
.github/workflows/
release.yml # v*.*.* tag matching every version field → release with bitrefill.zip
check.yml # Pull requests: JSON parse, plugin validate, link check
check.yml # Pull requests: JSON parse, plugin validate (Claude, Hermes), link check
assets/ # Plugin logo
LICENSE # MIT
skills/
Expand Down Expand Up @@ -91,7 +91,7 @@ The marketplace (`marketplace.json`) lists plugins available for installation. T

## Releasing Updates

Keep the release version synchronized in root `plugin.json`, `.codex-plugin/plugin.json`, `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, `.claude-plugin/marketplace.json` (`metadata.version`), `skills/<name>/SKILL.md` (`metadata.version`) and the README, CLAUDE.md and `docs/openai-review.md` pins. Run `python -m unittest discover -s tests -v` and `python scripts/package_plugin.py --tag vX.Y.Z`, then after merge push tag `vX.Y.Z`: the release job fails unless every version matches, then publishes `bitrefill.zip` + `SHA256SUMS` (the ZIP excludes the marketplace catalog). OpenAI directory review requirements are tracked in `docs/openai-review.md`. Users update from the shell, or in a session with `/plugin` → **Installed** → **bitrefill** → **Update now**, then `/reload-plugins`:
Keep the release version synchronized in root `plugin.json`, `.codex-plugin/plugin.json`, `.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, `.claude-plugin/marketplace.json` (`metadata.version`), `skills/<name>/SKILL.md` (`metadata.version`) and the README, CLAUDE.md, `docs/openai-review.md` and `docs/hermes-catalog.md` pins. Run `python -m unittest discover -s tests -v` and `python scripts/package_plugin.py --tag vX.Y.Z`, then after merge push tag `vX.Y.Z`: the release job fails unless every version matches, then publishes `bitrefill.zip` + `SHA256SUMS` (the ZIP excludes the marketplace catalog). OpenAI directory review requirements are tracked in `docs/openai-review.md`. Hermes installs a catalog pin: `plugin-catalog/bitrefill.yaml` in NousResearch/hermes-agent names the release's 40-hex `sha` and `version`, so every release needs a catalog PR bumping both ([docs/hermes-catalog.md](docs/hermes-catalog.md) holds the entry and PR text); Hermes users then run `hermes plugins update bitrefill`. Claude Code users update from the shell, or in a session with `/plugin` → **Installed** → **bitrefill** → **Update now**, then `/reload-plugins`:

```shell
claude plugin update bitrefill@bitrefill-skills
Expand Down
43 changes: 38 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A unified, capability-aware agent skill for [Bitrefill](https://www.bitrefill.co
| Item | Status |
|------|--------|
| Repo | `bitrefill/agents` on GitHub |
| Skill | `bitrefill` v4.0.0 — capability-aware shopping and payment routing |
| Skill | `bitrefill` v4.1.0 — capability-aware shopping and payment routing |
| Plugin | Portable [plugin.json](plugin.json) + [mcp.json](mcp.json); compatibility manifests for Codex, Claude Code / Cowork (`.claude-plugin/`) and Cursor / Grok Bot (`.cursor-plugin/`); all bundle the [eCommerce MCP](https://docs.bitrefill.com/docs/ecommerce-mcp) |
| Spec | [Agent Skills](https://agentskills.io/specification) compliant |

Expand All @@ -27,7 +27,7 @@ OpenAI public-directory review is separate. Bitrefill supports digital-goods pur
/reload-plugins
```

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

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

Expand All @@ -41,6 +41,38 @@ claude plugin update bitrefill@bitrefill-skills

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`](.mcp.json) (OAuth with your Bitrefill account). Host guide → [grok-bot.md](skills/bitrefill/references/harnesses/grok-bot.md).

### Hermes Agent (plugin: skill + MCP)

Hermes ≥ 0.22.3:

```bash
hermes plugins install bitrefill --enable
hermes mcp add bitrefill --url https://api.bitrefill.com/mcp --auth oauth --connect-timeout 300
hermes config set mcp_servers.bitrefill.trust untrusted
```

```mermaid
flowchart TD
A["Install the plugin"] --> B["Ask Hermes to buy"]
B --> C{"Bitrefill account connected?"}
C -- yes --> M["Bitrefill connector:<br/>Hermes asks before each order"]
C -- no --> Q{"Connect your account<br/>or continue as guest?"}
Q -- "connect (sign in on the Hermes machine)" --> M
Q -- guest --> W{"Agent's wallet"}
W -- "none, or one that sends" --> G["Guest order:<br/>Bitrefill CLI via npx"]
W -- "pays only x402 (AgentCash)" --> X["x402 checkout,<br/>paid by that wallet"]
M --> P{"Who pays, after your yes"}
G --> P
P -- "your Bitrefill balance (connected account)" --> D["Code delivered in the chat"]
P -- "the agent's wallet sends the exact amount" --> D
P -- "you pay the link or address yourself" --> D
X --> D
```

Every route quotes the total first and waits for your yes. In chat apps (Telegram, Discord…) the agent doesn't ask to connect and orders go the guest way.

`bitrefill` is the Hermes plugin catalog entry. The plugin marks the server untrusted so Hermes asks before every order; `mcp add` resets that, so run the last line only after it prints `Saved 'bitrefill'`. Root [`plugin.json`](plugin.json) + [`mcp.json`](mcp.json) give Hermes the skill and the connector; `mcp add` signs in with your Bitrefill account (OAuth; Hermes stores the tokens per profile). Sign in on the Hermes machine, not in chat; SSH and Hermes Desktop → [mcp.md](skills/bitrefill/references/touchpoints/mcp.md) § Hermes Agent. Connector purchases spend real money: Hermes asks before every order, also under `/yolo`, each answer covers only that order, and the connector never buys in cron or other unattended runs. That prompt comes from the plugin, so run `hermes mcp remove bitrefill` before you disable or remove it. Every chat of a signed-in profile (Telegram, Discord…) shares its Bitrefill account, so the skill buys with it only in a local session (CLI, TUI, Desktop); in a chat app it only searches and quotes from your account (never balances, orders or codes) and checks out as a guest. On the gateway, allow only yourself: Hermes's session search lets any allowed user read earlier sessions, codes included. Without sign-in the skill checks out as a guest by running `npx -y @bitrefill/[email protected]` in the terminal (needs Node.js; downloads the CLI and its dependencies from npm into the npm cache; sends your email to api.bitrefill.com; keeps a guest token in `~/.config/bitrefill-cli/`; no Hermes prompt, since it only opens invoices you pay by link or crypto). Until you sign in, Hermes logs at startup that the `bitrefill` connector returned 401; that is expected. Hermes keeps tool results in its local session history, including a guest invoice's access token, which unlocks the code: treat that history as private. If the agent has a crypto wallet (a wallet MCP or CLI), the skill pays crypto invoices from it after your yes; a wallet that only pays x402 (AgentCash) runs the whole order on Bitrefill's x402 checkout instead, signed in with the wallet's address. That wallet's own approvals and caps decide whether it asks again, and in a chat app the yes comes from whoever is in the chat. Hardening for `terminal` and `execute_code` → [safeguards.md](skills/bitrefill/references/safeguards.md) § Hermes. Tools and their instructions come from Bitrefill's server at runtime, not from the installed commit; without the skill loaded, those instructions point the model at `https://www.bitrefill.com/agents/SKILL.md`. Tool results reach your model provider. Feedback sends Bitrefill the note with your account id, IP, user agent and country; the skill sends it only when you ask. The skill's wallet sign-in scripts are for other hosts. Host guide → [hermes.md](skills/bitrefill/references/harnesses/hermes.md). Bitrefill [Terms](https://www.bitrefill.com/terms/) and [Privacy Policy](https://www.bitrefill.com/privacy/) apply.

### skills CLI

```bash
Expand Down Expand Up @@ -124,7 +156,8 @@ skills/bitrefill/
│ ├── capability-matrix.md
│ ├── openclaw.md
│ ├── claude-chat.md
│ └── grok-bot.md
│ ├── grok-bot.md
│ └── hermes.md
├── touchpoints/
│ ├── mcp.md
│ ├── x402.md
Expand Down Expand Up @@ -156,8 +189,8 @@ Build and validate with Python 3.13 or newer:
```bash
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
python scripts/package_plugin.py --tag v4.1.0
python scripts/package_plugin.py --validate dist/bitrefill.zip --tag v4.1.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.
Expand Down
Loading
Loading