3 months ago
After installing the main agent via the OpenClaw template, I installed additional agents via the CLI openclaw add agents ...). However, after redeploying, the newly installed agents were deleted. (Location: /data/workspace/new_agent1)
Is it impossible to configure multi-agent installations when installing OpenClaw via a template?
Or is there another proper method?
2 Replies
3 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 3 months ago
3 months ago
Railway containers are ephemeral — anything not on a persistent volume is wiped on redeploy. Agents added via openclaw add agents at runtime don't survive.
Fixes
- Bake agents into the build — Run
openclaw add agents <name>in your Dockerfile so they're part of the image. - Use a startup script — Re-run the install command on every container start via an entrypoint script.
- Verify your volume mount — Make sure the volume is mounted at exactly the path where agents are installed (e.g.,
/data/workspace).
I recommend the option 1.
3 months ago
The option 1 would require you to fork the template.