Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

honcho

> 后端框架
Open source

Memory library for building stateful agents

6.4K stars0 likes2 views
WebsiteGitHub

About

Memory library for building stateful agents


Honcho is memory infrastructure for building stateful agents that understand changing people, agents, groups, projects, and ideas over time.

Store messages and events, let Honcho reason in the background, then query peer representations, session context, search results, or natural-language insights from any model or framework. Use it managed at api.honcho.dev, run a local stack with honcho start, or self-host the FastAPI server yourself.

Using Honcho as your memory system will earn your agents higher retention, more trust, and help you build data moats to out-compete incumbents.

Honcho has defined the Pareto Frontier of Agent Memory. Watch the video, check out our evals page, and read the blog post for more detail.

Contents

  • Start Here
  • Why Honcho
  • The Honcho Loop
  • Quickstart
  • What Honcho Gives You
  • Integrations
  • CLI
  • Core Concepts
  • Benchmarks & Evals
  • Self-hosting
  • Configuration
  • Architecture
  • SDKs
  • Learn More
  • Contributing
  • License

The Honcho project is split between several repositories, with this one hosting the core service logic — implemented as a FastAPI server. Client SDKs for Python and TypeScript live in the sdks/ directory. The honcho-cli package lives here too.

Start Here

I want to... Path Get started
Give my coding agent persistent memory Claude Code, OpenCode, OpenClaw, Hermes, or any MCP client Integrations
Add memory to my product Python or TypeScript SDK Quickstart
Run Honcho locally Install CLI, then honcho start --setup CLI
Inspect a deployment honcho workspace inspect, honcho doctor CLI
Self-host from source Docker Compose or local development Self-hosting

Why Honcho

Capability What it means
Reasoning-first memory Extracts conclusions from conversations and events, not just matching chunks.
Peer-centric model Tracks users, agents, groups, projects, and ideas as entities that change over time.
Multi-peer perspective Models what one peer knows about another when configured.
Managed or self-hosted Use api.honcho.dev, honcho start locally, or run the FastAPI server yourself.
Agent-tool integrations MCP, Claude Code, OpenCode, OpenClaw, Hermes, Cursor-compatible clients.

The Honcho Loop

  1. Store conversations, events, documents, or tool traces as messages on a session.
  2. Reason — Honcho processes the queue in the background and updates peer representations.
  3. Query — ask Honcho for context, search results, peer representations, or a natural-language answer.
  4. Inject — drop the result into any LLM call or agent framework.

Concretely: workspaces hold peers, peers participate in sessions, messages live on sessions, and Honcho builds a per-peer representation that you query through the Chat Endpoint or directly.

Quickstart

Get an API key at app.honcho.dev — when you sign up you'll be prompted to join an organization, which gets its own dedicated Honcho instance and $100 free credits. Or install the CLI and run honcho start --setup, then point the SDK at http://localhost:8000.

Python

bash
pip install honcho-ai
# or: uv add honcho-ai
# or: poetry add honcho-ai
…

TypeScript

bash
npm install @honcho-ai/sdk
# or: bun add @honcho-ai/sdk
…

Note: background reasoning is asynchronous. Newly-added messages may take a moment to be reflected in chat/representation responses; for low-latency reads, use the representation endpoint.

What Honcho Gives You

Need API
Save interaction history session.add_messages(...)
Ask what Honcho knows about a peer peer.chat(...)
Ask across the whole workspace honcho.chat(...) / honcho.chat_stream(...)
Get prompt-ready context session.context(...).to_openai(...) / .to_anthropic(...)
Hybrid search (BM25 + vector) peer.search(...), session.search(...), honcho.search(...)
Low-latency static representations peer.representation(...), session.representation(...)
Import documents session.upload_file(...)
Inspect background processing honcho.queue_status(...)

See the full SDK Reference and API Reference.

Integrations

Honcho ships a first-party memory plugin for every major coding agent. They all read the same ~/.honcho/config.json, so one key configures all of them — and pointing two at the same workspace gives them one shared memory.

Agent Install Source
Claude Code /plugin marketplace add plastic-labs/claude-honcho claude-honcho
Codex npm install -g @honcho-ai/codex-honcho codex-honcho
Cursor curl -fsSL .../cursor-honcho/main/install.sh | bash cursor-honcho
DeepSeek Harness dsh plugin --profile <name> add @honcho-ai/dsh-honcho dsh-honcho
OpenCode opencode plugin "@honcho-ai/opencode-honcho" --global opencode-honcho
OpenClaw openclaw plugins install @honcho-ai/openclaw-honcho openclaw-honcho
Hermes hermes memory setup built in upstream
Any MCP client claude mcp add honcho --transport http ... MCP guide

Get a key at app.honcho.dev, then honcho init (or uv tool install honcho-cli && honcho init) writes it to ~/.honcho/config.json once for every integration.

Claude Code

Two ways, depending on how deep you want to go:

Plugin (richer integration — recommended for Claude Code users):

/plugin marketplace add plastic-labs/claude-honcho
/plugin install honcho@honcho

Raw MCP (works in any MCP client — Cursor, Cline, Windsurf, etc.):

bash
claude mcp add honcho \
  --transport http \
  --url "https://mcp.honcho.dev" \
  --header "Authorization: Bearer hch-your-key-here" \
  --header "X-Honcho-User-Name: YourName"

Details: Claude Code guide · MCP guide · repo.

Codex

bash
npm install -g @honcho-ai/codex-honcho
codex-honcho install      # registers hooks + MCP + skill in ~/.codex

Restart Codex to load the hooks. Details: Codex guide · repo.

Cursor

bash
curl -fsSL https://raw.githubusercontent.com/plastic-labs/cursor-honcho/main/install.sh | bash

Windows (PowerShell): irm https://raw.githubusercontent.com/plastic-labs/cursor-honcho/main/install.ps1 | iex. The installer wires global hooks and MCP config. Details: cursor-honcho.

DeepSeek Harness

bash
dsh plugin --profile <name> add @honcho-ai/dsh-honcho

A native Cordis plugin. It injects memory into the system prompt and captures new information from the session event feed. The model gets three tools — honcho_search, honcho_chat, and honcho_remember — and you can run /honcho to check status. Details: DeepSeek Harness guide · repo.

OpenCode

bash
opencode plugin "@honcho-ai/opencode-honcho" --global

Details: OpenCode guide · repo.

OpenClaw

bash
openclaw plugins install @honcho-ai/openclaw-honcho
openclaw honcho setup
openclaw gateway --force

openclaw honcho setup prompts for your API key, writes the config, and optionally migrates legacy MEMORY.md / USER.md / IDENTITY.md files into Honcho (non-destructive — originals are never deleted). Details: OpenClaw guide · repo.

Hermes

bash
hermes memory setup   # select "honcho", point at api.honcho.dev or your local server

Details: Hermes guide.

Add Honcho to your own codebase (agent skill)

For wiring the Honcho SDK into an existing application, install the integration skill — it explores your codebase, asks about integration preferences, generates the SDK setup, and verifies it works:

bash
npx skills add plastic-labs/honcho

Then invoke /honcho-integration in Claude Code (or /honcho-dev:integrate via the plugin marketplace). The same command also installs the memory skills — honcho-memory (concepts: the recall/record loop, session and peer strategy, plus how to connect and drive an MCP-connected Honcho) and honcho-cli (inspecting a deployment, or running a local stack with honcho start). Details: agentic development guide.

Other MCP clients

The same claude mcp add form (or its client-specific equivalent) works in any MCP-compatible client. See MCP guide.

CLI

honcho-cli inspects a Honcho deployment from the terminal, or runs a personal local stack with Docker.

bash
uv tool install honcho-cli
honcho init                 #

Issues· 146 open

View all issuesOpen on GitHub
  • #1238

    [Bug] honcho-aio Docker: Redis fails to save RDB snapshots due to permission denied (read-only filesystem issue in s6-overlay)

    bugUpdated Sep 24, 2026
  • #1236

    [Bug] Exhausted transient-retry budget permanently burns work units; queue/status still reports them as completed

    Updated Sep 24, 2026
  • #1223

    uv.lock pins starlette 1.0.0, which carries a CISA-KEV CVE (CVE-2026-48710)

    securityhonchomaintainer-approvedUpdated Sep 24, 2026
  • #1230

    [Bug] Deriver persists few-shot example outputs as peer conclusions despite #1028

    bugmanaged offering bugqualityUpdated Sep 24, 2026
  • #1232

    [Bug] OpenAI 400 BadRequestError when using newer models (e.g., gpt-6-luna): 'max_tokens' is not supported, use 'max_completion_tokens'

    bughonchomaintainer-approvedUpdated Sep 24, 2026
  • #1101

    Tool calls in one assistant turn run serially, so a turn costs the sum of its reads

    enhancementmaintainer-approvedUpdated Sep 23, 2026
  • #1143

    [Bug] update_peer_card silently truncates an over-cap card, so a card at the cap can never take a new entry

    bughonchomaintainer-approvedUpdated Sep 23, 2026
  • #1205

    [Bug] Everything is one session when running hermes with signal

    bugmaintainer-approvedintegration:hermesUpdated Sep 22, 2026
  • #915

    [bug] Embedder silently defaults to OpenAI when EMBEDDING_* unset; no way to disable create_observations embedding

    documentationmaintainer-approvedUpdated Sep 22, 2026
  • #1153

    [Bug] LLM retry loop retries non-retryable errors and defers fallback to the final attempt

    bugllm providermaintainer-approvedUpdated Sep 22, 2026

> Tags

Pythonagent-memoryaiai-agentsai-memory

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架