Give OpenClaw agents persistent memory and identity.
npm install -g @tpsdev-ai/flair
flair initopenclaw plugins install @tpsdev-ai/openclaw-flairflair agent add my-agentIn your OpenClaw agent config, add the Flair plugin:
{
"plugins": {
"@tpsdev-ai/openclaw-flair": {
"agentId": "my-agent",
"flairUrl": "http://localhost:19926"
}
}
}Or set environment variables:
export FLAIR_AGENT_ID=my-agent
export FLAIR_URL=http://localhost:19926openclaw gateway restartThe Flair plugin adds these tools to your OpenClaw agent:
| Tool | Description |
|---|---|
memory_store |
Write a memory with optional type, durability, and tags |
memory_recall |
Semantic search over stored memories |
memory_get |
Retrieve a specific memory by ID |
On each new conversation, the plugin injects relevant context from Flair:
- Soul entries (persistent personality and project context)
- Recent memories (last 24h)
- Relevant memories (semantically matched to the conversation topic)
This happens automatically — no agent configuration needed beyond the plugin setup.
Each OpenClaw agent gets its own isolated memory space:
flair agent add research-agent
flair agent add coding-agent
flair agent add review-agentAgents can share memories via grants:
# Let review-agent read coding-agent's memories
flair grant coding-agent review-agent --scope readSet persistent context that shapes how the agent behaves:
flair soul set --agent my-agent --key role \
--value "Senior engineer focused on reliability. Ship quality over speed."
flair soul set --agent my-agent --key project \
--value "E-commerce API. Node.js, PostgreSQL. 200K DAU."Soul entries are included in every bootstrap — they're the agent's persistent identity.
The plugin resolves Ed25519 keys in this order:
FLAIR_KEY_PATHenvironment variable~/.flair/keys/<agent-id>.key~/.tps/secrets/flair/<agent-id>-priv.key(legacy TPS path)
# Verify Flair is running
flair status
# Verify the agent exists
flair agent list
# Test memory roundtrip
flair memory add --agent my-agent --content "test memory"
flair search "test" --agent my-agent
# Check plugin is loaded
openclaw plugins listIf the plugin fails to load, check the gateway logs for Flair connection errors. Common issues:
- Wrong port (default changed to 19926 in v0.4.0)
- Agent not registered (
flair agent add <id>) - Key file missing (
~/.flair/keys/<agent-id>.key)