# Coal - Payments for AI agents

> Use this tool when you need to enable autonomous payments for AI agents, allowing them to discover merchants, pay for products, and verify receipts without human intervention. Coal provides a decentralized payment solution with a multi-tenant server, gasless transactions, and secure receipt anchoring on 0G Chain. It accepts USDC on Base via x402 or OKX APP and returns verified download URLs, making it ideal for use cases requiring trusted, automated transactions.

Canonical page: https://skillsregistry.net/skills/coal-coal-payments  
JSON: https://api.skillsregistry.net/v1/skills/coal-coal-payments

## Description

# Coal

Coal gives AI agents a real checkout.

Discover merchants through the decentralized 0G Storage catalog, pay autonomously in USDC on Base via x402 (Coinbase) or OKX APP (v2 envelope), and download purchased products — all without a human in the loop.

Receipts are anchored on 0G Chain, allowing any third party to independently verify payments without trusting Coal itself.

The MCP server is fully multi-tenant: every user supplies their own wallet key through the `X-Coal-Agent-Key` header, meaning the server never stores long-lived private keys or custody secrets.

Agents are gasless by default — Coal covers operator gas costs.

---

## MCP Tools (13)

### Discovery & Marketplace

* `discover_merchants`
  Browse the marketplace as a Markdown product grid

* `search_products`
  Search and filter by product name, price, or tags

* `get_merchant_profile`
  Retrieve merchant metadata and payout addresses

* `query_merchant_memory`
  Natural-language merchant Q&A powered by TEE-backed 0G Compute

---

### Payments & Checkout

* `check_paywall`
  Check whether an address has already paid

* `create_checkout`
  Create a Coal checkout session *(requires API key)*

* `get_checkout_status`
  Retrieve checkout session state and payment status

* `pay_merchant`
  Send USDC on Base using ERC-3009 gasless transfers

---

### Verification & Delivery

* `verify_receipt`
  Verify the complete proof trail:

  1. Base transaction
  2. 0G Storage receipt
  3. 0G Chain anchor

* `download_product`
  Verify on-chain payment and return a signed download URL

---

### Infrastructure & Agent Utilities

* `get_0g_health`
  Check live 0G mainnet status

* `agent_wallet_status`
  View derived wallet address and USDC balance

* `setup_instructions`
  Print the full integration and setup guide

---

## Live Demos

* Claude paying $0.10 for an ebook end-to-end
  `https://agent.usecoal.xyz`

* x402 paywall demo
  `https://oracle.usecoal.xyz/api/price/ETH`

---

## Stack

* Dual-protocol support:

  * Coinbase x402
  * OKX APP

* Base USDC settlement

* 0G Storage receipts

* 0G Chain receipt anchoring

* 0G Compute Sealed Inference for policy execution

* ERC-3009 gasless payment flow

---

## Trust

- **Trust score (0–1):** 0.30
- **Verification tier:** unverified
- **Last scanned:** 2026-08-30

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-08-30

## Source

- **Source listing:** [Smithery](https://smithery.ai/server/coal/coal-payments)

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "coal-coal-payments"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/coal-coal-payments` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/coal-coal-payments/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
