Skip to content
Letta Code Letta Code Letta Docs
Sign up
Using Letta Code

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.

Install the Letta Code CLI

Requires Node.js 18+

View quickstart
npm install -g @letta-ai/letta-code

Letta Code CLI

  1. Install Letta Code

    Run the following command to install Letta Code via your terminal (requires Node.js version 18+):

    npm install -g @letta-ai/letta-code
  2. Log in to your account

    Launch Letta Code and follow the prompts to authenticate:

    letta

    A browser window will open to sign in or create a free Letta account. Your credentials are stored locally.

    Use /connect to connect external API keys and coding plans.

  3. Navigate to your project

    cd your-project
    letta
  4. Send your first message

    You’re ready to chat! Try asking your agent to explore your codebase or run /init to bootstrap its memory.

    Use /new to start a new conversation (or letta --new), /resume to swap conversations, /agent to swap agents, and /model to swap models. View the CLI reference to see the full list of CLI commands.