How to integrate RouterLink in OpenClaw

This documentation is provided for informational purposes only and demonstrates how to configure and use our API with third-party AI chat interfaces. Any third-party software, websites, or services mentioned are not operated, controlled, or endorsed by us.

Overview

This tutorial guides you through integrating RouterLinkβ€”WORLD3's decentralized AI model routing infrastructureβ€”with OpenClaw, a personal AI assistant you run on your own devices.

Purpose

RouterLink provides a unified API endpoint that routes requests to multiple AI model providers through a decentralized network. By integrating RouterLink with OpenClaw, you gain access to a diverse range of large language models (LLMs) without managing multiple API keys or provider-specific configurations.

What You Will Learn

By completing this tutorial, you will:

  • Configure OpenClaw to connect with RouterLink's API endpoint

  • Authenticate using your RouterLink API credentials with custom headers

  • Add and manage AI models available through the RouterLink network

  • Execute inference requests through OpenClaw's conversational interface

Prerequisites

Before proceeding, ensure you have:

  • A RouterLink API key (obtain one from the Quick Start Guide)

  • A web browser with internet access

  • Basic familiarity with API configuration concepts

Introduction to OpenClaw

OpenClaw is a personal AI assistant you run on your own devices. It answers you on the channels you already use (WhatsApp, Telegram, Slack, Discord, Google Chat, Signal, iMessage, BlueBubbles, IRC, Microsoft Teams, Matrix, Feishu, LINE, Mattermost, Nextcloud Talk, Nostr, Synology Chat, Tlon, Twitch, Zalo, Zalo Personal, WeChat, WebChat). It can speak and listen on macOS/iOS/Android, and can render a live Canvas you control. The Gateway is just the control plane β€” the product is the assistant.OpenClaw Key Features:

  • Autonomous AI agent that executes real tasks

  • Self-hosted with full data control

  • Multi-channel (Telegram, Slack, Web, etc.)

  • Extensible skill/plugin system

  • Supports multiple AI models

  • Persistent memory across sessions

  • Built for automation & workflows

Step 1: Install OpenClaw

OpenClaw requires Node >= 22.14, please install the newest LTS version of Node.jsAfter installation is complete, open the terminal (Windows users use PowerShell) and check the version number.

  • macOS, Linux, Windows:

If it cannot be displayed correctly, please search for related issues and make sure that your current system version is not outdated.Install OpenClaw

Step 2: Configure OpenClaw

Open the terminal and run the following command to begin configuration.

Select β€œYes”, "QuickStart"

Select β€œCustom Provider”

Here are example model configurations compatible with both Anthropic and OpenAI formats.

Claude Opus 4.7

API Base URL
https://router-link.world3.ai/api

API Key

A RouterLink API key (obtain one from the Quick Start Guide)

Endpoint compatibility

Anthropic-compatible

Model ID

anthropic/claude-opus-4-7

GPT-5.3-Codex

API Base URL
https://router-link.world3.ai/api/v1

API Key

A RouterLink API key (obtain one from the Quick Start Guide)

Endpoint compatibility

OpenAI-compatible

Model ID

world3-router-north-america/openai/gpt-5.3-codex

Gemini 3.1 Pro Preview

API Base URL
https://router-link.world3.ai/api/v1

API Key

A RouterLink API key (obtain one from the Quick Start Guide)

Endpoint compatibility

OpenAI-compatible

Model ID

world3-router-north-america/google/gemini-3.1-pro-preview

You can add other models based on the Integration Guide at https://world3.ai/routerlink

Next, you can configure it as needed.

Step 3: Start using OpenClaw

Run

Verify the Gateway is running

You should see the Gateway listening on port 18789.Open the dashboard

This opens the Control UI in your browser. If it loads, everything is working.Send your first message

Type a message in the Control UI chat and you should get an AI reply.

Want to chat from your phone instead? The fastest channel to set up is Telegram (just a bot token). See Channels for all options.

Troubleshooting

How to add a model

Run it again

Select β€œUse existing values” in Config handling.Add the new model you need under Custom Provider.

The Gateway process is already in use.

How can I upgrade OpenClaw?

Enter the following command in the terminal:

Need more help?

Please check the official documentation: https://docs.openclaw.ai/help/faq

Last updated