How to setup OpenClaw with Ozeki AI Gateway

This comprehensive guide demonstrates how to install and configure OpenClaw to work with Ozeki AI Gateway on Windows systems. By connecting OpenClaw to Ozeki AI Gateway, you can route requests through your local gateway and use local AI models. This tutorial covers the complete setup process, from installing OpenClaw using PowerShell to the initial configuration.

What is OpenClaw?

OpenClaw is an open-source, autonomous AI agent designed to run locally on your computer, managing tasks by interacting directly with applications, files, and messaging apps like Telegram or Discord. Launched in late 2025, it acts as a personal AI assistant with persistent memory, capable of executing shell commands, browsing the web, and running automated "skills".

Overview
Overview

Steps to follow

We assume Ozeki AI Gateway is already installed on your system. You can install it on Linux, Windows or Mac.

  1. Install OpenClaw
  2. Configure custom provider
  3. Complete onboarding
  4. Access OpenClaw dashboard

Quick reference commands

Here are the key commands you'll need for installing and configuring OpenClaw:

# Set execution policy for PowerShell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

# Install OpenClaw
iwr -useb https://openclaw.ai/install.ps1 | iex

OpenClaw installation and setup video

The following video shows how to install and configure OpenClaw with Ozeki AI Gateway step-by-step. The video covers the PowerShell installation process, configuring the custom provider settings, and completing the initial onboarding.

Step 1 - Install OpenClaw

Search for Windows PowerShell in the start menu, right-click on it and select Run as administrator. Administrator access is required to modify execution policies and install OpenClaw (Figure 1).

Run PowerShell as administrator
Figure 1 - Launch PowerShell with administrator privileges

First, you need to allow PowerShell to run remote scripts by executing the execution policy command. Then run the OpenClaw installation command which downloads and executes the installer script from the OpenClaw website. The installer will automatically download all required dependencies and set up OpenClaw on your system (Figure 2).

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr -useb https://openclaw.ai/install.ps1 | iex

Install OpenClaw
Figure 2 - Execute OpenClaw installation command

The OpenClaw installer displays a security warning. Review the warning and select Yes to proceed with the installation. This confirms that you accept the risks of OpenClaw (Figure 3).

Accept security warning
Figure 3 - Confirm security warning to proceed

Step 2 - Configure custom provider

After OpenClaw launches its onboarding wizard, select Quickstart to begin the guided configuration process. The quickstart mode helps you configure the essential settings needed to connect OpenClaw to your AI provider (Figure 4).

Choose quickstart onboarding mode
Figure 4 - Select quickstart onboarding mode

When prompted to select an AI provider, scroll down and choose Custom Provider from the provider list. This option allows you to configure OpenClaw to use Ozeki AI Gateway as your AI provider (Figure 5).

Select custom provider
Figure 5 - Choose custom provider option

Enter your Ozeki AI Gateway connection details. In the Base URL field, enter your gateway's API endpoint (http://localhost/v1 for local installations). In the API Key field, paste the API key you created in Ozeki AI Gateway. For endpoint compatibility, select OpenAI-compatible. In the Model ID field, specify the AI model you want to use. Enter an Endpoint ID and Model alias, then press Enter to proceed (Figure 6).

Enter Ozeki AI Gateway details
Figure 6 - Configure gateway connection settings

Step 3 - Complete onboarding

The onboarding wizard will prompt you to configure optional features like communication channels. For a basic setup focused on code assistance, you can Skip channel configuration. These features can be configured later if needed (Figure 7).

Select or skip channel configuration
Figure 7 - Skip channel configuration

Similarly, you'll be prompted to configure OpenClaw skills which extend its functionality. For initial testing, you can skip this process. You can explore and enable skills later through the dashboard (Figure 8).

Configure or skip skills
Figure 8 - Skip skills configuration

The final onboarding step asks about hooks configuration. Hooks allow OpenClaw to integrate with external tools and services. Skip or configure hooks if needed (Figure 9).

Enable or skip hooks
Figure 9 - Skip hooks configuration

OpenClaw now completes the setup process by initializing the gateway service and preparing the environment. Wait for the setup to finish (Figure 10).

Wait for OpenClaw gateway setup to finish
Figure 10 - Wait for setup completion

Step 4 - Access OpenClaw dashboard

Once setup completes, OpenClaw automatically opens the dashboard in your default web browser. The dashboard provides an interface for testing AI capabilities, managing configurations, and monitoring OpenClaw's activities. You can also manually open the dashboard anytime by running openclaw dashboard in your terminal (Figure 11).

OpenClaw dashboard
Figure 11 - OpenClaw dashboard interface

Troubleshooting

If you encounter a "Model context window too small" error in the OpenClaw Gateway logs when testing, you'll need to adjust the configuration. Follow our detailed guide on How to fix OpenClaw model context window too small error to resolve this issue.

To sum it up

You have successfully installed and configured OpenClaw to work with Ozeki AI Gateway. The integration provides you with AI-powered coding assistance while maintaining centralized control over API access, model selection, and usage monitoring through your gateway infrastructure. OpenClaw can now help you write, understand, and modify code using any AI models available through your Ozeki AI Gateway configuration.


More information