Skip to content

Configuration

Global Config

Located at ~/.mempalace/config.json:

json
{
  "palace_path": "/custom/path/to/palace",
  "collection_name": "mempalace_drawers",
  "people_map": {"Kai": "KAI", "Priya": "PRI"}
}
KeyDefaultDescription
palace_path~/.mempalace/palaceWhere ChromaDB stores your drawers
collection_namemempalace_drawersChromaDB collection name
people_map{}Entity name → AAAK code mappings

Project Config

Generated by mempalace init in your project directory:

mempalace.yaml

yaml
wing: myproject
rooms:
  - backend
  - frontend
  - decisions
palace_path: ~/.mempalace/palace

entities.json

json
{
  "Kai": "KAI",
  "Priya": "PRI"
}

Wings are auto-detected during mempalace init from:

  • Directory names → project wings
  • Detected people in file content → person wings
  • Explicit --wing flag on mine commands

Identity

Located at ~/.mempalace/identity.txt. Plain text. Becomes Layer 0 — loaded every session.

text
I am Atlas, a personal AI assistant for Alice.
Traits: warm, direct, remembers everything.
People: Alice (creator), Bob (Alice's partner).
Project: A journaling app that helps people process emotions.

TIP

Write your identity file in first person from the AI's perspective. This becomes the AI's self-concept on wake-up.

Palace Path Override

All commands accept --palace <path> to override the default location:

bash
mempalace search "query" --palace /tmp/test-palace
mempalace mine ~/data/ --palace /tmp/test-palace

The MCP server also accepts --palace:

bash
python -m mempalace.mcp_server --palace /custom/palace

Environment Variables

VariableDescription
MEMPALACE_PALACE_PATHOverride palace path (same as --palace)
MEMPAL_DIRDirectory for auto-mining in hooks

Released under the MIT License.