How to add custom provider models in OpenClaw on Hostinger VPS

Updated 2 days ago

OpenClaw supports custom AI providers beyond the default options. This article explains how to add OpenRouter and Kimi (Moonshot) models to your OpenClaw installation on Hostinger VPS.

NOTE

  • You need an API key from your chosen provider before starting.
  • OpenClaw must already be installed on your VPS.

Adding OpenRouter models

OpenRouter gives you access to multiple AI models through a single API.

Step 1 – Connect to your VPS

Access your VPS via SSH or use Browser terminal in hPanel.

Step 2 – Enter the OpenClaw container

Run the following command, replacing openclaw-XXXX-openclaw-1 with your actual container name:

docker exec -it openclaw-XXXX-openclaw-1 bash

Step 3 – Run the onboard command

Inside the container, run:

openclaw onboard --auth-choice apiKey --token-provider openrouter --token "$OPENROUTER_API_KEY"

Replace $OPENROUTER_API_KEY with your actual OpenRouter API key.

Step 4 – Exit and restart the container

Exit the container:

exit

Restart the container to apply changes:

docker restart openclaw-XXXX-openclaw-1

Step 5 – Select the model in OpenClaw

  1. Open the OpenClaw dashboard.
  2. Go to Agents in the left sidebar.
  3. Select your agent (for example, main).

  4. In the Overview tab, find Model Selection.
  5. Click the Primary model (default) dropdown and select your OpenRouter model.

Adding Kimi (Moonshot) models

Kimi is an AI model from Moonshot AI.

Step 1 – Connect to your VPS

Access your VPS via SSH or use Browser terminal in hPanel.

Step 2 – Enter the OpenClaw container

Run the following command, replacing openclaw-XXXX-openclaw-1 with your actual container name:

docker exec -it openclaw-XXXX-openclaw-1 bash

Step 3 – Run the onboard command

Inside the container, run:

openclaw onboard --auth-choice moonshot-api-key

Follow the prompts to enter your Moonshot API key.

Step 4 – Exit and restart the container

Exit the container:

exit

Restart the container to apply changes:

docker restart openclaw-XXXX-openclaw-1

Step 5 – Select the model in OpenClaw

  1. Open the OpenClaw dashboard.
  2. Go to Agents in the left sidebar.

  3. Select your agent (for example, main).

  4. In the Overview tab, find Model Selection.
  5. Click the Primary model (default) dropdown and select your Kimi model.

You have successfully added a custom provider to OpenClaw. Your new models are now available for use with your agents.

Adding other providers

OpenClaw supports additional providers such as Ollama, OpenAI, Anthropic, Google Gemini, and more. Each provider has its own onboard command and configuration options. For the full list of supported providers and their setup instructions, refer to the OpenClaw providers documentation.

Additional Resources