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-sdkOr with pip (works on any platform with Python 3.10+):
pip install myelin-sdkWith 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.
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.
Requirements
- Python 3.10+
- A Myelin API key (create one in your dashboard)
langchain-core >= 0.3.0(only for the[langchain]extra)
Source
- GitHub: yahnyshc/myelin-sdk
- License: MIT
- Version: 0.1.0