MCPcopy
hub / github.com/ipfs/kubo

github.com/ipfs/kubo @v0.42.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.42.0 ↗
3,502 symbols 18,747 edges 552 files 1,300 documented · 37%
README

Kubo logo Kubo: IPFS Implementation in Go

The first implementation of IPFS.

Official Part of IPFS Project Discourse Forum Matrix GitHub release


What is Kubo? | Quick Taste | Install | Documentation | Development | Getting Help

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:

$ 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/: Docker Image Version (latest semver)

🟢 Release Images

Use these for production deployments.

$ 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

GitHub go.mod Go version

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: Packaging status

[!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

Distribution Install Version
Ubuntu PPA: sudo apt install ipfs-kubo PPA: twdragon
Arch pacman -S kubo Arch package
Fedora COPR: dnf install kubo COPR: taw
Nix nix-env -i kubo nixpkgs unstable
Gentoo emerge -a net-p2p/kubo Gentoo package
openSUSE zypper install kubo openSUSE Tumbleweed
Solus sudo eopkg install kubo Solus package
Guix guix install kubo Guix package
other See Repology for the full list

~~Snap~~ no longer supported (#8688)

macOS

Manager Install Version
Homebrew brew install ipfs Homebrew
MacPorts sudo port install ipfs MacPorts
Nix nix-env -i kubo nixpkgs unstable
other See Repology for the full list

Windows

Manager Install Version
Scoop scoop install kubo Scoop
other See Repology for the full list

~~Chocolatey~~ no longer supported (#9341)

Documentation

Topic Description
Configuration All config options reference
Environment variables Runtime settings via env vars
Experimental features Opt-in features in development
HTTP Gateway Path, subdomain, and trustless gateway setup
HTTP RPC clients Client libraries for Go, JS
Delegated routing Multi-router and HTTP routing
Metrics & monitoring Prometheus metrics
FUSE mounts Mount /ipfs, /ipns, /mfs as local filesystems
Content blocking Denylist for public nodes
Customizing Unsure if use Plugins, Boxo, or fork?
Debug guide CPU profiles, memory analysis, tracing
Changelogs Release notes for each version
All documentation Full 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

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

Release Process

License

Dual-licensed under Apache 2.0 and MIT:

Extension points exported contracts — how you extend this code

Plugin (Interface)
Plugin is the base interface for all kinds of go-ipfs plugins It will be included in interfaces of different Plugins Op [11 …
plugin/plugin.go
DatastoreConfig (Interface)
DatastoreConfig is an abstraction of a datastore config. A "spec" is first converted to a DatastoreConfig and then Creat [8 …
repo/fsrepo/datastores.go
PluginDatastore (Interface)
PluginDatastore is an interface that can be implemented to add handlers for for different datastores. [4 implementers]
plugin/datastore.go
PluginIPLD (Interface)
PluginIPLD is an interface that can be implemented to add handlers for for different IPLD codecs. [4 implementers]
plugin/ipld.go
PubSubSubscription (Interface)
PubSubSubscription is an active PubSub subscription [4 implementers]
core/coreiface/pubsub.go
PluginDaemon (Interface)
PluginDaemon is an interface for daemon plugins. These plugins will be run on the daemon and will be given access to an [3 …
plugin/daemon.go
PluginDaemonInternal (Interface)
PluginDaemonInternal is an interface for daemon plugins. These plugins will be run on the daemon and will be given a dir [3 …
plugin/daemoninternal.go
PluginFx (Interface)
PluginFx can be used to customize the fx options passed to the go-ipfs app when it is initialized. This is invasive and [2 …
plugin/fx.go

Core symbols most depended-on inside this repo

Run
called by 1207
test/cli/harness/run.go
String
called by 859
test/cli/harness/buffer.go
IPFS
called by 707
test/cli/harness/node.go
Fatal
called by 654
test/cli/harness/log.go
NewT
called by 474
test/cli/harness/harness.go
Init
called by 453
plugin/plugin.go
NewNode
called by 432
test/cli/harness/harness.go
RunIPFS
called by 382
test/cli/harness/node.go

Shape

Function 1,576
Method 1,293
Struct 486
TypeAlias 60
Interface 52
FuncType 35

Languages

Go100%

Modules by API surface

core/node/provider.go56 symbols
config/types.go50 symbols
test/integration/bench_test.go48 symbols
test/cli/harness/node.go46 symbols
fuse/writable/writable.go39 symbols
test/cli/migrations/migration_16_to_latest_test.go37 symbols
repo/fsrepo/fsrepo.go36 symbols
core/coreiface/options/pin.go36 symbols
core/node/libp2p/rcmgr_logging.go33 symbols
core/coreiface/options/unixfs.go33 symbols
fuse/readonly/ipfs_test.go32 symbols
core/commands/repo_verify_test.go29 symbols

Dependencies from manifests, versioned

4d63.com/gocheckcompilerdirectivesv1.3.0 · 1×
4d63.com/gochecknoglobalsv0.2.2 · 1×
filippo.io/bigmodv0.1.1-0.20260103110 · 1×
filippo.io/keygenv0.0.0-2026011415190 · 1×
github.com/4meepo/tagalignv1.4.2 · 1×
github.com/Abirdcfly/dupwordv0.1.3 · 1×
github.com/AndreasBriese/bbloomv0.0.0-2019082515265 · 1×
github.com/Antonboom/errnamev1.0.0 · 1×
github.com/Antonboom/nilnilv1.0.1 · 1×
github.com/Antonboom/testifylintv1.5.2 · 1×
github.com/BurntSushi/tomlv1.4.1-0.20240526193 · 1×

For agents

$ claude mcp add kubo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact