The memory-first coding agent
npx skills add https://github.com/letta-ai/letta-code --skill creating-skills使用 CLI 安装这个技能,并在你的工作区中直接复用对应的 SKILL.md 工作流。
Letta Code is a memory-first coding harness, built on top of the Letta API. Instead of working in independent sessions, you work with a persisted agent that learns over time and is portable across models (Claude Sonnet/Opus, GPT/Codex, Gemini, GLM, Kimi, and more).
Read more about how to use Letta Code on the official docs page.

Install the package via npm:
npm install -g @letta-ai/letta-code
Navigate to your project directory and run letta (see various command-line options on the docs).
Run /connect to configure your own LLM API keys (OpenAI, Anthropic, etc.), and use /model to swap models.
[!NOTE]
By default, Letta Code will to connect to the Letta API. Use/connectto use your own LLM API keys and coding plans (Codex, zAI, Minimax) for free. SetLETTA_BASE_URLto connect to an external Docker server.
Letta Code is built around long-lived agents that persist across sessions and improve with use. Rather than working in independent sessions, each session is tied to a persisted agent that learns.
Claude Code / Codex / Gemini CLI (Session-Based)
AGENTS.mdLetta Code (Agent-Based)
/clear starts a new conversation (aka "thread" or "session"), but memory persistsIf you’re using Letta Code for the first time, you will likely want to run the /init command to initialize the agent’s memory system:
> /init
Over time, the agent will update its memory as it learns. To actively guide your agents memory, you can use the /remember command:
> /remember [optional instructions on what to remember]
Letta Code works with skills (reusable modules that teach your agent new capabilities in a .skills directory), but additionally supports skill learning. You can ask your agent to learn a skill from its current trajectory with the command:
> /skill [optional instructions on what skill to learn]
Read the docs to learn more about skills and skill learning.
Community maintained packages are available for Arch Linux users on the AUR:
yay -S letta-code # release
yay -S letta-code-git # nightly
Made with 💜 in San Francisco