feat: add core config TUI editor (#522)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Cameron
2026-03-10 11:51:05 -07:00
committed by GitHub
parent 0321558ee6
commit 6e8d1fc19d
5 changed files with 702 additions and 0 deletions

View File

@@ -3,6 +3,30 @@
LettaBot ships with a few small CLIs that the agent can invoke via Bash, or you can run manually.
They use the same config/credentials as the bot server.
## lettabot config
Manage your `lettabot.yaml` configuration.
```bash
lettabot config # Show current config summary + menu
lettabot config tui # Interactive core config editor
lettabot config encode # Encode config as base64 (for cloud deploy)
lettabot config decode <base64> # Decode base64 config back to YAML
```
### Interactive TUI editor
`lettabot config tui` opens an interactive editor for the most common settings:
- **Server auth** -- switch between API/Docker mode, set API key or base URL
- **Agent identity** -- change agent name and ID
- **Channels** -- enable/disable channels and run their setup wizards
- **Features** -- toggle cron, heartbeat (with interval), and memfs
The TUI loads your existing config, lets you edit fields interactively, shows a summary of changes, and saves back to the same file. Non-core fields (providers, attachments, secondary agents, etc.) are preserved through the round-trip.
From the `lettabot config` menu, you can also choose "Open TUI editor" or "Edit config file" to open the raw YAML in your `$EDITOR`.
## lettabot-message
Send a message to the most recent chat, or target a specific channel/chat.