# Arweave Integration

<figure><img src="/files/Fyby9G4Dm0A204rRwkhf" alt=""><figcaption></figcaption></figure>

### Why Arweave?

Arweave solves permanent storage through economic incentives rather than promises. One payment funds storage forever through an endowment model based on declining storage costs.

**Arweave Advantages:**

* True permanence
* One-time payment model
* Content addressing prevents tampering
* Geographic distribution
* Direct HTTP access

### How It Works

Code storage on Arweave follows a systematic process ensuring permanence and accessibility. Each step is optimized for efficiency and reliability.

**Storage Process:**

1. Code bundled with metadata
2. Private repos encrypted client-side
3. Bundle compressed for efficiency
4. Uploaded to Arweave network
5. Transaction ID stored on-chain
6. Content accessible via gateways

### Cost Structure

Arweave storage costs approximately $10 per GB forever - not monthly, but permanent. OpenSource covers these costs from treasury, making storage free for developers.

**Cost Benefits:**

* One-time payment for eternal storage
* Platform covers all costs
* No recurring fees
* Costs decrease over time
* Sustainable economic model

### Data Permanence

Arweave's Proof of Access consensus ensures data permanence through economic incentives. Miners must store random historical data to mine new blocks.

**Permanence Mechanisms:**

* Miners incentivized to store everything
* Data replicated across hundreds of nodes
* Geographic distribution prevents loss
* Economic guarantees, not promises


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.os.codes/core-architecture/arweave-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
