$npx skillfedfor your agent

letta-client

The official Python library for the letta API

Worth itPyPI Python ModulesReleased Jun 2026120.3K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — letta_client-1.12.1-py3-none-any.whl
v1.12.1 · released 2026-06-02 · Python >=3.9 · 6 runtime deps: anyio, distro, httpx, pydantic, sniffio, typing-extensions

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides a clean, type-safe interface to the Letta API. Install it if you need to programmatically interact with Letta agents or archives from Python. The low install friction and support for both sync and async patterns make it suitable for most Python projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; LETTA_API_KEY environment variable or explicit api_key parameter needed for authentication.
  • Low friction install with six common runtime dependencies.
  • The package is actively maintained with a recent release (73 days ago) and no known vulnerabilities.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

last release 2026-06-02 (73 days) · last repo commit 2026-07-07 · 55 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,263 downloads/mo, #12,039 on PyPI

Verify before relying

pip install letta-client

import os
from letta_client import Letta

client = Letta(
    api_key=os.environ.get("LETTA_API_KEY"),
    environment="local",
)
archive = client.archives.create(name="name")
print(archive.id)
  • Whether the Letta service itself (not just this client) is production-ready and suitable for your use case.
  • Performance characteristics and rate limits of the underlying Letta REST API.
  • Whether aiohttp backend (optional dependency) provides measurable concurrency improvements for your workload.
Same gist for agents: .md · .json

What it is and what it does

Letta-client is the official Python SDK for the Letta REST API, generated using Stainless. It wraps HTTP communication with full type safety via Pydantic models and TypedDicts, offering both synchronous and asynchronous clients powered by httpx. The library handles pagination automatically, supports streaming responses via Server-Side Events, and provides structured error handling with specific exception types for different HTTP status codes.

You use it to build Python applications that interact with Letta agents and archives. The client manages authentication via API keys, serialization and deserialization of requests and responses, and offers optional aiohttp support for improved async concurrency. It supports Python 3.9 through 3.14 and is cross-platform (macOS, Windows, Linux).

Use it for

  • Build a chatbot or conversational agent application that delegates message handling to Letta's managed agent infrastructure.
  • Automate archive management (creation, querying, updates) as part of a larger data pipeline or knowledge management system.
  • Develop an async service that streams agent responses in real-time to multiple concurrent clients using the AsyncLetta client.
  • Integrate Letta agent capabilities into an existing Python web framework by using the typed client for type-checked API calls.
  • Paginate through large lists of agents or archives without manually handling page cursors or making repeated requests.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses a permissive license, and provides a clean, type-safe interface to the Letta API. Install it if you need to programmatically interact with Letta agents or archives from Python. The low install friction and support for both sync and async patterns make it suitable for most Python projects.

Install

letta-client on PyPI

Before you install

Low friction install with six common runtime dependencies. The package is actively maintained with a recent release (73 days ago) and no known vulnerabilities.

Requires Python 3.9 or later; LETTA_API_KEY environment variable or explicit api_key parameter needed for authentication.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

Quickstart

pip install letta-client

import os
from letta_client import Letta

client = Letta(
    api_key=os.environ.get("LETTA_API_KEY"),
    environment="local",
)
archive = client.archives.create(name="name")
print(archive.id)

Verify before relying

  • Whether the Letta service itself (not just this client) is production-ready and suitable for your use case.
  • Performance characteristics and rate limits of the underlying Letta REST API.
  • Whether aiohttp backend (optional dependency) provides measurable concurrency improvements for your workload.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
anyiodistrohttpxpydanticsniffiotyping-extensions
MaintenanceActively maintained 73 days since the last release
Last repo commit
First released
Downloads120,263 / month, #12,039 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: letta_client-1.12.1-py3-none-any.whl

Tags

Capabilities
letta api client pythonrest api client libraryasync http clienttyped api wrapperletta agent sdkpython api client generatorstainless generated client
Topics
rest-api-clientasync-supporttype-safe

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “letta api client python”

  • letta-clientProvides a Python client library for the Letta REST API with…
  • lettaLetta is a framework for building LLM agents with persistent memory…
  • twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also agentex-client · letta · opencode-ai · composio-client · modern-treasury · groq · sambanova · llama-api-client · knockapi · bilibili-api-python