Configuration and Verification
- Perform configuration setup when running OpenClaw for the first time.
- Open the configuration file.
vim ~/.bashrc
- Press i to enter the insert mode and configure the following options:
export OPENCLAW_STATE_DIR="/path/to/.openclaw" export OPENCLAW_CONFIG_PATH="/path/to/.openclaw/openclaw.json"
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Apply the configuration changes.
source ~/.bashrc
- Run the setup command again.
openclaw setup --workspace /path/to/.openclaw/workspace

- Open the configuration file.
- Run the gateway.
openclaw gateway

- Run the tui command to start the interaction.
openclaw tui
Parent topic: Solution 1: Deploying OpenClaw on a Host