clawbrain

Store persistent memories and evolving personality traits for AI agents.

26|4|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/clawcolab/clawbrain --skill clawbrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clawbrain
Source: https://github.com/clawcolab/clawbrain/tree/main
Command: npx skills add https://github.com/clawcolab/clawbrain --skill clawbrain

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

AI agents lack persistent memory and personality, forcing them to treat every conversation as a fresh interaction and miss opportunities to personalize responses based on user preferences and past context.

Core Features & Use Cases

  • Persistent Memory: Stores conversations, facts, and preferences in SQLite or PostgreSQL with hybrid retrieval scoring across semantic, keyword, recency, importance, and confidence dimensions.
  • Evolving Personality: Six traits (humor, empathy, curiosity, creativity, helpfulness, honesty) that adapt based on user feedback and interaction patterns.
  • Encrypted Secrets: Fernet-encrypted storage for API keys and credentials with automatic key management and backup tools.
  • Conversation Ingestion: Automatically extracts memories, preferences, and tasks from chat histories using rule-based or LLM-powered extraction.
  • Use Case: A support bot that remembers a user's preferred communication style, past issues, and technical expertise to provide context-aware responses without repetitive questioning.

Quick Start

Install the ClawBrain package using pip, run the setup command to generate your encryption key and install the startup hook, then restart your AI service to enable automatic memory refresh on startup.

Frequently Asked Questions about clawbrain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to an AI agent so it remembers user preferences across conversations?

Persistent memory for AI agents is provided by storing conversations, facts, and preferences in SQLite or PostgreSQL with hybrid retrieval scoring. This allows chatbots to maintain context and personalize responses across multiple sessions without repetitive questioning.

How does encrypted secret storage work for AI assistant API keys and credentials?

Encrypted secret storage uses Fernet encryption to secure API keys and credentials for AI assistants. It includes automatic key management and backup tools to ensure sensitive data remains protected while being accessible for service authentication.

Can I use this memory system with OpenClaw and ClawdBot platforms?

Yes, the memory system integrates with OpenClaw and ClawdBot platforms using hook-based integration. It automatically refreshes and injects context memory into the AI service upon startup to maintain continuous conversation context.

What is hybrid retrieval scoring and how does it rank context for chatbots?

Hybrid retrieval scoring ranks context for chatbots by evaluating memories across semantic, keyword, recency, importance, and confidence dimensions. This multi-dimensional approach ensures the most relevant facts and past preferences are injected into responses.

How do I automatically extract memories and tasks from chat histories?

Automatic extraction of memories and tasks from chat histories is handled through rule-based or LLM-powered ingestion. This process identifies user preferences, facts, and action items from past interactions to populate the persistent memory database.

Do I need PostgreSQL or is SQLite enough for AI agent memory storage?

Both SQLite and PostgreSQL are supported for AI agent memory storage. SQLite is suitable for local or smaller deployments, while PostgreSQL scales better for larger chatbot applications requiring concurrent access to persistent conversation context.