Letta

Active
GitHub Unknown Apache-2.0

Description

Letta (formerly MemGPT) is an open-source framework for building stateful AI agents with advanced reasoning and transparent long-term memory. It allows you to visually test, debug, and observe agents.

Key Features

  • Persistent long-term memory — agents remember user preferences, context, and history across sessions
  • Memory block management — structured state via configurable memory blocks (human, persona)
  • CLI interface — run memory-powered agents directly in terminal via Letta Code CLI
  • REST API integration — Python/TypeScript SDK to embed stateful agents into your apps
  • Skills and subagent support — built-in skill system and subagent orchestration
  • Model-agnostic architecture — works with any LLM backend, freely switchable

Use Cases

💡 Building long-term personal assistants that remember user preferences
💡 Developing customer service agents requiring cross-session context
💡 Creating self-improving coding assistants with learning capabilities
💡 Building multi-step workflow agents needing state management
💡 Creating enterprise AI applications with transparent memory mechanisms

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (24.3k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (2 years in production)

Quick Start

npm install @letta-ai/letta-client

import Letta from "@letta-ai/letta-client";

const client = new Letta({ apiKey: process.env.LETTA_API_KEY });

const agentState = await client.agents.create({
  model: "openai/gpt-5.2",
  memory_blocks: [
    { label: "human", value: "Name: Alice. Role: developer." },
    { label: "persona", value: "I am a helpful coding assistant." }
  ],
  tools: ["web_search", "fetch_webpage"],
});

const response = await client.agents.messages.create(agentState.id, {
  input: "What do you know about me?",
});

for (const message of response.messages) {
  console.log(message);
}

Related Projects

OctoTools

1.5k · Python
Stale B

OctoTools is an agentic framework with extensible tools for complex reasoning, featuring a tool card system for flexible composition of diverse reasoning capabilities.

agent-frameworkreasoningtool-use +2
  • · Training-free agentic framework — no fine-tuning needed; works out of the box with any supported LLM
  • · Standardized tool cards — encapsulate tool functionality with metadata for plug-and-play integration of new tools
  • · Hierarchical planner — handles both high-level strategy and low-level step-by-step action refinement

AutoAgent

9.7k · Python
Stale B

Fully-automated and zero-code LLM agent framework that enables users to build and deploy custom AI agents through natural language without writing code.

agent-frameworkzero-codeautomation +2
  • · Fully-automated agent building through natural language — no coding required to create, customize, and deploy AI agents
  • · Zero-code framework democratizing AI development for users without technical backgrounds
  • · Self-managing workflow generation that dynamically creates and optimizes agent pipelines from high-level descriptions

ART

10.6k · Python
Active A+

ART (Agent Reinforcement Trainer) trains multi-step agents for real-world tasks using GRPO reinforcement learning, enabling on-the-job training for models like Qwen, Llama, and more.

reinforcement-learningagent-trainingGRPO +3
  • · GRPO-based reinforcement learning for training multi-step agents on real-world tasks
  • · W&B Training serverless RL with 40% lower cost and 28% faster training via shared inference cluster
  • · Pre-built notebooks for email search, 2048, Tic Tac Toe, Codenames, and MCP tool mastery

PocketFlow

11.1k · Python
Active A

PocketFlow is a minimalist 100-line LLM framework that lets Agents build Agents, enabling complex AI agent workflows through a clean abstraction layer.

agent-frameworkllmworkflow +2
  • · Only 100 lines of code, zero dependencies, zero vendor lock-in — ultra lightweight
  • · Graph-based abstraction supporting Agent, Multi-Agent, Workflow, and RAG design patterns
  • · Supports Agentic Coding — let AI agents like Cursor build agents for 10x productivity

Related Articles