Skip to main content

What is OpenClaw?

OpenClaw (formerly ClawdBot/Moltbot) is an AI agent gateway that connects to messaging apps like Telegram, WhatsApp, Discord, Slack, and iMessage. You can configure it to use this proxy for Claude and Gemini models.

Prerequisites

Before you begin, ensure you have:
  • OpenClaw installed globally
  • Antigravity Claude Proxy running on port 8080
  • At least one Google account linked to the proxy
1

Install OpenClaw

Install OpenClaw globally using npm:
2

Start the Proxy

Make sure Antigravity Claude Proxy is running:
The proxy should be running on http://127.0.0.1:8080 by default.
3

Configure OpenClaw

Edit your OpenClaw configuration file:
Add the following configuration:
Use 127.0.0.1 instead of localhost in the baseUrl. This ensures the connection stays on the loopback interface and avoids potential DNS resolution issues.
4

Start OpenClaw Gateway

In a new terminal, start the OpenClaw gateway:
OpenClaw will now use the proxy models you configured.
5

Verify Configuration

Check that the models are available:
You should see models prefixed with antigravity-proxy/ in the list.

Model Selection

Switch Default Model

To change the default model for all conversations:
Or edit the model.primary field in your openclaw.json config file.

Available Models

All models configured in the proxy are available with the antigravity-proxy/ prefix:
  • antigravity-proxy/gemini-3-flash - Fast Gemini model with reasoning
  • antigravity-proxy/gemini-3.1-pro-high - High-quality Gemini model
  • antigravity-proxy/claude-sonnet-4-5 - Claude Sonnet without reasoning
  • antigravity-proxy/claude-sonnet-4-5-thinking - Claude Sonnet with reasoning
  • antigravity-proxy/claude-opus-4-6-thinking - Claude Opus with reasoning

Troubleshooting

Make sure the proxy is running before starting OpenClaw:
If this fails, start the proxy:
If models aren’t appearing in OpenClaw:
  1. Verify the config file is valid JSON (no trailing commas, proper quotes)
  2. Check that mode is set to "merge" (not "replace" unless you want to override all built-in models)
  3. Restart the OpenClaw gateway after config changes:
If running on a VPS, ensure the proxy only binds to localhost:
By default, the proxy binds to 0.0.0.0 which exposes it to all network interfaces. On a VPS, always use HOST=127.0.0.1 to restrict access to localhost only, or ensure you have proper authentication (API_KEY env var) and firewall rules in place.

Configuration Reference

Configuration Mode

The mode field in the models configuration determines how OpenClaw handles custom models:
  • "merge" - Adds proxy models alongside built-in OpenClaw models
  • "replace" - Replaces all built-in models with only your custom configuration

Model Properties

Each model in the configuration supports these properties:

Further Reading

OpenClaw Documentation

Official OpenClaw documentation

OpenClaw Configuration

Configuration reference

Load Balancing

Proxy load balancing strategies

Proxy Configuration

Advanced proxy settings