Skip to main content
Pre-release

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

Letta logo

Letta (previously MemGPT)

Homepage // Documentation // Letta Cloud

👾 Letta is an open source framework for building stateful LLM applications. You can use Letta to build stateful agents with advanced reasoning capabilities and transparent long-term memory. The Letta framework is white box and model-agnostic.

Discord Twitter Follow arxiv 2310.08560

Apache 2.0 Release GitHub

cpacker%2FMemGPT | Trendshift

⚡ Quickstart

The two main ways to install Letta are through pypi (pip) or via Docker:

  • pip (guide below) - the easiest way to try Letta, will default to using SQLite and ChromaDB for the database backends
  • Docker (guide here) - recommended for production settings, will default to using Postgres (+ pgvector) for the database backend

Step 1 - Install Letta using pip

$ pip install -U letta

Step 2 - Set your environment variables for your chosen LLM / embedding providers

$ export OPENAI_API_KEY=sk-...

For Ollama (see our full documentation for examples of how to set up various providers):

$ export OLLAMA_BASE_URL=http://localhost:11434

Step 3 - Run the Letta CLI

You can create agents and chat with them via the Letta CLI tool (letta run):

$ letta run
🧬 Creating new agent...
? Select LLM model: letta-free [type=openai] [ip=https://inference.memgpt.ai]
? Select embedding model: letta-free [type=hugging-face] [ip=https://embeddings.memgpt.ai]
->  🤖 Using persona profile: 'sam_pov'
->  🧑 Using human profile: 'basic'
->  🛠️  8 tools: send_message, pause_heartbeats, conversation_search, conversation_search_date, archival_memory_insert, archival_memory_search, core_memory_append, core_memory_replace

🎉 Created new agent 'InspiringSpinach'

Hit enter to begin (will request first Letta message)

💭 User engaged. Recognize as Chad. Acknowledge presence and establish connection. Explore interests and engage in meaningful discourse.
🤖 Hello, Chad. It's nice to meet you. I am keen on learning and exploring new ideas and concepts. Is there a specific topic you'd like to discuss today?

> Enter your message: my name is Brad, not Chad...

💭 A discrepancy in identity. Reflect this change in core memory. Apologize for the oversight, and rectify the error.
⚡🧠 [function] updating memory with core_memory_replace
         First name: Chad
        → First name: Brad
💭 Apologize for the mistake in recognizing his name, and begin the conversation anew, addressing him by the correct name this time.
🤖 I apologize for the oversight, Brad. Let's restart. It's a pleasure to meet you, Brad. Is there a specific topic you'd like to discuss today?

> Enter your message:

Step 4 - Run the Letta server

You can start the Letta API server with letta server (see the full API reference here):

$ letta server
Initializing database...
Running: uvicorn server:app --host localhost --port 8283
INFO:     Started server process [47750]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8283 (Press CTRL+C to quit)

When you start the Letta API server, the ADE (Agent Development Environment) will be available on http://localhost:8283: Screenshot of the Letta ADE (Agent Development Environment)

In Letta, all agents are stored/persisted in the same database, so the agents you create in the CLI are accessible via the API and ADE, and vice versa. Check out the quickstart guide on our docs for a tutorial where you create an agent in the Letta CLI and message the same agent via the Letta API.

🤗 How to contribute

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

  • Contribute to the project: Interested in contributing? Start by reading our Contribution Guidelines.
  • Ask a question: Join our community on Discord and direct your questions to the #support channel.
  • Report ssues or suggest features: Have an issue or a feature request? Please submit them through our GitHub Issues page.
  • Explore the roadmap: Curious about future developments? View and comment on our project roadmap.
  • Join community events: Stay updated with the event calendar or follow our Twitter account.

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.5.2.dev20241113104112

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.5.2.dev20241113104112
File Size Uploaded Provenance Actions
letta_nightly-0.5.2.dev20241113104112.tar.gz 916.5 kB Without provenance Details for letta_nightly-0.5.2.dev20241113104112.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / letta_nightly-0.5.2.dev20241113104112.tar.gz

Download URL letta_nightly-0.5.2.dev20241113104112.tar.gz
Size 916.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d1844645cbdb6dff7198e5f92463f6759ebcf22d703e28de4df37bf9ad37937e
BLAKE2b-256 checksum
How to use checksums
ca86adcd3cd1384cf8f80ee145742916cd367dfb7d01e8af5a8900ea9308ac62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure

Release files / letta_nightly-0.5.2.dev20241113104112-py3-none-any.whl

Download URL letta_nightly-0.5.2.dev20241113104112-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c8788b9d574c81267a6b00096e4abbdf47ce5d98eccf14413aa0382eab1b7617
BLAKE2b-256 checksum
How to use checksums
270c203710c86df2c243ec5f33ed651c203e490d948234a076d0a1814e50bebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.10 Linux/6.5.0-1025-azure

Security for letta-nightly 0.5.2.dev20241113104112

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