To make things easy, there’s an instance of Honcho up and running on a demo server at https://demo.honcho.dev. The python package defaults to this instance, so let’s dive into how to get up and running!

Install the Honcho client SDK with the following commands:

First, import the Client from the package:

Next, we want to register an application with the Honcho client:

This will create an application with the above name if it does not already exist or retrieve it if it does. After we have our application initialized, we can make a user with the following:

Now let’s create a session for that application. Honcho is a user context management system, so you can create sessions for users. Thus, a user_id is required.

Let’s add a user message and an AI message to that session:

You can also easily query Honcho to get the session objects for that user with the following:

This is a super simple overview of how to get up and running with the Honcho SDK. We covered the basic methods for reading and writing from the hosted storage service. Next, we’ll cover alternative forms of hosting Honcho.

For a more detailed look at the SDK check out the SDK reference here.