# How to Generate Web3.Storage Key and Proof

For additional information, please visit: <https://web3.storage/docs/#quickstart>

1. [Step By Step Process](#step-by-step-process)
2. [Demo Video](#demo-video)

### Step By Step Process

Following are the steps to follow to generate Web3.Storage API values:

1. Create an account on [https://web3.storage](https://web3.storage/), please specify the email you have access to as the account authentication is based on the email validation. Make sure to follow through the registration process to the end, choose an appropriate billing plan for your needs (e.g. 'starter') and enter your payment details.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FSkk1lX544I2Y8s244UUl%2Fimage.png?alt=media&#x26;token=cad5f441-7819-48e6-8237-2c32849a62b5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2F2uQD7tFJpcpMVy1vQVx8%2Fimage.png?alt=media&#x26;token=792274f7-3773-43a1-aa6d-3183d23d8fce" alt=""><figcaption></figcaption></figure>

2. Install w3cli as described in the [corresponding section](https://web3.storage/docs/w3cli/#install) of the web3.storage documentation.

**You'll need** [**Node**](https://nodejs.com/) **version 18 or higher, with NPM version 7 or higher to complete the installation**

You can check your local versions like this:

```
node --version && npm --version
```

Install the `@web3-storage/w3cli` package with `npm`

```
npm install -g @web3-storage/w3cli
```

3\. Create your 'space' as described in the ['Create your first space'](https://web3.storage/docs/w3cli/#create-your-first-space) section of the documentation.

```
w3 space create
```

4. Execute the following to set the Space you intend on delegating access to:

```
w3 space use
```

5. Execute the following command to retrieve your Agent private key and DID:

```
npx ucan-key ed
```

{% hint style="info" %}
**Note:** The private key (starting with `Mg...`) is the value to be used in the environment variable `IPFS_STORAGE_KEY`.
{% endhint %}

6. Retrieve the IPFS\_STORAGE\_PROOF by executing the following:

```
w3 delegation create <did_from_ucan-key_command_above> | base64
```

The output of this command is the value to be used in the environment variable `IPFS_STORAGE_PROOF`.

**To summarize, the process of configuring delegated access to the w3up API consists of execution of the following command sequence:**

1. `w3 login`
2. `w3 create space`
3. `w3 use space`
4. `npx ucan-key ed`
5. `w3 delegation`

### Demo Video

[Youtube](https://youtu.be/wnGchPBpCFk)
