Letta Code is a stateful agent framework (agent harness) for creating agents that are more like people than tools. Its core characteristic is that agents have memory, identity, and a sense of temporal experience, and can learn and evolve over the long term by rewriting their own memory, skills, prompts, and even the framework itself (via mods).
Key capabilities:
- Agents can self-configure: if you need to configure skills, behavior, hooks, permissions, etc., you can simply ask the agent to do it on your behalf.
- Supports interactive use, and can also drive always-on proactive agents.
- Interaction channels include: browser (including mobile) access to chat.letta.com; messaging integrations support Telegram, Slack, Discord, and custom channels.
- Supports remote computers: agents stored in Letta Cloud can run across multiple machines, and you can connect to any machine via the command line, list discoverable computers, get the current computer connection to route another agent to the same machine, or route headless messages through a specific computer. Use --computer cloud to start or reuse the target agent's cloud sandbox.
- Skill installation: install skills into a specific agent's memory via letta skills install <skill>; view skills with letta skills list --agent <agent-id>, and delete skills with letta skills delete <skill-name> --agent <agent-id>.
Usage:
- Install the package via npm; you can also install with uv or pipx (bundles Node.js). Requires Python 3.9+. Wheels support glibc Linux 2.28+ (x86-64/ARM64), macOS 14+ (Intel/Apple Silicon), and Windows x64; Alpine/musl, 32-bit systems, and Windows ARM64 are not supported.
- If npm install -g fails due to EACCES, do not use sudo: root ownership will prevent the CLI's npm install -g self-update. Use uv/pipx, a user-owned npm prefix, or nvm instead.
- Navigate to the project directory and run letta (see the documentation for command-line options). You can alsoRun the tutorial agent.
- Letta Cloud is the default backend. On first launch, choose to sign in with Letta or run locally; the choice is saved for subsequent runs. Run letta setup to choose again, or use letta backend cloud / letta backend local to change the default. Use --backend cloud or --backend local for a one-time override without changing the saved default.
- Run /connect to configure your own LLM API keys (OpenAI / ChatGPT, Anthropic, Z.ai coding plan, etc.), and use /model to switch models.
- Letta Cloud stores the agent's memory, identity, and conversations, while Letta Code can run on a laptop, GitHub Actions, a cloud sandbox, or a remote computer. Chat with them via chat.letta.com. On resume, the bundled default system prompt (including older versions) becomes Cloud-managed. Custom prompts remain explicit. Set LETTA_CODE_PRESERVE_CLOUD_SYSTEM_PROMPT=1 to disable automatic prompt updates on Cloud.
- Run /login in the CLI to access agents in your Letta account.
Notes:
- Automatic client-side dreaming is disabled by default on native Windows, including when a saved /sleeptime setting is enabled. Manual /dream and /reflect commands remain available. To opt in, set LETTA_ENABLE_WINDOWS_AUTO_REFLECTION=1 in the Letta Code process environment. This does not affect macOS, Linux (including WSL), or server-side dreaming.
- AgentFile (.af) export and import are deprecated and removed from Letta Code. The /export and /download slash commands and the --import and --from-af CLI flags are no longer supported, including importing from the agent registry. This does not affect memory import/export or conversation transcript export.
- The previous environments / envs, --environment / --env, and --env-name spellings remain available for backward compatibility.
Use cases: agent development requiring long-term memory, persistent identity, and self-evolution capabilities; cross-device, cross-channel agent deployment and interaction; building proactive always-on agents.
Limitations: limited platform support (no Alpine/musl, 32-bit systems, or Windows ARM64); AgentFile functionality has been removed; automatic dreaming is disabled by default on native Windows.