Add example config file, gitignore secrets

This commit is contained in:
Sarah Wooders
2026-01-28 22:53:11 -08:00
parent 612c7f70fe
commit 75f53b24b6
2 changed files with 56 additions and 0 deletions

4
.gitignore vendored
View File

@@ -41,3 +41,7 @@ letta-code-sdk/
# WhatsApp session (contains credentials)
data/whatsapp-session/
# Config with secrets
lettabot.yaml
lettabot.yml

52
lettabot.example.yaml Normal file
View File

@@ -0,0 +1,52 @@
# LettaBot Configuration
# Copy this to lettabot.yaml and fill in your values.
#
# Server modes:
# - 'cloud': Use Letta Cloud (api.letta.com) with API key
# - 'selfhosted': Use self-hosted Letta server
server:
mode: cloud
# For cloud mode, set your API key (get one at https://app.letta.com):
apiKey: sk-let-YOUR-API-KEY
# For selfhosted mode, uncomment and set the base URL:
# mode: selfhosted
# baseUrl: http://localhost:8283
agent:
name: LettaBot
# Model to use:
# - Free plan: zai/glm-4.7, minimax/MiniMax-M1-80k
# - BYOK: lc-anthropic/claude-sonnet-4-5-20250929, lc-openai/gpt-5.2
model: zai/glm-4.7
# BYOK Providers (optional, cloud mode only)
# These will be synced to Letta Cloud on startup
# providers:
# - id: anthropic
# name: lc-anthropic
# type: anthropic
# apiKey: sk-ant-YOUR-ANTHROPIC-KEY
# - id: openai
# name: lc-openai
# type: openai
# apiKey: sk-YOUR-OPENAI-KEY
channels:
telegram:
enabled: true
token: YOUR-TELEGRAM-BOT-TOKEN
dmPolicy: pairing # 'pairing', 'allowlist', or 'open'
# slack:
# enabled: true
# appToken: xapp-...
# botToken: xoxb-...
# whatsapp:
# enabled: true
# selfChat: false
features:
cron: false
heartbeat:
enabled: false
intervalMin: 30