lettactl
Use a community-built CLI and SDK to manage Letta fleets with declarative YAML, canaries, and multi-tenant workflows.
lettactl is a kubectl-style CLI and TypeScript SDK for declarative Letta fleet management. It is designed for deploying and operating many agents with version-controlled configs, safer rollouts, and repeatable workflows.
The canonical documentation now lives at lettactl.dev.
Installation
Section titled “Installation”npm install -g lettactlQuick Start
Section titled “Quick Start”1. Configure your environment
Section titled “1. Configure your environment”export LETTA_BASE_URL=http://localhost:8283# Optional for Letta Cloudexport LETTA_API_KEY=your-key-here2. Create a fleet config
Section titled “2. Create a fleet config”Create fleet.yaml:
agents: - name: my-first-agent description: "A simple AI assistant" llm_config: model: "openai/gpt-4o" context_window: 128000 system_prompt: value: "You are a helpful assistant." memory_blocks: - name: user_preferences description: "What I know about the user" agent_owned: true limit: 5000 value: "No preferences yet."
- name: support-agent description: "Customer support assistant" llm_config: model: "google_ai/gemini-2.5-pro" context_window: 32000 system_prompt: from_file: "prompts/support.md" tags: - "tenant:acme" - "role:support" tools: - archival_memory_search - archival_memory_insert3. Preview and deploy
Section titled “3. Preview and deploy”# Preview changeslettactl apply -f fleet.yaml --dry-run
# Deploylettactl apply -f fleet.yamlKey capabilities
Section titled “Key capabilities”| Capability | What it gives you |
|---|---|
| Declarative YAML + smart diff | Apply only the changes needed between local config and server state |
| Canary deployments | Deploy CANARY- copies, test, then promote and cleanup safely |
| Multi-tenancy tags | Scope operations by tags (for example tenant:acme,role:support) |
| Import/export workflows | Export existing agents to YAML and bring them under git-based management |
| Rich command groups | Deployment, inspection, lifecycle, messaging, async runs, reporting, utilities |
| TypeScript SDK | Programmatic fleet provisioning and runtime orchestration |
Common workflows
Section titled “Common workflows”- Validate config before deploy:
lettactl validate -f fleet.yaml - Inspect fleet state:
lettactl get agents,lettactl describe agent <name> - Canary rollout:
lettactl apply -f fleet.yaml --canary, then--promote --cleanup - Tenant-scoped operations:
lettactl get agents --tags "tenant:acme" - Export existing agents:
lettactl export agents --all -f yaml -o fleet.yaml
Where to read full docs
Section titled “Where to read full docs”- Getting Started
- Commands
- YAML Schema
- SDK Reference
- Canary Deployments
- Multi-Tenancy
- Import Existing Agents
Resources
Section titled “Resources”- Documentation hub: https://lettactl.dev/
- GitHub repository: https://github.com/nouamanecodes/lettactl