# Membase Quick Start

Get Membase memory running in 5 minutes.

### 1. Install

```bash
pip install git+https://github.com/unibaseio/membase.git
```

### 2. Set Environment Variables

```bash
export MEMBASE_ID="<your-unique-id>"
export MEMBASE_ACCOUNT="<your-bnb-testnet-address>"
export MEMBASE_SECRET_KEY="<your-secret-key>"
```

Get test BNB from the [BNBChain Testnet Faucet](https://www.bnbchain.org/en/testnet-faucet).

### 3. Run Your First Example

```python
from membase.memory.buffered_memory import BufferedMemory
from membase.memory.message import Message

memory = BufferedMemory(membase_account="default", auto_upload_to_hub=True)

msg = Message(
    name="my-agent",
    content="Hello! I have persistent memory now.",
    role="assistant",
    metadata="first message"
)
memory.add(msg)
```

### 4. View in Hub

Visit <https://hub.membase.unibase.com/> to see your synced data.

***

### Next Steps

* [Full Quick Start](/unibase-docs/membase/quick-start.md) — Multi-Memory, Knowledge Base, Chain Tasks
* [Integration Options](/unibase-docs/membase/integration-options.md) — SDK, MCP, Skill


---

# 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/get-started/membase-quickstart.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.
