Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Letta (formerly MemGPT)

Build AI with advanced memory that can learn and self-improve over time.

  • Letta Agent: run agents locally in your terminal, via the desktop app, or via channels like Slack
  • Letta Agent SDK: build agents into your applications

Get started in the CLI

Requires Node.js 22.19+

  1. Install the Letta Code CLI tool: npm install -g @letta-ai/letta-code
  2. Run letta in your terminal to launch an agent with memory running on your local computer

When running the CLI tool, your agent can help you code and do any task you can do on your computer.

Letta Code supports skills and subagents, and bundles pre-built skills/subagents for advanced memory and continual learning. Letta is fully model-agnostic, though we recommend the latest Anthropic, OpenAI, and zAI models for best performance (see our model leaderboard for our rankings).

Get started with the Letta Agent SDK

Use the Letta Agent SDK (TypeScript) to build stateful agents into your own applications. The SDK can run agents on Constellation (Letta's agent cloud), fully locally on your machine, or against a self-hosted App Server.

Installation

npm install @letta-ai/letta-agent-sdk

Hello World example

Below is a quick example of creating a stateful agent and streaming a conversation with it (requires a Letta API key). See the full quickstart guide for complete documentation.

import { LettaAgentClient } from "@letta-ai/letta-agent-sdk";

const client = new LettaAgentClient({
  backend: "cloud",
  apiKey: process.env.LETTA_API_KEY,
});

// Create your agent
const agentId = await client.createAgent({
  model: "anthropic/claude-opus-4-8",
  human:
    "Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence",
  persona:
    "I am a self-improving superintelligence. Timber is my best friend and collaborator.",
});

console.log("Agent created with ID:", agentId);

// Send your agent a message and stream the response
await using session = client.resumeSession(agentId);

await session.send("What do you know about me?");
for await (const message of session.stream()) {
  if (message.type === "assistant") console.log(message.content);
}

To run the same agent fully locally (the SDK spawns Letta Code on your machine as a subprocess), swap out the client:

const client = new LettaAgentClient({ backend: "local" });

Letta V1 SDK

The previous-generation V1 SDKs (@letta-ai/letta-client for TypeScript, letta-client for Python) target the Letta API directly and are still available (see the client SDKs). We recommend the Agent SDK for new projects.

Contributing

Letta is an open source project built by over a hundred contributors from around the world. There are many ways to get involved in the Letta OSS project!


Legal notices: By using Letta and related Letta services (such as the Letta endpoint or hosted service), you are agreeing to our privacy policy and terms of service.

Metadata

Release files for letta-nightly 0.16.8.dev20260730111931

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for letta-nightly 0.16.8.dev20260730111931
File Size Uploaded Provenance Actions
letta_nightly-0.16.8.dev20260730111931.tar.gz 8.2 MB Without provenance Details for letta_nightly-0.16.8.dev20260730111931.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for letta-nightly 0.16.8.dev20260730111931
File Interpreter ABI Platform Actions
letta_nightly-0.16.8.dev20260730111931-py3-none-any.whl Python 3 none any Details for letta_nightly-0.16.8.dev20260730111931-py3-none-any.whl

Total release size: 9.8 MB

Release files / letta_nightly-0.16.8.dev20260730111931.tar.gz

Download URL letta_nightly-0.16.8.dev20260730111931.tar.gz
Size 8.2 MB
Tags Source
SHA-256 checksum
How to use checksums
10ea04cce80ef28aa6f1fc83466abf6b63b8f9c02d12d19b2e9544e17753a2ba
BLAKE2b-256 checksum
How to use checksums
3d6565e7add6f56732f5efcd38f56c107b05458f59693adac680190e70268119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / letta_nightly-0.16.8.dev20260730111931-py3-none-any.whl

Download URL letta_nightly-0.16.8.dev20260730111931-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
22e1be0cc1dab7c22084d33b267ec545e3d40c2a20d2d9ac8851791d10fbe6c5
BLAKE2b-256 checksum
How to use checksums
8e9e5e1745760992f0e1b2f93efd0f72039053b2ae470670cf0215e1a1d8a2c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for letta-nightly 0.16.8.dev20260730111931

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page