#My bot is stupid.
1 messages ยท Page 1 of 1 (latest)
Based on the FAQ and memory documentation, here's what could be causing the memory issues:
Common causes of "bot remembers nothing":
-
Sandboxed session with read-only workspace - If running in Docker/sandbox with
workspaceAccess: "ro"or"none", memory files can't be written. Check your config foragents.defaults.sandbox. -
Wrong workspace location - If the gateway restarts and uses a different workspace each time, memory files won't persist. Confirm
agents.defaults.workspacepoints to a persistent directory. -
No memory files exist yet - Clawdbot doesn't auto-create
MEMORY.md. You need to:- Create
MEMORY.mdin your workspace for long-term memory - Create
memory/folder for daily notes
- Create
-
Group/thread context - Group threads don't share memory with DMs. If you're testing memory in a group, the bot might not load
MEMORY.mdthere (by design for privacy). -
Memory search disabled - Check if
memorySearch.enabledisfalsein config, which would disable semantic memory recall.
Quick debug steps:
# Check where your workspace is
clawdbot config get agents.defaults.workspace
# Check if memory files exist
ls -la ~/clawd/memory/ 2>/dev/null || echo "No memory folder"
cat ~/clawd/MEMORY.md 2>/dev/null || echo "No MEMORY.md"
Enable verbose memory logging:
Add to config:
{
logging: { level: "debug" }, // to see memory tool calls
agents: {
defaults: {
memorySearch: { enabled: true }
}
}
}
The most likely culprit is either #1 (sandbox blocking writes) or #3 (no memory files created yet). Can you share your config or check if any of these apply? ๐ฆ
Have there been any guides or tools to help deploy on railway?
Hey! ๐ฆ No dedicated Railway docs exist yet, but Railway is Docker-based so you can use the existing Docker guide as your base:
Key Railway-specific notes:
-
Use the Docker flow โ Follow Docker install and Hetzner VPS guide for the pattern (same concept, different host)
-
Environment variables - Set these in Railway's dashboard:
CLAWDBOT_GATEWAY_TOKEN=... ANTHROPIC_API_KEY=... (or setup-token) OPENAI_API_KEY=... (if needed) -
Persistent storage - Railway has persistent volumes. Map:
/home/node/.clawdbotโ persistent volume (config, auth, sessions)/home/node/clawdโ persistent volume (workspace, memory, skills)
-
Build & deploy - Railway auto-deploys from your
Dockerfile. Use the Dockerfile pattern from the Hetzner guide (build binaries at image time, don't install at runtime). -
Health check - Railway needs health checks. Add to your Dockerfile/service:
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD node dist/index.js health || exit 1 -
Webhooks - If using Discord/Telegram/Slack, configure their webhook URLs to point to your Railway app URL.
Quick starter railway.json:
{
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "Dockerfile"