> ## Documentation Index
> Fetch the complete documentation index at: https://docs.t0ken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start

> Get up and running with OpenMemoryX in minutes

## 1. Register an Account

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST https://t0ken.ai/api/auth/register \
      -H "Content-Type: application/json" \
      -d '{
        "email": "user@example.com",
        "password": "securepassword123"
      }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    import requests

    response = requests.post(
        "https://t0ken.ai/api/auth/register",
        json={
            "email": "user@example.com",
            "password": "securepassword123"
        }
    )

    print(response.json())
    # {"id": 1, "email": "user@example.com"}
    ```
  </Tab>

  <Tab title="JavaScript">
    ```javascript theme={null}
    const response = await fetch('https://t0ken.ai/api/auth/register', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        email: 'user@example.com',
        password: 'securepassword123'
      })
    });

    const data = await response.json();
    console.log(data);
    // { id: 1, email: "user@example.com" }
    ```
  </Tab>
</Tabs>

## 2. Login to Get Token

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST https://t0ken.ai/api/auth/login \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "username=user@example.com&password=securepassword123"
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    response = requests.post(
        "https://t0ken.ai/api/auth/login",
        data={
            "username": "user@example.com",
            "password": "securepassword123"
        }
    )

    token = response.json()["access_token"]
    ```
  </Tab>
</Tabs>

## 3. Get Your API Key

```bash theme={null}
curl https://t0ken.ai/api/keys \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
```

Response:

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Default",
      "key": "omx_xxxxxxxxxxxxxxxxxxxxxxxx",
      "is_active": true
    }
  ]
}
```

## 4. Create Your First Memory

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST https://t0ken.ai/api/v1/memories \
      -H "Content-Type: application/json" \
      -H "X-API-Key: omx_your_api_key" \
      -d '{
        "content": "User prefers dark mode in all applications",
        "project_id": "default",
        "metadata": {
          "source": "user_settings",
          "importance": "high"
        }
      }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    response = requests.post(
        "https://t0ken.ai/api/v1/memories",
        headers={"X-API-Key": "omx_your_api_key"},
        json={
            "content": "User prefers dark mode in all applications",
            "project_id": "default",
            "metadata": {"source": "user_settings"}
        }
    )

    print(response.json())
    # {
    #   "success": true,
    #   "task_id": "abc123...",
    #   "status": "pending"
    # }
    ```
  </Tab>
</Tabs>

## 5. Search Memories

```bash theme={null}
curl -X POST https://t0ken.ai/api/v1/memories/search \
  -H "Content-Type: application/json" \
  -H "X-API-Key: omx_your_api_key" \
  -d '{
    "query": "user preferences",
    "limit": 10
  }'
```

## Next Steps

<CardGroup>
  <Card title="API Reference" icon="code" href="api-reference/authentication">
    Explore all available endpoints
  </Card>

  <Card title="Core Concepts" icon="book-open" href="concepts/memories">
    Learn about memories, projects, and cognitive sectors
  </Card>

  <Card title="Integrations" icon="plug" href="integrations/cursor">
    Integrate with Cursor, OpenClaw, and more
  </Card>
</CardGroup>
