For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Install the filecoin CLI, log in with a session key, store a file, and download it again on the Calibration testnet.

This guide installs filecoin, logs in, stores a file, and downloads it again. It uses the Calibration testnet, so storage is paid with test USDFC.

You need:

  • Node.js 24 or newer.

  • A browser wallet, such as MetaMask, with Calibration tFIL for gas and test USDFC. See Get test tokens.

Hand it to an agent

Add filecoin to your agent, then ask it to store a file. On its first run, the agent sends you a link to approve its key with your wallet. Connect an agent covers cloud and browser agents.

Adds the agent skill and the read-only MCP server to Claude Code or Codex.

claude plugin marketplace add filecoin-project/agents
claude plugin install filecoin@filecoin

# In Codex
codex plugin marketplace add filecoin-project/agents
codex plugin add filecoin@filecoin

Teaches any agent with a shell when and how to run filecoin.

npx skills add filecoin-project/agents

Read-only tools for providers, data sets, and pieces. It cannot store files.

npx -y add-mcp https://mcp.filecoin.io -g

To do it yourself, follow the steps below.

Install the CLI

npm install -g filecoin
filecoin --help

Log in

filecoin login makes a session key, saves it on your machine, and opens the filecoin-app dashboard's setup page at poc.filecoin.cloud with the key filled in. Connect your wallet there, review the request, and approve it. The private key never leaves your machine, and the CLI finds the approval on chain, so there is nothing to copy back.

Then check the account:

filecoin status reports when each permission expires, your USDFC funds, and the Warm Storage approval. If the account needs a deposit, it also returns a funding link to the same setup page, where you deposit USDFC and, if you haven't yet, approve the Warm Storage service. Each is its own wallet transaction.

Store a file

Check the size, provider, and cost first. A dry run stores nothing:

Then store it:

The result's urls.browser is the link to share. A new link to a file can return 404 for a while. Retrieve and verify explains why, and what each link checks.

Get it back

filecoin get downloads from the provider and checks the bytes against the PieceCID.

Next

  • CLI explains how filecoin works and where its help and schemas are.

  • Connect an agent shows how to give an agent the same access.

Was this page helpful?

Last updated