openclaw command is available globally in your Termux environment.
Initial Setup Command
openclaw onboard
Run the interactive onboarding process to configure OpenClaw for first use:- API key configuration
- Model selection
- Feature preferences
- Initial setup verification
Post-Onboarding Steps
After completingopenclaw onboard, run these commands:
Service Command
openclaw gateway
Starts the OpenClaw gateway server. This is the main service process:You typically don’t run this command directly. The background service (managed by runit) runs this automatically when you use
sv up openclaw.The service run script executes: exec openclaw gateway 2>&1When to Run Manually
You might runopenclaw gateway directly for:
- Testing configuration changes interactively
- Debugging issues with verbose output
- Development or troubleshooting
Ctrl+C.
Environment Variables
OpenClaw relies on specific environment variables set during installation:TMPDIR, TMP, TEMP
These must point to Termux-accessible directories:These are automatically configured in
~/.bashrc during installation. If commands fail with “Permission Denied” errors, verify these variables:PATH
Ensures theopenclaw and node binaries are accessible:
SVDIR
Defines the runit service directory:sv commands to locate and manage the OpenClaw service.
Command Options and Flags
While OpenClaw supports various command-line options, most configuration is handled through:- The
openclaw onboardinteractive wizard - Configuration files created during onboarding
- The web UI (accessible at
http://localhost:18789)
Updating OpenClaw
To update to the latest version, use the provided update script:- Stops the service gracefully
- Updates OpenClaw via npm:
npm install -g openclaw@latest - Re-applies critical path patches (required for Android compatibility)
- Restarts the service