# Buckets

Buckets are containers for tables in Storage. They are further organized into the following two **stages**:


1. **in** — for input data (usually data source connector results)
2. **out** — for processed data (usually results of transformations or applications)

The distinction between the input and output stages is purely conventional differentiation between raw and processed data.
When creating a new bucket, select one of the stages. If the dialog also asks for a [database backend](https://help.keboola.com/storage/#storage-backend-types-and-features), pick one based on its properties.
For information on how to load data into Storage, see the corresponding part of our [tutorial](https://help.keboola.com/getting-started/load/).


**Before you start**

You need:

- **A Keboola project.** No project yet? Create or join a project (/getting-started/project/).
- **To create a bucket, a project role that can change Storage:** Admin, Share or Guest. ReadOnly cannot, and in projects with Governed Change Management, Developer and Reviewer cannot change the production branch: see User roles (/management/project/users/#user-roles).

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.


## Create a bucket

To create a bucket, click **Create bucket** on the **Storage** page, enter a name, choose the stage, and click **Create bucket** in the dialog:

[Video: The Storage page with the Create bucket button marked, then the Create Bucket dialog with the name my-tutorial-bucket, stage IN, and its Create bucket button marked (an example project: the bucket names, counts and dates vary)](https://help.keboola.com/storage/buckets/create-bucket.mp4)

**Check:**


### Prompt


```text title="Prompt" wrap
Is there a bucket named my-tutorial-bucket in Storage? Give its ID and stage.
```

Kai only reads here, so by default it asks for no approval, and its answer links to what it found in your project.


### UI


The **Storage** page lists the new bucket with an **In** or **Out** badge for its stage.


### CLI / API


```bash
kbagent --json storage bucket-detail --bucket-id in.c-my-tutorial-bucket
```

Use your bucket ID. The output's `data` shows `bucket_id` and `stage` (`in` or `out`).


---


## Open a bucket's details

To review information about an existing bucket, hover over the bucket name and select **Bucket detail**:

![Screenshot - Bucket information](https://help.keboola.com/storage/buckets/bucket-info.png)

**Check:**


### Prompt


```text title="Prompt" wrap
What is the ID of the bucket my-tutorial-bucket, and which tables does it hold?
```

Kai only reads here, so by default it asks for no approval, and its answer links to what it found in your project.


### UI


The bucket detail shows the bucket's **ID**, made of the stage, `c-` and the name, such as `in.c-my-tutorial-bucket`.


### CLI / API


```bash
kbagent --json storage bucket-detail --bucket-id in.c-my-tutorial-bucket
```

The output's `data` shows `bucket_id`, `stage` and the bucket's `tables`.


---


Apart from being used for organizing tables, buckets can also be used for [sharing tables](https://help.keboola.com/catalog/).

**Next:** [Files in Storage →](https://help.keboola.com/storage/files/)
