Before you start
Get an API key
In the Hone dashboard, open Settings → API Keys and create a key. It looks like
sk_ followed by a long hex string. Keep it out of source control. See Authentication for the full model.Path A — Conversations SDK
Use this when your agent runs as regular application code and you want to record each turn (the user’s input and your agent’s output). Wrap the turn withbegin() and end().
- Python
- TypeScript
If you would rather not manage an interaction object,
track() records a completed turn in a single fire-and-forget call. See the Python and TypeScript references.Path B — MCP server
Use this when your agent is exposed as an MCP server. One wrapper call auto-captures every tool, resource, and prompt invocation. You do not have to instrument each handler.- Python
- TypeScript
Verify
- Trigger one turn (Path A) or call one tool (Path B).
- Open the Hone dashboard and go to Raw Logs — your call appears as a row with its operation name, status, latency, and timestamp.
- Expand the row to inspect the input and output payloads.
- For Path A, the turn also shows up under User Stories, grouped by the
user_idyou passed.
Events can take a few seconds to appear while Hone processes the stream. If nothing shows up after a minute, confirm your API key is valid and that you are pointed at the right endpoint (
https://api.hone.dev by default). See Authentication.Where to go next
SDK overview
Compare the Conversations and MCP paths and decide what to reach for.
Data governance
Keep identifiers pseudonymous and scrub sensitive content before it is sent.