honcho

plastic-labs/honcho

Memory library for building stateful agents

5.8k
Stars
696
Forks
148
Open issues
24
Watchers
Python AGPL-3.0Last pushed Jul 7, 2026

Overview

Honcho provides memory infrastructure to build context-aware AI agents. It supports storing messages, events, and allows background reasoning for querying different representations from various models.

Categories

Tags

Similar tools

Install

pip install honcho

README


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 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
  • 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.

Start Here

I want to...PathGet started
Give my coding agent persistent memoryClaude Code, OpenCode, OpenClaw, Hermes, or any MCP clientIntegrations
Add memory to my productPython or TypeScript SDKQuickstart
Self-host HonchoDocker / local developmentSelf-hosting

Why Honcho

CapabilityWhat it means
Reasoning-first memoryExtracts conclusions from conversations and events, not just matching chunks.
Peer-centric modelTracks users, agents, groups, projects, and ideas as entities that change over time.
Multi-peer perspectiveModels what one peer knows about another when configured.
Managed or self-hostedUse api.honcho.dev or run the FastAPI server yourself.
Agent-tool integrationsMCP, 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