Deploy PiClaw
Self-hosted web workspace for the Pi coding agent: chat, files, terminal
Just deployed
/workspace
Deploy and Host PiClaw on Railway
PiClaw is an open-source, self-hosted web workspace for the Pi coding agent. In one browser window you chat with the agent, browse and edit files, run commands in a terminal and view the results. Conversations, files and scheduled tasks are kept between visits, and model requests go to the provider you choose.
About Hosting PiClaw
This template runs PiClaw 3.3.4 from its official image, built from a public GitHub repo, behind a small Caddy proxy. A fresh PiClaw has no login and its agent can run shell commands, so the proxy asks for a username and a generated password on every request except the health check. You only enter one thing: an API key for an OpenAI-compatible provider (OpenAI by default; OpenRouter, Groq, DeepSeek, vLLM or Ollama work too). One volume at /workspace holds your files, chats, settings and the agent's profile, so they survive restarts and redeploys. If PiClaw stops for good, the container exits with an error so Railway restarts it.
Common Use Cases
- A private coding agent you can reach from any browser, desktop or phone
- Editing, testing and running scripts in a persistent cloud workspace
- Scheduled agent tasks and notes that persist between sessions
Dependencies for PiClaw Hosting
- An API key for an OpenAI-compatible model provider
- One Railway volume (included in the template)
Deployment Dependencies
- PiClaw: https://github.com/rcarmo/piclaw (release v3.3.4)
- PiClaw documentation: https://github.com/rcarmo/piclaw/blob/v3.3.4/docs/getting-started.md
- Template repo: https://github.com/aalfath/piclaw-railway-template
- Get an API key: https://platform.openai.com/api-keys or https://openrouter.ai/keys
Implementation Details
Service: one service, PiClaw, built from aalfath/piclaw-railway-template (the official ghcr.io/rcarmo/piclaw:v3.3.4 image pinned by digest, plus Caddy 2.11.9 for the login and /healthz), with a volume at /workspace.
After deploy:
- Open the public URL and sign in as
piclawwith thePICLAW_PASSWORDfrom the service's Variables tab. - Start chatting. The model in
LLM_MODELis preselected;/modelswitches it, and/loginin the chat adds other providers (Anthropic, Gemini, GitHub Copilot and more). - Optional: run
/totpin the chat to add PiClaw's own authenticator-code login.
Variables: LLM_API_KEY (required, read from the environment and never saved to the volume), LLM_BASE_URL (default https://api.openai.com/v1), LLM_MODEL (default gpt-5.4-mini), PICLAW_PASSWORD (generated), PICLAW_USERNAME (piclaw).
Resources: about 230 MB of RAM at idle; it runs on a 0.5 GB service. Use 1 GB or more if the agent builds or runs heavy code in its terminal.
Limits: single-user. The agent has sudo inside its own container, so don't add secrets to the service that the agent shouldn't see. No Docker-in-Docker, VNC desktop or GPU on Railway.
Updates: when we bump the pinned version in the repo, Railway shows an "update available" notice on your project. Read the repo's CHANGELOG.md first; your data stays on the volume.
Why Deploy PiClaw on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying PiClaw on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
LLM_API_KEY
API key for your model provider, e.g. from https://platform.openai.com/api-keys or https://openrouter.ai/keys. Read from the environment, never saved to the volume.

