Home / SDKs

One memory API. Five native SDKs.

Every client speaks the same REST surface. The fastest path is Python local mode: no server, no Docker, no API key.

Current release matrix

Pick your language.

Pythonpip install lians-sdk
Python localpip install lians-sdk[local]
TypeScript / Nodenpm install @lians-ai/lians
Gogo get github.com/Lians-ai/Lians/agentmem/sdk/go@v0.4.1
Java · JVM 11+ai.lians:lians-sdk:0.4.1
C · C99 + libcurlcmake -B build && cmake --build build

Python 0.4.2 is on PyPI. Go 0.4.1 is on the module proxy. Java 0.4.1 is on Maven Central. C 0.4.1 is attached to the GitHub release. npm remains on 0.4.0 while registry authorization is repaired.

Self-host the server

Postgres + pgvector, in your perimeter.

# Postgres + pgvector + API on :8000
$ git clone https://github.com/Lians-ai/Lians
$ cd Lians
$ docker compose up --build

Health check: curl localhost:8000/livez. See deploy.md for KMS, the non-superuser DB role for RLS, air-gap, and WORM.

Framework integrations

Drop into your agent stack.

$ pip install lians-sdk[langchain]
$ pip install lians-sdk[langgraph]
$ pip install lians-sdk[crewai]
$ pip install lians-sdk[all]

First-class support for LangChain, LangGraph, CrewAI, the OpenAI Agents SDK, and AutoGen v0.4, including a pre-compaction flush (CompactionGuard + a flush node/tool per framework) that persists durable facts before your framework summarizes them away.

MCP · native tool in any AI client

Eight memory tools, zero adapter code.

On the official MCP Registry: Claude Desktop, Cursor, VS Code, and Windsurf connect with a one-time config and get all eight memory tools automatically.

{
  "mcpServers": {
    "lians": {
      "command": "uvx",
      "args": ["--from", "lians-sdk[mcp]", "lians-mcp"],
      "env": {
        "LIANS_URL": "https://your-lians-server.internal",
        "LIANS_API_KEY": "lians_...",
        "LIANS_AGENT_ID": "trading-desk-1"
      }
    }
  }
}

Any other MCP host: uvx --from 'lians-sdk[mcp]' lians-mcp with LIANS_URL, LIANS_API_KEY, and optionally LIANS_AGENT_ID set.

Verify a release

Confirm the version.

$ pip install lians-sdk==0.4.2
$ npm view @lians-ai/lians version
$ go list -m github.com/Lians-ai/Lians/agentmem/sdk/go@v0.4.1

Install in 30 seconds. No account required.

Get an API key →