Skip to content
Sign 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

See Self-hosting to use Letta Code with your own Letta server.

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
enableSleeptimebooleanEnable sleeptime agents for passive memory updates (default: false)
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 keeps itself up to date to ensure you have the latest features and fixes.

  • Update checks: Performed on startup and periodically while running
  • Update process: Downloads and installs automatically in the background
  • Applying updates: Updates take effect the next time you start Letta Code
Terminal window
export DISABLE_AUTOUPDATER=1
Terminal window
letta update
# Letta Code personal settings
.letta/settings.local.json

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