For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenClaw

Connect OpenClaw to TensorX.ai and run a privacy-focused AI assistant on WhatsApp, Telegram, Discord, iMessage, and more — powered by open-source models.


What is OpenClaw?

OpenClaw is an open-source, self-hosted AI agent gateway that connects AI models to your favorite messaging platforms. By configuring TensorX as a custom provider, you can run powerful open-source models like GLM-5.1, MiniMax, and DeepSeek across all your chat channels.


Prerequisites

  • Node.js >= 22 (download here)

  • macOS, Linux, or Windows (PowerShell installer available)

  • A TensorX API key (sign up here)


Installation

Step 1: Install OpenClaw

Verify installation:


Configuration

Step 2: Run the Onboarding Wizard

The wizard guides you through auth, gateway settings, and optional channels. Accept the defaults to get started quickly.

Step 3: Configure TensorX as a Custom Provider

OpenClaw uses a JSON5 config file at ~/.openclaw/openclaw.json. Add TensorX as a custom provider:

Then set your API key in ~/.openclaw/.env:

Step 4: Restart the Gateway

Step 5: Verify Setup

The Control UI opens at http://127.0.0.1:18789/. Send a test message to verify the connection.


OpenClaw works with all TensorX models. Switch models in chat with /model <alias> or update agents.defaults.model in config.

Model
Alias
Best For

z-ai/glm-5.1

glm

Coding, reasoning, general use

minimax/minimax-m2.5

minimax

Reasoning, function calling

moonshotai/kimi-k2.5

kimi

Vision, long context

minimax/minimax-m2

Fast responses, cost-sensitive

deepseek/deepseek-chat-v3.1

deepseek

General chat, balanced

deepseek/deepseek-r1-0528

r1

Complex reasoning tasks


Adding Chat Channels

OpenClaw supports WhatsApp, Telegram, Discord, Slack, iMessage, Signal, Google Chat, Mattermost, MS Teams, IRC, and more.

WhatsApp

Scan the QR code in WhatsApp → Settings → Linked Devices, then approve the pairing:

Telegram

  1. Create a bot via @BotFather and copy the bot token

  2. Add to ~/.openclaw/.env:

  3. Restart and approve pairing:

Discord

  1. Create a bot at the Discord Developer Portal and copy the token

  2. Add to ~/.openclaw/.env:

  3. Restart the gateway:

See the OpenClaw channels documentation for setup guides for all supported platforms.


Multi-Agent Routing

Run multiple agents with different models for different purposes:


Common Commands


Troubleshooting

Gateway Won't Start

No Response from Model

  1. Verify your TensorX API key works:

  2. Check your config for typos:

  3. Restart the gateway:

Channel Not Working


Cost Optimization

Use Case
Recommended Model
Why

Simple questions

minimax/minimax-m2

Fast and cheap

Coding tasks

z-ai/glm-5.1

Best coding performance

Deep reasoning

deepseek/deepseek-r1-0528

Worth the cost for complex problems

General chat

deepseek/deepseek-chat-v3.1

Balanced performance and cost

Vision tasks

moonshotai/kimi-k2.5

Image understanding, long context

Use OpenClaw's pairing system to prevent unauthorized usage that would consume your credits.


Resources


FAQ

Q: Do I need an Anthropic or OpenAI account?

No! TensorX provides all the models you need. You only need a TensorX API key.

Q: Can I switch between models on the fly?

Yes! Use /model <alias> in any chat to switch models mid-conversation (e.g., /model r1 for reasoning tasks).

Q: Can I switch back to Claude or another provider later?

Yes. Update the models.providers section in ~/.openclaw/openclaw.json to point to a different provider, or add multiple providers and switch between them.

Q: Which model should I start with?

We recommend z-ai/glm-5.1 for most use cases. It offers excellent coding capabilities, strong reasoning, and good general performance.


Need help? Contact support@tensorx.ai or check the OpenClaw documentation.

Last updated

Was this helpful?