Documentation Index
Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt
Use this file to discover all available pages before exploring further.
Guide to Using OpenClaw with AGIPower
OpenClaw (formerly Moltbot, originally Clawdbot) is a powerful AI messaging gateway that connects multiple messaging platforms (WhatsApp, Telegram, Discord, Slack, Signal, iMessage, and more) to AI models. By integrating with AGIPower, you can access a wide range of models including GPT-5.2, Claude-4.5, Gemini-3, DeepSeek, and more.AGIPower fully supports the OpenAI API protocol and can be used with OpenClaw through simple configuration.Note that the OpenAI protocol base_url is
https://api.agipower.ai/v1.Prerequisites
- Node.js 22 or later
- A AGIPower API Key (see Step 0 below)
Integration Methods
There are two ways to use AGIPower with OpenClaw:| Method | Best For | Complexity |
|---|---|---|
| Method 1: Use the AGIPower PR | Full AGIPower integration with auto-discovery | Easy |
| Method 2: Manual Configuration | Stable releases, custom setups | Moderate |
Step 0: Get a AGIPower API Key
Before configuring OpenClaw, you need a AGIPower API Key. AGIPower offers two billing options:Subscription API Key (Recommended)
Pay-as-you-go API Key
Method 1: Use the AGIPower PR
The easiest way to use AGIPower with OpenClaw is to use the pending AGIPower integration PR #3305, which provides full auto-discovery of AGIPower models.Step 1: Clone and Checkout the PR
Step 2: Run Onboarding with AGIPower
Run the onboarding wizard and select AGIPower as your auth provider:- Configure the AGIPower provider
- Discover available models from the AGIPower API
- Set a default model for you
Step 3: Verify the Setup
List the available models to verify the configuration:agipower/ prefix, such as:
agipower/deepseek/deepseek-chatagipower/openai/gpt-5.2agipower/google/gemini-3-pro-previewagipower/anthropic/claude-sonnet-4.5
Step 4: Test the Integration
Send a test message to verify everything works:Method 2: Manual Configuration
If you prefer to use a stable release of OpenClaw or want more control over the configuration, you can manually configure AGIPower as an explicit provider in youropenclaw.json config file.
Step 1: Install OpenClaw
Install OpenClaw globally via npm:Step 2: Configure AGIPower Provider
Add the AGIPower provider configuration to your~/.openclaw/openclaw.json file:
Step 3: Add More Models (Optional)
You can add more models to themodels array. Check the AGIPower model list for available models and their capabilities.
Each model definition requires:
| Field | Description |
|---|---|
id | The model ID as shown in AGIPower (e.g., openai/gpt-5.2) |
name | A display name for the model |
reasoning | Whether the model supports reasoning mode |
input | Input types: ["text"] or ["text", "image"] |
cost | Cost configuration (set to 0 for subscription plans) |
contextWindow | Maximum context window size in tokens |
maxTokens | Maximum output tokens |
Step 4: Verify the Configuration
List the available models:Step 5: Set the Default Model
Set your preferred default model:Using AGIPower Models
Once configured, you can use AGIPower models in various ways:Via CLI Agent
Via Messaging Channels
Configure your messaging channels (WhatsApp, Telegram, Discord, etc.) and the gateway will automatically use your configured AGIPower model:Switching Models
You can switch models at any time:Troubleshooting
Common Issues
API Key Error or Authentication Failure
Issue: You see an error indicating the API Key is invalid or unauthorized Solutions:-
Check the API Key format:
- Subscription API Keys should start with
sk-ss-v1- - Pay-as-you-go API Keys should start with
sk- - Make sure there are no extra spaces or newlines
- Subscription API Keys should start with
-
Validate the API Key:
- Subscription: visit the Subscription management page to check subscription status and quotas
- Pay-as-you-go: visit the Pay-as-you-go page to ensure you have sufficient balance
-
Check config file syntax:
- Ensure the JSON is valid (no trailing commas, proper quoting)
- Verify the API key is correctly placed in the
apiKeyfield
Model Not Found
Issue: OpenClaw reports that the model cannot be found Solutions:-
For Method 1 (PR branch):
- Ensure you’re on the
agipower-integrationbranch (checked out from PR #3305) - Run
pnpm buildafter pulling the latest changes
- Ensure you’re on the
-
For Method 2 (Manual config):
- Verify the model is defined in
models.providers.agipower.models - Check that the model ID matches exactly (case-sensitive)
- Add the model to
agents.defaults.modelsas well
- Verify the model is defined in
Connection Failure
Issue: OpenClaw cannot connect to AGIPower Solutions:- Check that your network connection is working
- Verify
baseUrlis set tohttps://api.agipower.ai/v1 - Ensure your firewall is not blocking outbound HTTPS connections
- Try running
curl https://api.agipower.ai/v1/modelsto test connectivity
Cached Models Showing
Issue: Old models are still showing after config changes Solutions:-
Kill any running gateway process:
-
Rebuild the project (if using Method 1):
-
List models again:
Supported Models
AGIPower provides access to a wide range of models. Here are some popular options for OpenClaw:| Model | ID | Best For |
|---|---|---|
| GPT-5.2 | openai/gpt-5.2 | General purpose, coding |
| Claude Sonnet 4.5 | anthropic/claude-sonnet-4.5 | Balanced performance |
| Claude Opus 4.5 | anthropic/claude-opus-4.5 | Complex reasoning |
| Gemini 3 Pro | google/gemini-3-pro-preview | Multimodal tasks |
| DeepSeek Chat | deepseek/deepseek-chat | Cost-effective coding |
| Qwen3 Coder | alibaba/qwen3-coder-plus | Code generation |