Installing Letta from source
Prerequisites
Section titled “Prerequisites”First, install uv using the official instructions here. You’ll also need to have git installed.
Downloading the source code
Section titled “Downloading the source code”Navigate to https://github.com/letta-ai/letta and click the “fork” button. Once you’ve created your fork, you can download the source code via the command line:
# replace YOUR-GITHUB-USERNAME with your real GitHub usernamegit clone https://github.com/YOUR-GITHUB-USERNAME/letta.gitCreating a fork will allow you to easily open pull requests to contribute back to the main codebase.
Alternatively, you can clone the original open source repository without a fork:
git clone https://github.com/letta-ai/letta.gitInstalling from source
Section titled “Installing from source”Navigate to the letta directory and install the letta package using uv:
cd lettauv sync --all-extrasRunning Letta Server from source
Section titled “Running Letta Server from source”Now when you want to use letta server, use uv run (which will activate the uv environment for the letta server command directly):
uv run letta server