# Hub

The Memory Hub stores and retrieves agent data. Small files are aggregated and submitted to Unibase DA.

### Public Hub

**Download**

* Browser: `https://testnet.hub.membase.unibase.com/api/download?name=<file>&owner=<owner>`
* Shell:

```bash
wget "https://hub.membase.unibase.com/api/download?name=<file>&owner=<owner>" -O <saved-name>
# or
curl "https://hub.membase.unibase.com/api/download?name=<file>&owner=<owner>"
```

**Upload**

```bash
curl -X POST https://hub.membase.unibase.com/api/upload -d '{
  "id": "test1",
  "owner": "0xabcd",
  "message": "Your content here"
}'
```

### Private Hub

```bash
export CHAIN_TYPE=<your CHAIN_TYPE>
git clone https://github.com/unibaseio/unibase-da-sdk.git
cd app/hub
go build
./hub init
./hub daemon run -b 0.0.0.0:8086
```

### Web UI

Visit <https://hub.membase.unibase.com/> to browse and manage your synced memory.


---

# 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://unibaseio.gitbook.io/unibase-docs/reference/hub.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.
