An OpenClaw deployment is ready for production when it can survive an ordinary restart, reject unauthorized access, preserve state across updates, alert an operator when something fails, and recover from a verified backup. A successful onboarding session proves the agent works today. It does not prove the service is maintainable tomorrow.
Use this checklist for a self-hosted Linux or Docker deployment. Not every item requires enterprise infrastructure, but every responsibility needs an explicit decision. Follow the current upstream documentation for exact commands because installation paths and defaults can change.
1. Define the Workload and Failure Tolerance
Production requirements begin with the workflow, not the server. Write down what the agent does, when it must run, which systems it can change, who notices a failure, and how much interruption is acceptable.
- List messaging channels, APIs, MCP servers, skills, browser tasks, scheduled jobs, and file access.
- Identify write-capable actions separately from read-only actions.
- Define which jobs may retry and which require human review.
- Decide how much recent state you can lose after a failure.
- Decide how long recovery can take before the workflow is materially affected.
- Name the person responsible for alerts, updates, credentials, and restores.
A personal research assistant and a customer-facing automation should not share the same operational standard simply because both run OpenClaw.
2. Provision a Host With Headroom
OpenClaw documents a minimum of one CPU core, 1 GB RAM, 500 MB free disk, and a 64-bit operating system. For an always-on production Gateway, start with more headroom than the absolute floor and size for the heaviest tools that can run together.
- Use a current, supported 64-bit Linux distribution.
- Choose CPU and memory based on browser, media, build, and concurrent task requirements.
- Reserve disk for state, workspaces, logs, updates, container layers, and temporary files.
- Confirm the provider’s backup, snapshot, transfer, and public-IP pricing.
- Enable time synchronization and use the expected timezone for scheduled work.
See the OpenClaw VPS sizing guide for workload bands and resize signals.
3. Harden Administrative Access First
Secure the host before installing integrations or placing credentials on it. OpenClaw’s VPS guidance explicitly recommends deciding how the server will be administered before installation.
- Use SSH keys and disable weak or unused login paths.
- Use an unprivileged service account for the application where the deployment supports it.
- Apply operating-system security updates and remove unnecessary services.
- Configure a firewall with only the ports you intentionally need.
- Restrict provider-console access with strong authentication.
- Document emergency console or recovery-mode access before you need it.
Do not rely on an obscure port as an access control. The objective is a small, authenticated administration surface with a known recovery path.
4. Choose a Reproducible Installation Method
A production installation should be reproducible from documentation or configuration, not remembered from an interactive shell history. Record the supported install method, OpenClaw version, system packages, environment variables, volume paths, and any plugins or extra tools.
For Docker, use the maintained setup and official images. Pin a tested release tag rather than a moving latest tag when predictable change control matters. For stronger immutability, deploy the image digest. Keep the Compose files and environment configuration under controlled change management without committing secrets.
- Record the installed OpenClaw release or image digest.
- Record every configuration file and persistent directory.
- Use official image registries rather than unofficial mirrors.
- Keep the deployment procedure in a runbook or version-controlled infrastructure repository.
- Test the procedure on a clean host or staging environment.
5. Make State Persistent and Replaceable
Containers and virtual machines should be replaceable without losing OpenClaw state. Mount or otherwise persist the documented state, configuration, credentials, agent directories, and workspaces that your workflows require.
- Confirm persistence by restarting or recreating the application process.
- Verify that channel connections and provider authentication still work afterward.
- Separate replaceable application files from durable state.
- Keep permissions narrow enough that unrelated host users cannot read credentials.
- Do not treat a persistent volume as a backup; corruption and deletion can persist too.
6. Keep the Gateway Private and Authenticated
A regular OpenClaw host installation binds the Gateway to loopback by default. Preserve that private boundary where possible. For remote administration, prefer an SSH tunnel or Tailscale instead of exposing the Gateway directly to the public internet.
- Confirm the actual bind address after deployment.
- Enable strong Gateway authentication.
- Prevent direct access to the Gateway port when a trusted proxy is used.
- Restrict channel senders, groups, and pairing according to the workflow.
- Use separate Gateways for mixed-trust or adversarial users.
Follow the OpenClaw self-hosting security checklist before adding powerful tools.
7. Scope Credentials, Tools, and Skills
Production credentials should grant only the actions the workflow needs. A read-only integration and a write-capable integration have different failure consequences even when they use the same service.
- Use separate service credentials instead of a personal administrator token where possible.
- Start with read-only API scopes and add write access deliberately.
- Keep secrets out of chat, repositories, screenshots, and shell history.
- Review every installed skill, plugin, MCP server, and executable dependency.
- Restrict shell, filesystem, browser, and network tools to the job.
- Add human approval for consequential or irreversible actions.
Sandboxing can reduce tool access, but it is not a perfect security boundary and does not move the Gateway itself into the sandbox. Host hardening and least privilege still matter.
8. Configure Health, Capacity, and Failure Monitoring
Monitoring should answer three questions: is the service running, can it complete the important workflow, and is the host approaching a limit?
| Signal | What it can reveal |
|---|---|
| Gateway process and restart count | Crashes, restart loops, failed updates |
| Memory, swap, CPU, and load | Undersizing or runaway tools |
| Disk usage and inode usage | Logs, workspaces, or images filling the host |
| Scheduled-job completion | Silent automation failures |
| Channel and provider errors | Expired credentials, quotas, remote outages |
| End-to-end synthetic task | A service that is running but cannot complete useful work |
Send alerts somewhere independent of the failing workflow. An agent cannot reliably notify you through a channel it can no longer reach.
9. Create and Verify Backups Before Launch
Use OpenClaw’s native backup tooling rather than copying live SQLite or WAL files. A verified backup archive can cover state, configuration, credentials, agent directories, and workspaces.
mkdir -p ~/Backups/openclaw
openclaw backup create --output ~/Backups/openclaw --verify
- Transfer at least one copy outside the VPS.
- Restrict access because archives can contain credentials and sensitive workspace data.
- Document retention and deletion.
- Restore into a fresh staging directory and verify the contents.
- Record the activation steps needed after staging a restore.
Use the full backup and recovery guide to define a schedule and restore drill.
10. Define Updates and Rollback
Every substantial update should have a known starting version, a verified backup, a change window, success checks, and a rollback decision. Do not discover the old image tag or configuration only after an update fails.
- Read the release notes and identify configuration or storage changes.
- Create and verify a fresh backup.
- Record the current release, image digest, and configuration.
- Apply the update in staging when the workflow is important.
- Run startup, channel, tool, scheduled-job, and persistence checks.
- Roll back promptly if a launch-blocking check fails.
Moving tags may receive upstream security refreshes, but they also change without altering your deployment configuration. Choose a version policy intentionally rather than mixing automatic and manual updates accidentally.
11. Run the Final Production Acceptance Test
Finish with an end-to-end test that exercises the service boundary, not just the chat interface.
- Send an allowed message and confirm a correct response.
- Confirm an unauthorized sender or path is rejected.
- Run one read-only tool and one approved write path, if applicable.
- Trigger a scheduled task and confirm its completion is observable.
- Restart the Gateway and confirm state and channels recover.
- Recreate the container or service process and confirm persistence.
- Run
openclaw security auditand review findings. - Create a verified backup and stage a restore into an empty directory.
- Confirm the operator receives a test alert.
Record the result and date. The checklist becomes far more valuable when repeated after major configuration, network, credential, or version changes.
When Should You Choose Managed Hosting Instead?
Self-hosting is appropriate when you want root-level control and can own the checklist above. If you want OpenClaw without maintaining the underlying VPS, compare managed OpenClaw hosting. OpenClaw Direct provides an isolated managed instance, guided setup, health checks, tier-based backups, and support; model and API usage remains separate.
Managed hosting reduces infrastructure work, but you still own what the agent is allowed to do, which integrations it receives, and whether its output is appropriate for your workflow.
Frequently Asked Questions
Is Docker required for production OpenClaw?
No. Use a supported installation method you can reproduce, secure, monitor, back up, and update. Docker can make replacement and version pinning easier, but it does not remove operational responsibility.
Should I use the latest Docker tag?
A moving tag is convenient but changes over time. For controlled production deployment, use a tested release tag or immutable digest and define how security updates will be reviewed and deployed.
What is the most important launch blocker?
Public or unauthenticated Gateway access combined with powerful tools is a critical risk. Fix access control before adding integrations, then verify backups and restart behavior.
How often should I repeat the checklist?
Repeat the relevant checks after major OpenClaw updates, host changes, new tools, new credentials, network changes, or trust-boundary changes. Also schedule a recurring review so gradual drift is detected.
Sources: OpenClaw installation documentation, OpenClaw Docker documentation, OpenClaw Linux server guidance, OpenClaw Gateway security guidance, and OpenClaw backup and restore documentation.