Back to Kubo

README

README.md

0.41.013.0 KB
Original Source
<h1 align="center">

<a href="https://github.com/ipfs/kubo/blob/master/docs/logo/"></a>

Kubo: IPFS Implementation in Go

</h1> <p align="center" style="font-size: 1.2rem;">The first implementation of IPFS.</p> <p align="center"> <a href="https://ipfs.tech"></a> <a href="https://discuss.ipfs.tech"></a> <a href="https://docs.ipfs.tech/community/"></a> <a href="https://github.com/ipfs/kubo/actions"></a> <a href="https://github.com/ipfs/kubo/releases"></a> </p> <hr /> <p align="center"> <b><a href="#what-is-kubo">What is Kubo?</a></b> | <b><a href="#quick-taste">Quick Taste</a></b> | <b><a href="#install">Install</a></b> | <b><a href="#documentation">Documentation</a></b> | <b><a href="#development">Development</a></b> | <b><a href="#getting-help">Getting Help</a></b> </p>

What is Kubo?

Kubo was the first IPFS implementation and is the most widely used one today. It takes an opinionated approach to content-addressing (CIDs, DAGs) that maximizes interoperability: UnixFS for files and directories, HTTP Gateways for web browsers, Bitswap and HTTP for verifiable data transfer.

Features:

Other IPFS implementations: Helia (JavaScript), more...

Quick Taste

After installing Kubo, verify it works:

console
$ ipfs init
generating ED25519 keypair...done
peer identity: 12D3KooWGcSLQdLDBi2BvoP8WnpdHvhWPbxpGcqkf93rL2XMZK7R

$ ipfs daemon &
Daemon is ready

$ echo "hello IPFS" | ipfs add -q --cid-version 1
bafkreicouv3sksjuzxb3rbb6rziy6duakk2aikegsmtqtz5rsuppjorxsa

$ ipfs cat bafkreicouv3sksjuzxb3rbb6rziy6duakk2aikegsmtqtz5rsuppjorxsa
hello IPFS

Verify this CID is provided by your node to the IPFS network: https://check.ipfs.network/?cid=bafkreicouv3sksjuzxb3rbb6rziy6duakk2aikegsmtqtz5rsuppjorxsa

See ipfs add --help for all import options. Ready for more? Follow the command-line quick start.

Install

Follow the official installation guide, or choose: prebuilt binary | Docker | package manager | from source.

Prefer a GUI? Try IPFS Desktop and/or IPFS Companion.

Minimal System Requirements

Kubo runs on most Linux, macOS, and Windows systems. For optimal performance, we recommend at least 6 GB of RAM and 2 CPU cores (more is ideal, as Kubo is highly parallel).

[!IMPORTANT] Larger pinsets require additional memory, with an estimated ~1 GiB of RAM per 20 million items for reproviding to the Amino DHT.

[!CAUTION] Systems with less than the recommended memory may experience instability, frequent OOM errors or restarts, and missing data announcement (reprovider window), which can make data fully or partially inaccessible to other peers. Running Kubo on underprovisioned hardware is at your own risk.

Official Prebuilt Binaries

Download from https://dist.ipfs.tech#kubo or GitHub Releases.

Docker

Official images are published at https://hub.docker.com/r/ipfs/kubo/:

🟢 Release Images

Use these for production deployments.

console
$ docker pull ipfs/kubo:latest
$ docker run --rm -it --net=host ipfs/kubo:latest

To customize your node, pass config via -e or mount scripts in /container-init.d.

🟠 Developer Preview Images

For internal testing, not intended for production.

🔴 Internal Staging Images

For testing arbitrary commits and experimental patches (force push to staging branch).

Build from Source

bash
git clone https://github.com/ipfs/kubo.git
cd kubo
make build    # creates cmd/ipfs/ipfs
make install  # installs to $GOPATH/bin/ipfs

See the Developer Guide for details, Windows instructions, and troubleshooting.

Package Managers

Kubo is available in community-maintained packages across many operating systems, Linux distributions, and package managers. See Repology for the full list:

[!WARNING] These packages are maintained by third-party volunteers. The IPFS Project and Kubo maintainers are not responsible for their contents or supply chain security. For increased security, build from source.

Linux

DistributionInstallVersion
UbuntuPPA: sudo apt install ipfs-kubo
Archpacman -S kubo
FedoraCOPR: dnf install kubo
Nixnix-env -i kubo
Gentooemerge -a net-p2p/kubo
openSUSEzypper install kubo
Solussudo eopkg install kubo
Guixguix install kubo
otherSee Repology for the full list

Snap no longer supported (#8688)

macOS

ManagerInstallVersion
Homebrewbrew install ipfs
MacPortssudo port install ipfs
Nixnix-env -i kubo
otherSee Repology for the full list

Windows

ManagerInstallVersion
Scoopscoop install kubo
otherSee Repology for the full list

Chocolatey no longer supported (#9341)

Documentation

TopicDescription
ConfigurationAll config options reference
Environment variablesRuntime settings via env vars
Experimental featuresOpt-in features in development
HTTP GatewayPath, subdomain, and trustless gateway setup
HTTP RPC clientsClient libraries for Go, JS
Delegated routingMulti-router and HTTP routing
Metrics & monitoringPrometheus metrics
FUSE mountsMount /ipfs, /ipns, /mfs as local filesystems
Content blockingDenylist for public nodes
CustomizingUnsure if use Plugins, Boxo, or fork?
Debug guideCPU profiles, memory analysis, tracing
ChangelogsRelease notes for each version
All documentationFull list of docs

Development

See the Developer Guide for build instructions, testing, and contribution workflow. AI coding agents should follow AGENTS.md.

Getting Help

Security Issues

See SECURITY.md.

Contributing

We welcome contributions. See CONTRIBUTING.md and the Developer Guide.

This repository follows the IPFS Code of Conduct.

Maintainer Info

<a href="https://ipshipyard.com/"></a>

[!NOTE] Kubo is maintained by the Shipyard team.

Release Process

License

Dual-licensed under Apache 2.0 and MIT: