Myelin

SDK Overview

The myelin-sdk Python package gives your agent procedural memory with minimal setup. It's open-source (MIT) and available on PyPI.

Installation

For Claude Code (recommended — installs myelin-capture globally). If the command is not on your PATH after install, use python -m myelin_sdk.claude_code in the hook config instead:

uv tool install myelin-sdk

Or with pip (works on any platform with Python 3.10+):

pip install myelin-sdk

With LangChain support:

pip install myelin-sdk[langchain]

Integration paths

The SDK supports two ways to add memory to your agent:

Claude Code

Zero-code integration via PostToolUse hooks. The SDK captures every tool call automatically — no wrappers or middleware needed. Your agent works exactly as before.

Claude Code setup guide →

LangChain

Callback handler and toolkit for LangChain agents. Use session-based capture for simple setups, or the full toolkit for autonomous agents that manage their own memory.

LangChain setup guide →

Requirements

  • Python 3.10+
  • A Myelin API key (create one in your dashboard)
  • langchain-core >= 0.3.0 (only for the [langchain] extra)

Source