
What is OpenClaw?
OpenClaw is an open-source AI agent gateway that lets you run a persistent AI assistant reachable from anywhere — Discord, Telegram, Slack, or your local CLI. It manages conversations, tool use, and connections across multiple channels through a single gateway process.How it works
The deploy package sets up a wrapper server that manages the OpenClaw gateway and provides a browser-based setup wizard:/data, so your configuration, conversation history, and installed tools survive restarts and redeployments.
The script will prompt you for:
- App name — defaults to
openclaw-XXXX(random suffix). This becomes your URL:https://your-app-name.fly.dev - Region — where to run your Machine (defaults to
iad/ Virginia). Pick one close to you for lower latency. See Fly.io regions for the full list. - Setup password — protects the
/setupwizard from the internet. Pick something strong. - LLM provider — choose from Anthropic, OpenAI, Google Gemini, OpenRouter, Moonshot AI, or MiniMax
- LLM API key — the key for your chosen provider
- Channel tokens (optional) — Discord bot token, Telegram bot token, or Slack bot + app tokens if you want to connect chat channels
flyctl.
Post-deploy setup
Once deployment completes, the script prints your app details:Setup wizard
Visithttps://your-app-name.fly.dev/setup in your browser. Log in with any username and the setup password you chose. From the wizard you can:
- Change your LLM provider and API key
- Add or update Discord, Telegram, and Slack channel connections
- Edit the raw OpenClaw config file
- Run debug commands against the gateway
- Export and import configuration backups
- Approve device pairing requests
Connect your local CLI
If you have OpenClaw installed locally, point it at your remote gateway:openclaw CLI on your laptop while the gateway runs on Fly.io, keeping conversations and state persistent even when your laptop is closed.
Configuration
Secrets
All sensitive values are stored as Fly secrets, encrypted at rest and injected as environment variables at boot. They are never visible in logs, config files, or the Fly dashboard.
To update a secret after deployment:
VM sizing
The default configuration uses ashared-cpu-2x Machine with 4 GB RAM, which costs roughly $20–25/month when running continuously. With auto-stop enabled (the default), you only pay for time the Machine is actually running.
To adjust resources:
Persistent storage
OpenClaw stores all state on a Fly Volume mounted at/data. This includes:
openclaw.json— gateway configuration- Conversation history and context
- Installed tools and plugins
- npm/pnpm caches for user-installed packages
Useful commands
Troubleshooting
“SETUP_PASSWORD is not set” The setup password secret is missing. Set it:/setup in your browser and check the debug console for errors. Common causes: invalid API key, missing config file, or a corrupted state directory.
Lock file errors
If the gateway didn’t shut down cleanly, stale lock files can prevent it from starting:
Supported LLM providers
You can switch providers at any time through the setup wizard — no redeployment needed.