Surf Crypto Data API
BlockRunAI/blockrun-mcp
Routes crypto market, on-chain, wallet and prediction-market lookups to the Surf data API through a local ClawRouter, paid per call.
Uploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference.
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-upload --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .claude/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .claude/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-uploadType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-upload --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .agents/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .agents/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-upload --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .cursor/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .cursor/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/internet-court/internet-court-skill.git --path vendored/kleros/kleros-ipfs-upload--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-upload --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .gemini/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .gemini/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-uploadInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .github/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .github/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install internet-court/internet-court-skill kleros-ipfs-upload --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/vendored/kleros/kleros-ipfs-upload .opencode/skills/kleros-ipfs-upload && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "kleros-ipfs-upload" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/kleros/kleros-ipfs-upload into .opencode/skills/kleros-ipfs-upload/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kleros-ipfs-upload", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
kleros-ipfs-uploadUploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference.
The skill sends Kleros ecosystem files to the gateway at kleros-ipfs-gateway.fly.dev, which is protected by x402 and charges 0.01 USDC per upload on Base mainnet. The returned CID is content-addressed and works through any IPFS gateway, and Kleros's Graph Node indexes it so subgraphs can find it. The gateway is a reverse proxy in front of a Filebase-backed pinning service run by Kleros.
It is meant for dispute evidence, MetaEvidence JSON, court, dispute and arbitrator policies, Curate item metadata and juror justifications, or for an end-to-end test of the gateway itself. Generic IPFS requests without a Kleros connection should go to a general pinning service instead. Each request takes exactly one file, different bytes need separate paid uploads, and identical bytes should reuse one CID. Two TypeScript scripts, pay-and-upload.ts and pay-and-upload-cdp.ts, handle the payment and upload.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fa89195. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 3 files in scripts/ (TypeScript), which the agent can run.
Shell commands in SKILL.md call:
npxnpmcurljqnodeFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
kleros-ipfs-gateway.fly.devcdn.kleros.linkFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
EVM_PRIVATE_KEYCDP_API_KEY_IDCDP_API_KEY_SECRETCDP_WALLET_SECRETAPI_KEY_IDAPI_KEY_SECRETWALLET_SECRETFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Kleros IPFS Upload loads about 4.9k tokens when it runs. Until then it costs about 197 tokens; SKILL.md has 2,294 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
mmand line, point `CDP_CREDS_PATH` at a `.env`-style file containing `CDP_API_KEY_ID`, `CDP_API_KEY_SECRET`, `CDP_WALLETAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from internet-court/internet-court-skill at commit fa89195, republished under its MIT licence (© internet-court). 2,294 words, ~4,948 tokens.
.claude/skills/kleros-ipfs-upload/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Upload Kleros-ecosystem files to IPFS via https://kleros-ipfs-gateway.fly.dev/upload-to-ipfs, an x402-protected gateway that charges $0.01 USDC per upload on Base mainnet. The returned IPFS CID is content-addressable and dereferenceable through any IPFS gateway, and indexed by Kleros's Graph Node for subgraph discoverability.
The gateway is a thin reverse-proxy in front of a Filebase-backed pinning service operated by Kleros. Every upload is pinned to Filebase indefinitely as long as Kleros runs the gateway — a reasonable assumption for artifacts the Kleros ecosystem itself depends on (the team has a strong incentive to keep this live), but not a substitute for a general-purpose pinning provider if the content is unrelated to Kleros.
Trigger this skill when the user is uploading Kleros-ecosystem content:
kleros-ipfs-gateway.fly.dev etc.) or this skill.You are free to upload whatever the user wants (they're paying), but absent a Kleros connection there's no reason to prefer this skill over a general-purpose alternative.
Two paths depending on what your agent already has:
x402-fetch): skip the bundled scripts and inline the snippet further down — the gateway is a plain POST /upload-to-ipfs behind a standard x402 paywall, nothing Kleros-specific in the payment flow.scripts/pay-and-upload.ts end-to-end — it exists so x402-unaware agents don't have to rediscover the flow:cd path/to/this-skill/scripts
npm install
EVM_PRIVATE_KEY=0xYourPayerKey npx tsx pay-and-upload.ts /path/to/file.jsonnpm install creates a package-lock.json and a node_modules/ in the scripts dir — both are fine to leave in place or delete after use; not committed to the skill on purpose so dep versions stay fresh.
On success the script prints every CID reported by the gateway, one per line (so you can capture the normal
single CID with $(npx tsx pay-and-upload.ts ...)). The array-shaped response is legacy API structure, not
batch-upload support. On failure the script exits non-zero and logs the gateway's error body to stderr.
Defaults: OPERATION=evidence, GATEWAY_URL=https://kleros-ipfs-gateway.fly.dev. Override OPERATION with an env var; see the "Request shape" section for valid values.
Each paid request must contain exactly one multipart part named file. Never append multiple file parts or
batch different files into one request. If two files have different content, make two separate paid uploads —
one request and one payment per file. This applies even when the files belong to the same Curate or dispute
workflow.
IPFS CIDs are content-addressed. If the same byte-for-byte file is needed in multiple places, upload it once and reuse the returned CID everywhere. Do not make a second paid upload for the same policy PDF, logo image, evidence display interface, or other identical file just because multiple Kleros artifacts reference it.
For multi-artifact jobs, keep a small artifact map before submitting transactions:
policy.pdf -> /ipfs/<CID>logo.png -> /ipfs/<CID>registrationMetaEvidence.json -> /ipfs/<CID>clearingMetaEvidence.json -> /ipfs/<CID>evidenceDisplayInterface -> /ipfs/<CID>/index.htmlWhen a shared policy, logo, or evidence display interface is referenced by both registration and clearing MetaEvidence JSON, put the same CID in both JSON files. Reuse CIDs only for exact same files. If a file changes by even one byte, make a separate paid upload for each distinct file and label each CID clearly. Registration and clearing MetaEvidence JSON are therefore separate uploads whenever their JSON bytes differ, even when both reference the same reusable policy, logo, or evidence display interface CIDs.
If you're writing your own client inside an existing Node project, the core is small enough to inline:
import { wrapFetchWithPayment, createSigner } from "x402-fetch";
const operation = process.env.OPERATION ?? "evidence";
const signer = await createSigner("base", privateKey);
const fetchWithPay = wrapFetchWithPayment(fetch, signer);
const form = new FormData();
form.append("file", new Blob([bytes]), "evidence.json");
const url = `https://kleros-ipfs-gateway.fly.dev/upload-to-ipfs` +
`?operation=${encodeURIComponent(operation)}`;
const res = await fetchWithPay(url, { method: "POST", body: form });
const { cids } = await res.json();
if (!Array.isArray(cids) || cids.length === 0) throw new Error("Gateway returned no CID");
const cid = cids[0];x402-fetch handles the 402 Payment Required challenge, signs an EIP-3009 transferWithAuthorization over USDC, and retries the request with the X-PAYMENT header. The caller sees a normal 200 response containing the result for that one uploaded file.
Before any paid call, verify the gateway is healthy with three free curls. None of these spend USDC; they're idempotent and safe to run as often as you like.
# 1. Liveness
curl -sS https://kleros-ipfs-gateway.fly.dev/health
# expect: ok
# 2. Live config (price, network, payee, USDC contract)
curl -sS https://kleros-ipfs-gateway.fly.dev/.well-known/x402 | jq .
# or the spec-canonical equivalent: /discovery/resources
# 3. Unpaid 402 challenge — confirms x402 enforcement is on and shows the live payment terms
curl -sS -X POST https://kleros-ipfs-gateway.fly.dev/upload-to-ipfs?operation=evidence \
-F file=@/path/to/anyfile.txt | jq .
# expect: {"error":"X-PAYMENT header is required", "accepts":[...], "x402Version":1}If all three return as expected, you can proceed to the paid call with confidence. If any fail, surface the error to the user before burning a key on a paid attempt.
This skill targets Base mainnet only. Every paid upload costs real USDC, settled on-chain via the Coinbase CDP x402 facilitator. The payer wallet must hold USDC on Base; native USDC contract: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.
The payer does not need ETH for gas. The facilitator sponsors gas on Base when paying via EIP-3009.
If the user doesn't already have a Base wallet ready:
Generate a key — any EVM-compatible keypair works. Run this to print a fresh one:
node -e "import('viem/accounts').then(m => console.log(m.generatePrivateKey()))"Fund it — send USDC on Base to the derived address. Any centralised exchange that supports Base withdrawals works.
Store the key in EVM_PRIVATE_KEY.
Hosted agents (OpenClaw, server-side workers, anything running with Coinbase CDP credentials) don't need an exported private key. CDP server accounts implement signTypedData() directly, which is exactly what x402-fetch.wrapFetchWithPayment needs to sign the EIP-3009 USDC authorization — so the CDP account object is passed straight to the SDK with no adapter code.
A bundled runner ships at scripts/pay-and-upload-cdp.ts for agents that prefer a ready-made entrypoint — agents already using wrapFetchWithPayment with a CDP account can skip it and inline the snippet further down:
cd path/to/this-skill/scripts
npm install
CDP_API_KEY_ID=... \
CDP_API_KEY_SECRET=... \
CDP_WALLET_SECRET=... \
CDP_ACCOUNT_NAME=blaise-main \
npx tsx pay-and-upload-cdp.ts /path/to/file.jsonOutput is the same as pay-and-upload.ts (the CID on stdout, diagnostics on stderr). The script also prints the payer address and Base mainnet USDC balance to stderr before posting, so you'll spot an underfunded wallet immediately.
If you'd rather not pass four env vars on the command line, point CDP_CREDS_PATH at a .env-style file containing CDP_API_KEY_ID, CDP_API_KEY_SECRET, CDP_WALLET_SECRET, and CDP_ACCOUNT_NAME (or their un-prefixed API_KEY_ID / API_KEY_SECRET / WALLET_SECRET / ACCOUNT_NAME variants — the script accepts either).
For your own client code, the integration is one extra import and two extra lines vs. the raw-key path:
import { CdpClient } from "@coinbase/cdp-sdk";
import { wrapFetchWithPayment } from "x402-fetch";
const cdp = new CdpClient({ apiKeyId, apiKeySecret, walletSecret });
const account = await cdp.evm.getAccount({ name: "blaise-main" });
const fetchWithPay = wrapFetchWithPayment(fetch, account);
// ... build FormData and POST as in QuickstartThe CDP account is passed where the docs would otherwise show an EVM signer — no other change is needed.
The endpoint is POST /upload-to-ipfs with:
Query string:
operation (required, string) — a free-form tag describing what kind of artifact is being uploaded. The upstream Netlify function accepts any string; the conventional values in the Kleros ecosystem are:
| Value | Use case |
|---|---|
evidence | Dispute evidence — screenshots, documents, binaries. Use this for anything that doesn't fit another category. |
meta-evidence | Meta-evidence JSON referenced by a court / arbitrator / dispute smart contract (rules, party agreements, policies). |
justification | Juror / arbitrator justification payloads. |
| any other string | Accepted as-is. Use sparingly — the conventions above keep ecosystem tooling consistent. |
Body: multipart/form-data with exactly one part named file. Never append a second file part. Upload
every distinct file in its own paid request; reuse the first CID instead of reuploading identical bytes.
Headers: X-PAYMENT is added automatically by the x402-fetch wrapper. Do not hand-craft it.
Size limit: the gateway caps the total request body at 4 MiB (4,194,304 bytes) and replies 413 Payload Too Large for anything bigger. The check runs before the x402 paywall, so an oversize attempt does not spend USDC. Multipart framing adds a small overhead on top of raw file bytes — if a single file is near the limit, expect a 413; shrink or compress it, or split it into distinct files and upload each through a separate paid request. Sanity-check sizes locally before posting:
test "$(stat -f%z /path/to/file)" -le 4194304 || echo "too big for the Kleros gateway"On success the gateway returns 200 with JSON:
{
"message": "File has been stored successfully",
"cids": ["/ipfs/QmXXX..."],
"urls": ["https://cdn.kleros.link/ipfs/QmXXX..."],
"inconsistentCids": []
}Prefer urls[0] — the gateway pre-builds a ready-to-use HTTP URL using the canonical Kleros IPFS gateway (https://cdn.kleros.link). Just give that to the user.
cids[0] is the protocol form, prefixed with /ipfs/ (e.g. /ipfs/QmXXX...). Keep it if you need to embed the CID in a smart-contract call or an ipfs:// URI; ignore it if you only need a clickable URL.
If you ever need to build a URL yourself (older response without urls, or pointing at a different gateway):
| You want | How to build it (where cid = cids[0], e.g. /ipfs/QmXXX...) |
|---|---|
| Kleros HTTP gateway URL | "https://cdn.kleros.link" + cid (or just use urls[0]) |
ipfs:// URI | "ipfs://" + cid.replace(/^\/ipfs\//, "") → ipfs://QmXXX... |
| Bare hash only | cid.replace(/^\/ipfs\//, "") → QmXXX... |
Do not write https://cdn.kleros.link/ipfs/${cid} — that produces a double-slash path because cid already starts with /ipfs/. Use urls[0] instead and avoid the trap entirely.
The response schema uses arrays for legacy compatibility, but that shape is not permission to batch files.
A normal one-file request returns one cids[0] and, in current responses, one urls[0]. Require at least
one CID. If the gateway returns extra entries, surface them as unexpected; if an older response omits
urls, build the HTTP URL from cids[0] as shown above.
inconsistentCids is [] in the happy path. If non-empty, Filebase and the Graph index produced different hashes for the same file — surface this to the user as a warning; the cids[] value still resolves but the data integrity guarantee is weaker.
| Status | Meaning | What to do |
|---|---|---|
200 | Success. Require cids[0]; use urls[0] when present or derive the URL from the CID. | Surface extra entries as unexpected; they do not imply batch support. |
400 | Missing operation query param. | Add ?operation=evidence (or another tag). |
402 | Payment challenge. | Should never reach user code — x402-fetch handles it transparently. If it bubbles up, the wrapper wasn't applied. |
413 | Request body exceeds 4 MiB. No USDC spent — the check runs before the paywall. | Shrink or compress it, or split it and upload each resulting file separately. |
5xx | Transient upstream issue (Filebase, Graph Node, or the gateway itself). | Retry once after a short delay. Don't hammer. |
| Facilitator error during 402 → 200 retry | CDP rate-limit, signing failure, insufficient USDC. | Inspect the wrapper's thrown error; check wallet balance and key correctness. |
The gateway publishes its current config at two equivalent endpoints (same handler, identical body):
GET https://kleros-ipfs-gateway.fly.dev/.well-known/x402GET https://kleros-ipfs-gateway.fly.dev/discovery/resourcesHit either to verify the live price, network, payee, and USDC contract. The body conforms to the x402 ListDiscoveryResourcesResponse schema.
When asked to test, validate, or sanity-check the gateway end-to-end (a legitimate trigger — see the description's exception clause), follow this recipe. Costs $0.01 USDC on Base mainnet; the only "free" path is the pre-flight curls above.
Create a tiny payload file:
echo "kleros gateway smoke test $(date -u +%Y-%m-%dT%H:%M:%SZ)" > hello-world.txtRun the upload using whichever script matches your wallet (raw key or CDP server account):
# Raw key path:
EVM_PRIVATE_KEY=0x… npx tsx pay-and-upload.ts hello-world.txt
# OR CDP server account path:
CDP_API_KEY_ID=… CDP_API_KEY_SECRET=… CDP_WALLET_SECRET=… \
CDP_ACCOUNT_NAME=… npx tsx pay-and-upload-cdp.ts hello-world.txtCapture the CID line printed on stdout (something like /ipfs/QmAbc...), and read the url=… line printed on stderr — that's the ready-to-use Kleros HTTP gateway URL.
Verify the file is actually pinned and retrievable by GETting that URL:
curl -sS https://cdn.kleros.link/ipfs/QmAbc... # paste the bare CID
# expect: the bytes of hello-world.txtGreen on all four steps = the gateway, the payment path, the IPFS pin, and the Kleros CDN are all healthy end-to-end. Report success to the user; do not loop on extra paid uploads "just to be sure" — one round-trip is sufficient evidence.
Example 1 — agent uploads dispute evidence:
User: "I have a screenshot at /tmp/exhibit-a.png that I want to attach to a Kleros dispute. Pin it to IPFS for me."
Steps:
EVM_PRIVATE_KEY=0x… npx tsx pay-and-upload.ts /tmp/exhibit-a.png./ipfs/QmXXX...) and the pre-built URL on stderr as url=https://cdn.kleros.link/ipfs/QmXXX.... Hand that URL to the user — it's the canonical Kleros HTTP gateway. See "Response shape" if you need to build URLs from raw cids (when the urls[] field isn't present).Example 2 — agent pins meta-evidence JSON:
User: "Pin this JSON file to IPFS using
meta-evidenceas the operation: ./case-42.json"
Steps:
OPERATION=meta-evidence EVM_PRIVATE_KEY=0x… npx tsx pay-and-upload.ts ./case-42.json.Example 3 — agent sanity-checks the gateway before relying on it:
User: "Is the Kleros IPFS gateway working right now? I'd like to verify before relying on it for an upload."
Steps:
Both scripts are optional. They exist so agents without x402 tooling can pay and upload without rediscovering x402-fetch from scratch. If your agent already speaks x402, ignore them and call the gateway directly.
scripts/pay-and-upload.ts — reference single-file Node implementation. Adapt to your project context, or run standalone.scripts/package.json — declares the two deps (x402-fetch, tsx). No lockfile and no tsconfig (tsx runs TS natively).If you're integrating into an existing Node project, you can ignore the bundled package.json and just npm i x402-fetch in your own project.
Something broken or confusing in this skill? Report it: fetch feedback/SKILL.md — helps maintainers fix what agents silently trip over.
© internet-court, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts) in vendored/kleros/kleros-ipfs-upload of internet-court/internet-court-skill.
Open the folder on GitHubat commit fa89195
Kleros IPFS Upload next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Kleros IPFS Upload this skillinternet-court/internet-court-skill | 6.6k | — | ~4.9k | Automated safety check: Notes | MIT | |
| Surf Crypto Data APIBlockRunAI/blockrun-mcp | 391 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Google Mobile Ads Validategoogle/skills | 21k | — | ~603 | Automated safety check: Pass | Apache-2.0 | |
| Agentic Walletcoinbase/agentic-wallet-skills | 126 | 2 repos | ~1k | Automated safety check: Pass | MIT | |
| Alchemy Agentic Gatewaymoonpay/skills | 113 | — | ~2.1k | Automated safety check: Notes | MIT | |
| Accept Agent Paymentscirclefin/skills | 155 | — | ~2.6k | Automated safety check: Warn | Apache-2.0 |
BlockRunAI/blockrun-mcp
Routes crypto market, on-chain, wallet and prediction-market lookups to the Surf data API through a local ClawRouter, paid per call.
google/skills
Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects.
coinbase/agentic-wallet-skills
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API…
moonpay/skills
A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.
circlefin/skills
A skill your agent uses when a developer wants to monetize an API, endpoint, service, model, dataset, tool, or agent-facing resource with Circle USDC pay-per-call payments, Gateway Nanopayments…
veniceai/skills
Manages Venice API keys through the /api_keys endpoints: create, list, update and revoke keys, set spending limits, and read rate limits.
internet-court/internet-court-skill
Guides building on the 0G Compute Network, a decentralized GPU marketplace for AI inference and fine-tuning, with SDK patterns and CLI commands.
internet-court/internet-court-skill
Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.
internet-court/internet-court-skill
Connects an agent to the BNB Chain MCP server to read blocks and contracts, move tokens and NFTs, register ERC-8004 agents and use Greenfield storage.
internet-court/internet-court-skill
Specifies how a GenLayer Intelligent Contract decision about an agent's performance becomes an ERC-7710 revocation or policy change, through a relayer or bridge and an EVM controller.
internet-court/internet-court-skill
Specifies how a GenLayer Intelligent Contract should supervise an AI agent, with review rubrics, evidence schemas and continue, warn, constrain or revoke decisions.
internet-court/internet-court-skill
Pulls live crypto token data, DeFi metrics, wallet holdings, project research and Twitter/X signals through Heurist Mesh agents over a REST API.
Works with
Categories
Uploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference. 01 USDC per upload on Base mainnet. The returned CID is content-addressed and works through any IPFS gateway, and Kleros's Graph Node indexes it so subgraphs can find it.
Kleros IPFS Upload fits situations like: uploading dispute evidence files that a Kleros contract will reference; publishing MetaEvidence or court policy JSON; storing Curate item metadata or juror justifications; smoke-testing the Kleros IPFS gateway.
Run `npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a claude-code`. Or copy the skill folder (vendored/kleros/kleros-ipfs-upload in internet-court/internet-court-skill) into .claude/skills/kleros-ipfs-upload in your project. Claude Code loads it when a task matches its description.
Run `npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a codex`. Or copy the skill folder (vendored/kleros/kleros-ipfs-upload in internet-court/internet-court-skill) into .agents/skills/kleros-ipfs-upload in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add internet-court/internet-court-skill --skill kleros-ipfs-upload -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kleros-ipfs-upload, .gemini/skills/kleros-ipfs-upload, .github/skills/kleros-ipfs-upload and .opencode/skills/kleros-ipfs-upload in your project.
Going by SKILL.md and its folder, Kleros IPFS Upload needs TypeScript for the scripts in its folder, the command-line tools its instructions call (npx, npm, curl, jq and node) and credentials named EVM_PRIVATE_KEY, CDP_API_KEY_ID, CDP_API_KEY_SECRET and CDP_WALLET_SECRET. Our summary lists: USDC on Base mainnet to pay the per-upload fee; The TypeScript scripts in scripts/ with their package dependencies; Network access to the Kleros gateway.
SKILL.md names 2 domains. In commands or code: kleros-ipfs-gateway.fly.dev and cdn.kleros.link; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Kleros IPFS Upload is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.9k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Kleros IPFS Upload: Surf Crypto Data API (BlockRunAI/blockrun-mcp, 391 stars), Google Mobile Ads Validate (google/skills, 21k stars), Agentic Wallet (coinbase/agentic-wallet-skills, 126 stars) and Alchemy Agentic Gateway (moonpay/skills, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
internet-court (a GitHub organization) maintains it in internet-court/internet-court-skill, which has 6,551 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on August 19, 2026.
Source: internet-court/internet-court-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.