Appearance
Troubleshooting
FreshCommon Issues
Installation Fails
Node.js Version
Problem: Installation fails or CLI crashes on startup.
Cause: Node.js version is below v18.
Fix:
bash
node --version
# If below v18, upgrade:
nvm install 18
nvm use 18
npm install -g @letta-ai/letta-codeAuthentication Issues
OAuth Login Fails
Problem: Browser-based OAuth does not complete.
Possible causes:
- Browser extensions blocking popups
- Cookies cleared or blocked for auth domain
- Network proxy intercepting the callback
Fix:
- Try a different browser
- Disable ad blockers temporarily
- Clear cookies for the Letta auth domain
- Check that no VPN/proxy is interfering
Memory Not Persisting
Memory Loss Between Sessions
Problem: Agent forgets information between sessions.
Possible causes:
- Memory changes not committed in MemFS
- Using a different agent ID
- Session closed before state saved
Fix:
- Ensure
session.close()is called (or useawait using) - Verify agent ID matches between sessions
- Check
~/.letta/agents/<agent-id>/memoryfor git status - Run
/doctorto audit memory health
Subagent Fails to Launch
Subagent Error
Problem: Custom subagent does not appear or errors on invocation.
Fix:
- Verify the
.mdfile is in.letta/agents/(project) or~/.letta/agents/(global) - Check frontmatter format --
namemust be lowercase, starting with a letter - Ensure
toolsfield lists valid tool names orall - Check model availability -- the specified model must be accessible
Channel Connection Issues
Telegram/Slack Not Responding
Problem: Messages sent to bot but no response.
Fix:
- Verify
letta server --channels <platform>is running - Check
~/.letta/channels/accounts.jsonfor valid tokens - Verify routing in
~/.letta/channels/routing.yaml - Confirm the agent ID in the route is correct
- Check DM policy -- user may need pairing approval
Scheduled Tasks Not Executing
Cron Tasks Missed
Problem: Scheduled tasks do not run at expected times.
Cause: Tasks only execute while letta server is connected.
Fix:
- Ensure
letta serveris running continuously - One-shot tasks are marked missed if 5+ minutes late
- Maximum 50 active tasks per agent
- Check
letta cron listfor task status
SDK Troubleshooting
prompt() Returns Empty
typescript
// Ensure you're awaiting the promise
const result = await prompt('query'); // Not: prompt('query')resumeSession() Fails
typescript
// Use the agent ID, not the session ID
const session = await resumeSession(agentId); // Not sessionIdStreaming Not Working
typescript
// Use for-await-of with stream()
for await (const chunk of session.stream('query')) {
process.stdout.write(chunk);
}
// Not: session.stream('query').then(...)Diagnostic Commands
| Command | Purpose |
|---|---|
letta --version | Check installed version |
/doctor | Audit memory health |
/memory | View current memory state |
/search <query> | Search conversation history |
letta cron list | Check scheduled tasks |
letta channels route list | Check channel routing |
Getting Help
- Discord: discord.gg/letta
- GitHub: github.com/letta-ai/letta-code
- Built-in: Agents have web browsing capabilities for looking up current docs