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

# Quickstart

> Get up and running with sxth-mind in 5 minutes

## Installation

<CodeGroup>
  ```bash pip theme={null}
  pip install sxth-mind[openai]
  ```

  ```bash with API server theme={null}
  pip install sxth-mind[openai,api]
  ```

  ```bash with SQLite theme={null}
  pip install sxth-mind[openai,sqlite]
  ```

  ```bash everything theme={null}
  pip install sxth-mind[all]
  ```
</CodeGroup>

## Basic Usage

```python theme={null}
import asyncio
from sxth_mind import Mind
from sxth_mind.adapters import SalesAdapter

async def main():
    # Create a Mind with an adapter
    mind = Mind(adapter=SalesAdapter())

    # Chat - state accumulates automatically
    response = await mind.chat("user_1", "Working on the Acme deal")
    print(response)

    # Inspect what the Mind knows
    state = await mind.get_state("user_1")
    print(state["user_mind"]["patterns"])

    # Human-readable summary
    print(await mind.explain_state("user_1"))

asyncio.run(main())
```

## Try the CLI Demo

```bash theme={null}
sxth-mind demo --adapter sales
```

This starts an interactive session where you can chat and see state accumulate.

## Run the HTTP API

```bash theme={null}
sxth-mind serve --adapter sales --port 8000
```

Then make requests:

```bash theme={null}
curl -X POST http://localhost:8000/chat \
  -H "Content-Type: application/json" \
  -d '{"user_id": "user_1", "message": "Working on a new deal"}'
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Core Concepts" icon="book" href="/concepts/mind">
    Understand Mind, UserMind, and ProjectMind
  </Card>

  <Card title="Build an Adapter" icon="hammer" href="/guides/building-adapters">
    Create adapters for your domain
  </Card>

  <Card title="Storage Options" icon="database" href="/guides/storage">
    Configure SQLite, PostgreSQL, or custom storage
  </Card>

  <Card title="Example Adapters" icon="code" href="/examples/sales">
    Explore Sales, Habits, and Learning adapters
  </Card>
</CardGroup>
