Skip to content
Skillpedia
APIs & servers (backend)7.0k Β· #13638

kleros-ipfs-upload

What it does

This skill uploads files used in the Kleros ecosystem, such as dispute evidence, policies and Curate metadata, to IPFS. Each upload is a paid request of $0.01 USDC on Base mainnet through the Kleros gateway, for people who need a content ID that a contract can reference.

When to use it

  • βœ“When you need to upload dispute evidence or a policy file for a Kleros court or arbitrator.
  • βœ“When you have Curate item metadata or juror justifications to store on IPFS.
  • βœ“When a Kleros contract needs a file that you can reference by its IPFS content ID.

Skill link

https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI need to upload my dispute evidence document to IPFS so the Kleros contract can reference it.”

5 new skills a week. 1 minute to read.

How it works

The agent sends one file per paid request to the Kleros upload gateway and receives an IPFS content ID. That ID can be opened through any IPFS gateway. Each upload is paid for in USDC on Base mainnet through the x402 payment system.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Kleros IPFS Upload (x402)

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.

When to use this skill

Trigger this skill when the user is uploading Kleros-ecosystem content:

  • Dispute evidence attachments β€” screenshots, documents, contracts, transcripts.
  • Meta-evidence JSON β€” the policy/spec referenced by a court or arbitrator smart contract at dispute creation.
  • Court / dispute / arbitrator policies β€” JSON describing rules, fees, juror counts, appeal mechanics.
  • Kleros Curate item metadata β€” JSON for items submitted to a Curate list (e.g. tokens, badges).
  • Juror / arbitrator justifications β€” rulings, dissents, deliberation rationale.
  • Any artifact whose CID will end up in a Kleros smart contract event, transaction, or subgraph.
  • The user explicitly names this gateway (kleros-ipfs-gateway.fly.dev etc.) or this skill.
  • The user is asking the agent to test, validate, or sanity-check this gateway or this skill itself (e.g. "smoke-test the Kleros IPFS gateway" / "verify pay-and-upload works"). A deliberate end-to-end test is a legitimate trigger even if no Kleros artifact is being uploaded for real use.

When NOT to use this skill

  • Generic "store this file on IPFS" / "get me a CID for X" requests with no Kleros relevance. Use Pinata, web3.storage, Filebase directly, or any other general pinning provider. This gateway charges per upload β€” that's wasteful if the user only needs a CID and doesn't benefit from Kleros's pinning durability or subgraph integration.
  • Anything resembling personal cloud storage, NFT metadata for non-Kleros projects, software releases, large media archives, or backup data.
  • Content explicitly bound to a non-Kleros ecosystem (e.g. another DAO's snapshot, another marketplace's metadata) β€” even if the format happens to look like a Kleros artifact.

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.

Quickstart

Two paths depending on what your agent already has:

  • If you already have x402 tooling (an x402 skill / SDK / a model that knows 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.
  • Otherwise, run the bundled 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.json

npm 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.

One file per paid upload; reuse identical files

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 fi

FAQ

How much does an upload cost?

One cent of USDC, which is $0.01, per file, on Base mainnet.

Can the skill upload unrelated files?

The skill is for Kleros-related content. It warns that the gateway is not a general-purpose pinning service for unrelated files.

Why does the file get an IPFS content ID?

The content ID lets Kleros contracts and subgraphs reference the exact file.

Details

Original description by the author

Upload one Kleros-ecosystem file per paid request to IPFS through the Kleros x402 gateway for $0.01 USDC on Base mainnet. Use for dispute evidence, MetaEvidence JSON, court/dispute/arbitrator policies, Curate item metadata, juror justifications, or any artifact a Kleros contract or subgraph will reference by CID. Trigger when the request mentions Kleros, court, arbitrator, dispute, juror, Curate, Proof of Humanity, evidence, meta-evidence, justification, explicitly names this gateway or skill, or asks to test or validate it. Do NOT use for generic IPFS/CID requests without Kleros context; reco

repo: internet-court/internet-court-skill

Popularity

GitHub stars
7.0k
Ranking position
#13638
License
β€”
Updated
10/26/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills