Letta Code CLI
Run Letta Code locally from your terminal
Letta Code is a memory-first agent that can run in your terminal via the CLI.
npm install -g @letta-ai/letta-code 
Getting started
Section titled “Getting started”-
Install Letta Code
npm install -g @letta-ai/letta-code -
Log in to your account
Launch Letta Code and follow the prompts to authenticate:
lettaA browser window will open to sign in or create a free Letta account. Your credentials are stored locally.
Use
/connectto connect external API keys and coding plans. -
Navigate to your project
cd your-projectletta -
Send your first message
You’re ready to chat! Try asking your agent to explore your codebase or run
/initto bootstrap its memory.Use
/newto start a new conversation (orletta --new),/resumeto swap conversations,/agentto swap agents, and/modelto swap models. View the CLI reference to see the full list of CLI commands.