> For the complete documentation index, see [llms.txt](https://docs.filecoin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.filecoin.io/build-on-filecoin/cookbook/store-data.md). Agents can also search and read this documentation through its [MCP server](https://docs.filecoin.io/~gitbook/mcp).

# Store data

Reference-only guide to official storage onboarding resources for Filecoin data storage workflows.

{% hint style="info" %}
This page is reference-only.

We do not maintain step-by-step third-party storage tutorials in Builder Cookbook. Use the official resources below for implementation details.
{% endhint %}

### <mark style="color:blue;">Prepare data for Filecoin storage</mark>

Use these resources to prepare CAR artifacts and storage inputs:

* [Lighthouse documentation](https://docs.lighthouse.storage/)
* [go-car command-line tooling](https://github.com/ipld/go-car)
* [IPLD CAR specification and JavaScript libraries](https://github.com/ipld/js-car)
* [IPFS Desktop / Kubo docs](https://docs.ipfs.tech/)

Recommended outputs before proposing storage workflows:

* Piece CID / Payload CID
* CAR size and piece size
* A durable retrieval URL or CID

### <mark style="color:blue;">Encrypt private files</mark>

Encrypt files before uploading them when their contents should be available only to selected users or services. Common examples include:

* **User files:** private attachments, invoices, account exports and personal documents.
* **Agent state:** conversation history, saved memory, task checkpoints and private tool results.
* **Project data:** internal reports, contracts, unpublished datasets and confidential supporting records.

Your application encrypts the file before passing it to the storage API. Providers can store the encrypted bytes and prove they hold them; reading the contents requires the decryption key. Keysmith provides wallet-derived key recovery and lets your application share access to individual files or collections.

Keep data with different readers in separate encrypted files. Sharing the key to a single encrypted archive gives access to everything inside it.

See [Encryption](https://docs.filecoin.io/build-on-filecoin/advanced/encryption.md) under Advanced for an upload and download example, recovery requirements, and instructions for sharing access.

### <mark style="color:blue;">Store large data with Filecoin Onchain Cloud</mark>

Use the FOC stack for programmatic, verifiable storage at scale:

* [Filecoin Onchain Cloud overview](https://docs.filecoin.io/build-on-filecoin/filecoin-onchain-cloud.md)
* [FOC quickstart and Synapse docs](https://docs.filecoin.io/build-on-filecoin/filecoin-onchain-cloud/synapse-quickstart.md)
* [FOC developer guides](https://docs.filecoin.cloud/developer-guides)
* [PDP documentation](https://docs.filecoin.io/provide-storage/pdp.md)
* [Filecoin Cold Storage Service](https://docs.filecoin.io/build-on-filecoin/filecoin-onchain-cloud/fcss.md) for archives and datasets of 1 TiB and up

### <mark style="color:blue;">Store small data with storage onramps</mark>

For smaller datasets and managed ingestion paths:

* [Storage onramps overview](https://docs.filecoin.io/getting-started/how-storage-works/storage-onramps.md)
* [Filecoin Pin getting started](https://docs.filecoin.io/build-on-filecoin/cookbook/filecoin-pin/getting-started.md)
* [Lighthouse documentation](https://docs.lighthouse.storage/)

### <mark style="color:blue;">Monitor storage deal status from a smart contract</mark>

For actor-level deal status lookups and contract integration references:

* [Built-in actors overview](https://docs.filecoin.io/reference/built-in-actors.md)
* [Protocol API reference](https://docs.filecoin.io/reference/built-in-actors/protocol-api.md)
* [Filecoin.sol reference](https://docs.filecoin.io/reference/built-in-actors/filecoin.sol.md)

### <mark style="color:blue;">Incentivized data storage</mark>

For incentive design and onboarding programs:

* [Filecoin Data Onboarding](https://dataonboarding.filecoin.io/)
* [Filecoin storage market basics](https://docs.filecoin.io/getting-started/what-is-filecoin/storage-market.md)

[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/build/cookbook/store-data)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.filecoin.io/build-on-filecoin/cookbook/store-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
