Thanks to visit codestin.com
Credit goes to docs.letta.com

Skip to content
Sign up
Get started

Quickstart

Learn the basics of Letta Code

If you’re using Letta Code for the first time, run the /init command to initialize the agent’s memory:

Initializing Letta Code's memory
> /init

This prompts your agent to research your project, ask about your preferences, and organize its memory blocks. The agent can do either standard (quick) or deep research (comprehensive). See the Memory guide for full details on what /init does.

Over time, the agent will update its memory as it learns. To actively guide your agent’s memory, use the /remember command:

Ask Letta Code to update its memory
> /remember [optional instructions on what to remember]

Letta users may have an existing agent designed for other purposes, such as writing or personal assistants. Letta Code is a general-purpose interface to any agent on your server.

To connect to an existing agent, use the --agent flag:

Connect to an existing agent
letta --agent [existing-agent-id]

If the agent wasn’t created inside of Letta Code, it won’t have access to coding tools (which allow it to connect to your computer) by default. Use the /toolset command to switch toolsets:

Switch toolsets
> /toolset

This opens a toolset selector where you can choose between different tool configurations (default, codex, gemini). Select the appropriate toolset for your use case.

You can also run Letta Code in headless mode, which allows you to compose your agents as UNIX programs.

Running Letta Code in headless mode
letta -p "Look around this repo and write a README.md documenting it at the root level"

Read more about Letta Code’s rich feature set: