# Build stateful agents with long-term memory using Letta

> Use Letta to create agents whose identity, tools, memory blocks, and conversation state persist across sessions for long-running assistant or application workflows.

- Skill: `agentskillexchange/build-stateful-agents-with-long-term-memory-using-letta` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/build-stateful-agents-with-long-term-memory-using-letta`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/build-stateful-agents-with-long-term-memory-using-letta/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/build-stateful-agents-with-long-term-memory-using-letta

---


# Build stateful agents with long-term memory using Letta

Use Letta to create agents whose identity, tools, memory blocks, and conversation state persist across sessions for long-running assistant or application workflows.

## Prerequisites

Node.js 18+ for Letta Code or API credentials/SDKs for application integration; selected model provider

## Installation

Install or set up from the source-backed instructions:

For local terminal workflows, install Letta Code with `npm install -g @letta-ai/letta-code` and run `letta`; for application workflows, install the TypeScript or Python Letta client and create agents with memory blocks and tools.

- Source: https://github.com/letta-ai/letta

## Documentation

- https://docs.letta.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-stateful-agents-with-long-term-memory-using-letta/)

