Integration Guide
Connect CHMU Hub with your favorite tools and platforms.
Common Settings
Prerequisites
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
ChatBox
A cross-platform desktop AI client supporting Windows, macOS, and Linux.
- Download ChatBox from chatboxai.app or GitHub releases.
- Open Settings and click "Add Provider", then select "Custom".
- Set the API URL to https://api.chmuhub.com/v1/public.
- Paste your CHMU Hub API key in the API Key field.
- Select a model from the available model list (e.g. gpt-4o, claude-sonnet-4-20250514).
- Save the settings and start a new conversation.
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
Cherry Studio
A modern AI assistant app with multi-model support and conversation management.
- Go to Settings and navigate to "Model Provider".
- Click "Add" and select "OpenAI API Compatible".
- Enter the CHMU Hub API URL: https://api.chmuhub.com/v1/public
- Paste your API key from the CHMU Hub dashboard.
- Click Refresh to load available models, then select the one you want.
- Return to the chat and pick the newly added provider.
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
Claude Code
Anthropic's official CLI for Claude. Use CHMU Hub as the backend provider.
- Set the environment variable for the base URL.
- Set the environment variable for the API key.
- Launch Claude Code as usual — it will route through CHMU Hub.
Add these to your shell profile (~/.bashrc, ~/.zshrc):
export ANTHROPIC_BASE_URL="https://api.chmuhub.com/v1/public"
export ANTHROPIC_API_KEY="sk-chmuhub-your-key-here"Supports claude-sonnet-4-20250514, claude-opus-4-20250514, and other Anthropic models.
Cursor
AI-powered code editor. Route model requests through CHMU Hub for lower cost.
- Open Cursor Settings (Cmd/Ctrl + ,) and go to "Models".
- Select "OpenAI API" as the provider.
- Set the Base URL to https://api.chmuhub.com/v1/public.
- Enter your CHMU Hub API key.
- Select a model (e.g. gpt-4o, claude-sonnet-4-20250514).
- Enable the custom endpoint and start coding.
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
Cline
VS Code extension for AI-powered coding with autonomous capabilities.
- Install the Cline extension from the VS Code marketplace.
- Open Cline settings (click the gear icon in the Cline sidebar).
- Select "OpenAI Compatible" as the API provider.
- Enter the Base URL: https://api.chmuhub.com/v1/public
- Paste your CHMU Hub API key.
- Choose a model from the model dropdown.
- Start a new task and Cline will use CHMU Hub.
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
Dify
Open-source platform for building AI applications with visual workflows.
- Go to System Settings and click "Model Provider".
- Click "Add Model Provider" and select "OpenAI-API-compatible".
- Set the API endpoint to https://api.chmuhub.com/v1/public
- Enter your CHMU Hub API key as the credential.
- Add the model names you want to use (e.g. gpt-4o).
- Save and select the model in your Dify application workflow.
| Setting | Value |
|---|---|
| Base URL | https://api.chmuhub.com/v1/public |
| API Key | sk-chmuhub-... |
| Model | Choose from available models |
OpenAI SDK
Use the official OpenAI Python or Node.js SDK with CHMU Hub as the backend.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.chmuhub.com/v1/public",
api_key="sk-chmuhub-your-key-here",
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Node.js
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.chmuhub.com/v1/public",
apiKey: "sk-chmuhub-your-key-here",
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Any library or tool that supports the OpenAI API format will work with CHMU Hub. Just change the base URL and API key.