# locaith-memory

`locaith-memory` is the official Python SDK for the Locaith Memory Platform.

It gives developers a simple client for:

- writing fresh context into working memory
- consolidating biological memory
- importing old AI history
- retrieving prompt-ready memory context

## Install

```bash
pip install locaith-memory
```

## Quick start

```python
from locaith_memory import LocaithMemoryClient

client = LocaithMemoryClient(api_key="locaith_sk_...")

client.implant(
    user_id="user_001",
    context="I no longer write Python every day. I now focus mostly on Rust and product strategy.",
)

memory_context = client.recall(
    "What should I keep in mind when talking to this user today?",
    user_id="user_001",
)

print(memory_context)
```

## Local or on-prem override

```python
client = LocaithMemoryClient(
    api_key="locaith_sk_...",
    base_url="http://127.0.0.1:8787",
)
```

## Publish to PyPI

One-command PowerShell flow:

```powershell
.\publish_pypi.ps1
```

Build and check only:

```powershell
.\publish_pypi.ps1 -SkipUpload
```
