Skip to content

Integration Guide ​

abmind integrates with any AI tool that supports hooks, MCP, or direct Node.js embedding.

Integration Paths ​

PathBest forSetup
install-hostClaude Code, Gemini CLI, Codex CLIabmind install-host <host>
Kiro CLI (manual)Kiro CLICopy agents/abmind.json from a repo checkout (see CLI Reference)
Hermes pluginHermes-AgentCopy plugin to ~/.hermes/plugins/abmind/
MCP serverCursor, Windsurf, Continue, Zed, any MCP clientabmind mcp (stdio)
Hooks (standalone)Custom CLI tools, scriptsCall abmind hook-* commands
Node.js libraryEmbedding in your own appimport { MemoryManager } from "abmind"
abTARS (in-process)Autonomous bridgeBuilt-in, no setup needed

Host Integration (install-host) ​

One command sets up lifecycle hooks, MCP server registration, and context files:

bash
abmind install-host claude    # Claude Code
abmind install-host gemini    # Gemini CLI
abmind install-host codex     # OpenAI Codex CLI

What it configures per host:

HostHooksMCPContext file
Claude CodeSessionStart, UserPromptSubmit, Stop✅ via claude mcp addCLAUDE.md
Gemini CLISessionStart, BeforeAgent, AfterAgent✅ via extensionGEMINI.md
Codex CLISessionStart, UserPrompt, Stop✅ registeredCODEX.md
Kiro CLIManual agents/abmind.json copyManual MCP registrationproject steering

Safe to re-run (idempotent). Backs up existing config before modifying. Uninstall with --uninstall.


Hermes-Agent Plugin ​

abmind implements Hermes's MemoryProvider interface — automatic recall and store on every turn without the model needing to call a tool.

bash
# 1. Install abmind (standalone bootstrap)
curl -fsSL https://raw.githubusercontent.com/aksika/abmind/main/scripts/install-standalone.sh -o install-standalone.sh
sh install-standalone.sh && abmind install

# 2. Copy plugin files to Hermes
mkdir -p ~/.hermes/plugins/abmind
cp <abmind-repo>/hermes-plugin/__init__.py ~/.hermes/plugins/abmind/
cp <abmind-repo>/hermes-plugin/plugin.yaml ~/.hermes/plugins/abmind/

# 3. Configure ~/.hermes/config.yaml:
memory:
  provider: abmind

# 4. Set env vars in your hermes .env:
ABMIND_HOME=/path/to/.abmind
TELEGRAM_HOME_CHANNEL=<your-chat-id>

What it provides:

FeatureHow
Auto-recallRelevant memories injected before every turn (full recall pipeline)
Auto-storeEvery turn recorded in background
Pre-compress captureSaves messages before Hermes discards them
Toolsabmind_recall + abmind_store for explicit use
SleepOperator-scheduled (see Sleep); the provider never registers jobs by itself

Unlike MCP-only integrations, the model doesn't need to decide to "save" or "recall" — it happens automatically on every turn.

Requirements: Node.js 26+, abmind on PATH, ABMIND_HOME and TELEGRAM_HOME_CHANNEL env vars set.

Known limitation: Hermes does not call prefetch() on the first turn of a new session. First turn gets wake-up context only (~200 chars). Subsequent turns get full recall.

Architecture: The plugin is a thin routing layer — all logic lives in abmind core. Tool-originated stores default to confidence=1 (unverified). Sleep promotes to confidence=3 when corroborated.


Retired: OpenClaw Plugin (#1899) ​

The OpenClaw plugin was removed. abmind no longer ships an OpenClaw plugin, manifest, or package entry — importing abmind/openclaw-plugin is intentionally unsupported. Existing OpenClaw session transcripts can still be imported one time with abmind migrate-openclaw (see Hook Commands below for the transcript-import command row).


MCP Server ​

bash
abmind mcp    # starts on stdio — connect from any MCP client

Works with any tool that supports the Model Context Protocol: Cursor, Windsurf, Continue, Zed, VS Code extensions, custom clients.

Available tools ​

ToolDescription
memory_recallDeliberate keyword recall (1-50 terms, always searches)
memory_storeStore a fact, preference, decision, or event (needs an operationId)
memory_statusRuntime status plus connection mode (remote adds outbox counts)
memory_contextOwner-composed model context, primary owner only

Every tool returns a versioned {version: 1, ok, result|error} envelope. Writes carry a caller-chosen operationId (1-128 chars): repeating the same operationId with the same payload converges; changed input conflicts. memory_wakeup/memory_bundle are retired; use memory_context.

Registering manually ​

If your tool doesn't support install-host, register the MCP server directly:

json
{
  "mcpServers": {
    "abmind": {
      "command": "abmind",
      "args": ["mcp"]
    }
  }
}

Hook Commands (Standalone) ​

For custom integrations, call these from your tool's hook/event system:

HookWhen to callWhat it does
abmind hook-wakeupSession startOutputs wake-up context (recent facts, profile)
abmind hook-recallBefore each promptOutputs relevant memories for the current query
abmind hook-storeAfter each responseRecords the user+assistant turn
abmind hook-doctorOn demandDiagnoses hook config issues

Each outputs text to stdout — inject into the model's system prompt or context.


Node.js Library (Embedding) ​

For building your own memory-powered application:

typescript
import { createMemoryBackend } from "abmind";
import { loadMemoryConfig } from "abmind";

const config = loadMemoryConfig();
const backend = await createMemoryBackend(config);

// Store
backend.recordMessage({ role: "user", content: "I live in Budapest", userId: "user-1", sessionId: "s1", timestamp: Date.now() });

// Recall
const results = await backend.recall({ translated: ["Budapest", "location"], userId: "user-1", limit: 5 });

backend.close();

abTARS (In-Process) ​

When running as part of abTARS, abmind is loaded in-process via file:../abmind dependency. No separate setup — abtars install handles everything. Memory is available to all agents (professor, dreamy, browsie, coding) and the heartbeat/sleep system.