Skip to main content
Use OpenClaw (formerly Clawdbot) with your platform API base URL and API key.

Install OpenClaw

Existing OpenClaw users are recommended to update OpenClaw first using the installation command below.
Run the following command in the terminal for one-click installation: macOS / Linux
curl -fsSL https://openclaw.bot/install.sh | bash
Windows
iwr -useb https://openclaw.ai/install.ps1 | iex

Configure your platform API

After installation, enter the OpenClaw configuration flow:
openclaw configure
If the onboarding wizard opens automatically on first launch, you can complete the same setup there.
  1. Start the gateway in the terminal:
openclaw gateway run
  1. Open http://127.0.0.1:18789 in your browser
  2. Go to Config and open models
  3. Add or edit the current provider with:
    • Base URL: your platform’s Anthropic-compatible endpoint, for example YOUR_PLATFORM_BASE_URL
    • API Key: your platform API key, for example YOUR_PLATFORM_API_KEY
  4. If the UI shows an Auth Header option, keep it enabled
  5. Click Save, then click Update to apply the configuration

Choose a model

The model does not need to be hardcoded in this guide. After the platform base URL and API key are configured, review the currently available options in the Model Catalog and choose the model that fits your use case inside OpenClaw. If you need to reopen the model picker in OpenClaw, use /model in the chat UI, or change the default model in the models section of the config UI.

Test the connection

Run the following command to verify chat works:
openclaw tui
If a conversation starts successfully, the configuration is working.