# @asaki14/pi-memory

Standalone [Pi](https://github.com/earendil-works/pi) extension for Asaki personal memory,
backed by a Cloudflare Worker. No repo checkout required.

## Install

```bash
pi install npm:@asaki14/pi-memory
```

## Configure

The extension reads its backend URL and admin key from the environment or
`~/.asaki-memory.json` (never hardcoded). Set:

```bash
export ASAKI_MEMORY_BASE_URL="https://your-worker-subdomain.workers.dev"
export ASAKI_MEMORY_API_KEY="your-admin-api-key"
```

or `~/.asaki-memory.json`:

```json
{ "baseUrl": "https://your-worker-subdomain.workers.dev", "apiKey": "your-admin-api-key", "userId": "asaki" }
```

Source of truth lives in the [asaki-memory-manager](git+https://github.com/Asaki14/asaki-memory-manager.git) monorepo
at `integrations/pi/asaki-memory.ts`; this package is generated by `npm run build:pi`.
