Integration Guide
abmind integrates with any AI tool that supports hooks, MCP, or direct Node.js embedding.
Integration Paths
| Path | Best for | Setup |
|---|---|---|
| install-host | Claude Code, Gemini CLI, Codex CLI | abmind install-host <host> |
| Kiro CLI (manual) | Kiro CLI | Copy agents/abmind.json from a repo checkout (see CLI Reference) |
| Hermes plugin | Hermes-Agent | Copy plugin to ~/.hermes/plugins/abmind/ |
| MCP server | Cursor, Windsurf, Continue, Zed, any MCP client | abmind mcp (stdio) |
| Hooks (standalone) | Custom CLI tools, scripts | Call abmind hook-* commands |
| Node.js library | Embedding in your own app | import { MemoryManager } from "abmind" |
| abTARS (in-process) | Autonomous bridge | Built-in, no setup needed |
Host Integration (install-host)
One command sets up lifecycle hooks, MCP server registration, and context files:
abmind install-host claude # Claude Code
abmind install-host gemini # Gemini CLI
abmind install-host codex # OpenAI Codex CLIWhat it configures per host:
| Host | Hooks | MCP | Context file |
|---|---|---|---|
| Claude Code | SessionStart, UserPromptSubmit, Stop | ✅ via claude mcp add | CLAUDE.md |
| Gemini CLI | SessionStart, BeforeAgent, AfterAgent | ✅ via extension | GEMINI.md |
| Codex CLI | SessionStart, UserPrompt, Stop | ✅ registered | CODEX.md |
| Kiro CLI | Manual agents/abmind.json copy | Manual MCP registration | project 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.
# 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:
| Feature | How |
|---|---|
| Auto-recall | Relevant memories injected before every turn (full recall pipeline) |
| Auto-store | Every turn recorded in background |
| Pre-compress capture | Saves messages before Hermes discards them |
| Tools | abmind_recall + abmind_store for explicit use |
| Sleep | Operator-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
abmind mcp # starts on stdio — connect from any MCP clientWorks with any tool that supports the Model Context Protocol: Cursor, Windsurf, Continue, Zed, VS Code extensions, custom clients.
Available tools
| Tool | Description |
|---|---|
memory_recall | Deliberate keyword recall (1-50 terms, always searches) |
memory_store | Store a fact, preference, decision, or event (needs an operationId) |
memory_status | Runtime status plus connection mode (remote adds outbox counts) |
memory_context | Owner-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:
{
"mcpServers": {
"abmind": {
"command": "abmind",
"args": ["mcp"]
}
}
}Hook Commands (Standalone)
For custom integrations, call these from your tool's hook/event system:
| Hook | When to call | What it does |
|---|---|---|
abmind hook-wakeup | Session start | Outputs wake-up context (recent facts, profile) |
abmind hook-recall | Before each prompt | Outputs relevant memories for the current query |
abmind hook-store | After each response | Records the user+assistant turn |
abmind hook-doctor | On demand | Diagnoses 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:
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.