Skip to content
DiscordForumGitHubSign up
Reference

Configuration

Configure Letta Code settings and preferences

Letta Code uses a hierarchical configuration system with global and project-level settings.

On first run, Letta Code prompts you to authenticate via OAuth:

  1. Run letta
  2. Follow the browser prompt to log in at app.letta.com

Alternatively, set an API key directly:

Terminal window
export LETTA_API_KEY=your-api-key

To use Letta Code with a self-hosted Letta server:

Terminal window
export LETTA_BASE_URL="http://localhost:8283"

See the self-hosting guide for more information.

Applies to all projects:

{
"tokenStreaming": true,
"globalSharedBlockIds": {
"persona": "block-id-...",
"human": "block-id-..."
}
}

Project settings (.letta/settings.local.json)

Section titled “Project settings (.letta/settings.local.json)”

Personal, gitignored - your agent for this project:

{
"lastAgent": "agent-id-..."
}

Shared project settings (.letta/settings.json)

Section titled “Shared project settings (.letta/settings.json)”

Can be committed to share with your team:

{
"permissions": {
"allow": ["Bash(pnpm lint)", "Bash(pnpm test)"]
}
}
SettingTypeDescription
tokenStreamingbooleanEnable real-time token streaming
lastAgentstringID of last used agent (for auto-resume)
globalSharedBlockIdsobjectIDs of global memory blocks
permissions.allowstring[]Patterns to auto-allow
permissions.denystring[]Patterns to always deny

Letta Code automatically checks for updates on startup and installs them in the background. Updates take effect the next time you start Letta Code.

Disable auto-updates
export DISABLE_AUTOUPDATER=1
Manual update
letta update
# Letta Code personal settings
.letta/settings.local.json

Keep .letta/settings.json tracked to share project context with your team.