Skip to main content
Let’s get started with Honcho. In this quickstart, you will:
  • Set up a workspace with peers (user and assistant)
  • Ingest messages from across multiple sessions
  • Query the reasoning Honcho produces to get synthesized insights about the user
Running the code below requires an API key. Create and account and get your API key at app.honcho.dev under “API KEYS”.Every new tenant gets $100.00 in free credits on sign up. The code below costs ~$0.04 to run, so don’t worry—still plenty of free credits for iterating.

1. Install the SDK

2. Initialize the Client

The Honcho client is the main entry point for interacting with Honcho’s API. It uses a workspace called default unless specified, so let’s create a first-honcho-test workspace for this quickstart.

3. Create Peers

4. Add Messages to Sessions

We’ve generated an example conversation dataset with 14 messages across 4 sessions. At a high level, the conversation contains a user chatting with an assistant to get help debugging software infrastructure problems for work and jam strategy on a side project they’re working on. Spoiler alert—the user is way more interested in their side project. Create a file called conversation.json and add the content in the accordion below. Then we’ll loop through the sessions and messages in that file and write them to Honcho.
Example Conversation

5. Query for Insights

Now ask Honcho what it’s learned—this is where the magic happens:
Honcho needs a short amount of time to process messages you write to it. There are several utilities to check the status of the queue. Honcho also offers numerous ways to query reasoning to fit latency needs: see the Get Context page.
The response will look something like this:
User is a personal finance app developer building a personalized finance assistant that’s generating real demand (friends are already asking when they can pay). They’re notably thoughtful about product design, carefully considering the UX balance between making users feel “known” versus “surveilled” when their app proactively surfaces remembered context like savings goals and spending regrets. They’re business-minded and working through unit economics early, exploring a $5/month subscription model with usage-based cost structure focused on insight generation frequency rather than data storage—though they wish they had more time to dedicate to the project.
Honcho synthesizes signal by reasoning about the user to draw conclusions beyond what was explicitly stated. It identifies the user as “notably thoughtful about product design”, “business-minded” from the discussion of unit economics, and surfaces the signal that they desire to work on the project more. This is rich personal context for domain-specific agents to do what they want with.
  • A life coach agent might see “they wish they had more time to dedicate to the project” and “friends are already asking when they can pay” and ask “have you thought about what it would take to go full-time?”
  • A productivity agent might see the same pattern and say “let’s protect your weekend time for the finance app.”
  • A financial advisor agent might see it and ask “what runway would you need to make the leap?”
Honcho acts almost like a detective—it reasons about new and existing evidence in order to form conclusions that can be used to make a case. These conclusions wait to be composed dynamically based on how you, the judge developer, query it. This approach is what drives our pareto-frontier performance on memory benchmarks, and our custom models allow us to optimize speed and cost.

Next Steps

You just saw how Honcho reasons about data to build rich peer representations. In this quickstart, you:
  • Set up a workspace with peers (user and assistant)
  • Ingested messages across multiple sessions
  • Queried the reasoning to get synthesized insights about the user
Here’s the full working code if you want to run it yourself:
From here, you can explore how to use Honcho’s features in your own applications:

Get Context

Learn how to fetch the right context for your agent’s next response

Architecture

Deep dive into how Honcho’s primitives fit together

Chat Endpoint

Chat with Honcho about your users

Guides

Integration patterns and advanced use cases