
Ipfs
- 47 installs
- 6 repo stars
- Updated March 13, 2026
- alphaonedev/openclaw-graph
ipfs is a Claude skill for decentralized file storage on IPFS - adding and retrieving files by content hash (CID), pinning, and running the daemon.
About
This skill works with IPFS, a peer-to-peer protocol for decentralized file storage. A developer uses it to add files and reference them by content hash (CID), pin files locally, run the daemon, and connect peers over the DHT. It targets decentralized apps, blockchain data archiving, and NFT metadata storage.
- Adds and retrieves files by content hash (CID)
- Pins files locally to prevent garbage collection
- Runs the IPFS daemon and connects peers via DHT
Ipfs by the numbers
- 47 all-time installs (skills.sh)
- Ranked #214 of 479 Web3 & Blockchain skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
ipfs capabilities & compatibility
- Use cases
- database
- Runs
- Runs locally
- Pricing
- Free
What ipfs says it does
IPFS (InterPlanetary File System) is a peer-to-peer protocol for storing and sharing files in a decentralized network, ensuring data persistence without central servers.
Pinning: Manually pin files to local storage with `ipfs pin add <CID>` to prevent garbage collection.
npx skills add https://github.com/alphaonedev/openclaw-graph --skill ipfsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 47 |
|---|---|
| repo stars | ★ 6 |
| Last updated | March 13, 2026 |
| Repository | alphaonedev/openclaw-graph ↗ |
What it does
Store and retrieve files on IPFS by content hash for decentralized and blockchain apps.
Who is it for?
Storing files in a decentralized network for dApps, blockchain metadata, and censorship-resistant data.
When should I use this skill?
You need distributed, content-addressed file storage such as NFT metadata or blockchain archiving.
What you get
Files are stored and retrieved by content hash across a decentralized IPFS network.
By the numbers
- Documents 5 core capabilities: storage, peer discovery, versioning, encryption, pinning
Files
ipfs
Purpose
IPFS (InterPlanetary File System) is a peer-to-peer protocol for storing and sharing files in a decentralized network, ensuring data persistence without central servers.
When to Use
Use IPFS when building applications that require distributed storage for resilience, such as blockchain data archiving, peer-to-peer file sharing, or content delivery in unreliable networks. Apply it for scenarios involving large files or censorship-resistant data, like NFT metadata storage or decentralized apps.
Key Capabilities
- Decentralized storage: Files are addressed by content hashes (e.g., CID like Qm...abc), enabling global access via any node.
- Peer discovery: Automatically connects to peers using DHT; configure with
ipfs config Addresses.Swarm --json '["/ip4/0.0.0.0/tcp/4001"]'. - Versioning: Supports IPLD for linking data structures; use
ipfs dag putto add a DAG node. - Encryption: Files can be encrypted via external tools; integrate with libsodium for symmetric encryption before adding files.
- Pinning: Manually pin files to local storage with
ipfs pin add <CID>to prevent garbage collection.
Usage Patterns
To add a file, run ipfs add path/to/file.txt from CLI, then reference it by CID. In code, use the Go IPFS library: import "github.com/ipfs/go-ipfs-api" and call sh := shell.NewShell("localhost:5001"); cid, err := sh.Add(strings.NewReader("data")). In scripts, wrap commands in try-catch for errors, e.g., check if the daemon is running with ipfs daemon first. For API calls, use HTTP endpoints like POST /api/v0/add with multipart form data.
Common Commands/API
- Add a file:
ipfs add -r /path/to/dir(recursive flag for directories); API: POST /api/v0/add with body containing the file. - Retrieve a file:
ipfs cat <CID>to output to stdout; API: GET /api/v0/cat?arg=<CID>. - List pins:
ipfs pin ls --type=recursive; use with--enc=jsonfor JSON output. - Configure settings:
ipfs config --json Datastore.StorageMax "10GB"to set storage limits; config file is JSON at ~/.ipfs/config. - Start daemon:
ipfs daemon --enable-pubsubfor pubsub features; if API keys are needed (e.g., for enterprise gateways), set env var likeexport IPFS_API_KEY=$SERVICE_API_KEYand include in headers.
Code snippet for adding via curl: curl -X POST -F file=@file.txt http://localhost:5001/api/v0/add Code snippet for Go: cid, err := sh.AddFile("/path/to/file.txt")
Integration Notes
Integrate IPFS with other tools by running the daemon locally or using public gateways (e.g., https://ipfs.io/ipfs/<CID>). For blockchain, link with Ethereum via IPFS for storing contract metadata; use web3.js to fetch CIDs. Set API endpoint in code: shell.NewShell("http://$IPFS_GATEWAY:5001") where $IPFS_GATEWAY is an env var. For authentication, if using a private API, add headers like Authorization: Bearer $IPFS_API_KEY. Handle multi-network setups by specifying swarm addresses in config, e.g., add ipfs bootstrap add /ip4/1.2.3.4/tcp/4001/ipfs/Qm... for custom peers.
Error Handling
Check for common errors like "daemon not running" by verifying with ipfs id first; if it fails, start with ipfs daemon. For network issues, use ipfs swarm connect /ip4/host/tcp/port to manually connect peers. Parse API errors: responses include JSON with "Message" field, e.g., {"Message": "file not found"}. In code, handle with: if err != nil { log.Fatal(err) } after sh.Add(). For permission errors, ensure $IPFS_API_KEY is set and valid; retry with exponential backoff for transient failures. Validate CIDs before operations using ipfs validate <CID>.
Concrete Usage Examples
1. Uploading a file for blockchain storage: First, ensure IPFS daemon is running. Add a file: ipfs add contract.json outputs a CID like Qmabcd. Store this CID in a smart contract. In Node.js: const ipfsApi = require('ipfs-api'); const ipfs = ipfsApi('localhost', '5001', {protocol: 'http'}); ipfs.add(Buffer.from('contract data')).then(response => console.log(response[0].hash)); 2. Retrieving and verifying a file: Fetch a file by CID: ipfs get Qmabcd -o output.txt. In a script, verify integrity: ipfs cat Qmabcd | sha256sum to match the original hash. For distributed apps, use in a loop: fetch multiple CIDs and handle missing ones with try-catch.
Graph Relationships
- Related to: blockchain (cluster), as IPFS provides decentralized storage for blockchain data.
- Connected via tags: p2p (links to other P2P protocols), decentralized-storage (ties to distributed databases), distributed-filesystem (overlaps with file-sharing skills).
Related skills
FAQ
How are files addressed in IPFS?
By content hash, called a CID, such as Qm...abc, so any node can fetch them.
How do I keep a file from being deleted?
Pin it with ipfs pin add <CID> to prevent garbage collection.