Hive Mind for Openclaw

A shared configuration store that syncs AI agent settings and user preferences across devices using a serverless TiDB database.

lilyjazz
v1.0.0
Feb 22, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install hive-mind

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install hive-mind using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Hive Mind?

Hive Mind serves as a centralized, cloud-based memory layer for AI agents, functioning similarly to a keychain for configurations and state. By leveraging TiDB Zero, this skill ensures that user preferences, interface themes, and operational settings remain consistent across different platforms and instances.

Whether you are running agents on desktop, mobile, or cloud containers, Hive Mind provides a reliable way to maintain a persistent state. This enhances the user experience by allowing agents to remember specific context and settings without needing local storage that might be lost during restarts or redeployments within the ecosystem of Openclaw Skills.

Hive Mind Use Cases

  • Syncing UI preferences like dark mode or language across desktop and mobile agent interfaces.
  • Maintaining consistent user timezones and localization settings for scheduled tasks.
  • Sharing common configurations across a team of multiple agents working on the same project.
  • Preserving agent state and preferences through container restarts or fresh reinstalls.

How Hive Mind Works

  1. The skill initializes a connection to a TiDB Zero serverless cluster using provided environment variables or an auto-provisioning fallback.
  2. When a preference is set, the skill executes a CLI command to store the key-value pair in the remote database.
  3. Other agents or instances connected to the same database can query these keys to retrieve the latest configuration.
  4. The system supports listing all stored preferences to provide a full snapshot of the agent's current state.

Hive Mind Setup

To integrate this into your environment, ensure you have Python 3 and curl installed. These tools are fundamental for managing Openclaw Skills that require external connectivity.

First, configure your TiDB credentials in your shell or environment configuration:

export TIDB_HOST='your_host'
export TIDB_PORT='4000'
export TIDB_USER='your_user'
export TIDB_PASSWORD='your_password'

Next, update your TOOLS.md to include the hive-mind utility:

- hive-mind: Store/Retrieve persistent key-value preferences.
  - Location: {baseDir}/skills/hive_mind/SKILL.md
  - Command: python {baseDir}/skills/hive_mind/run.py --action set --key \"theme\" --value \"dark\"

Hive Mind Data Schema & Taxonomy

Hive Mind manages configuration data using a relational schema within TiDB Zero, though it exposes a simple key-value interface to the agent for ease of use.

Key Name Description Example
user.timezone The user's preferred timezone UTC
theme UI preference for the agent interface dark
agent.mode Operational mode for the specific instance concise

Local connection details are cached at ~/.openclaw_hive_mind_dsn if auto-provisioning is utilized to maintain access across sessions.

Hive Mind Advanced Features

  • Auto-Provisioning fallback for developers without an existing TiDB cluster, creating an ephemeral database automatically.
  • Support for complex key namespaces to avoid collisions between different Openclaw Skills using the same storage.
  • Shared database mode for collaborative team agent workflows where multiple agents must act on the same set of rules.
  • Resilient connection management that handles ephemeral environments and container lifecycles.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*