CC-Switch Configuration
CC-Switch is a powerful multi-model management tool that integrates HaoAI and other AI providers in a single interface. With usage query support, you can now monitor your HaoAI API consumption in real-time.
Prerequisites
- Registered HaoAI account with API Key (Get API Key )
- Installed and configured CC-Switch
Configuration Steps
Step 1: Add HaoAI Provider
Add a new provider in CC-Switch with the following configuration:
| Configuration | Value |
|---|---|
| Provider Name | haoai-claude (or custom name) |
| API Base URL | https://api.hao.ai/v1 |
| API Key | Your HaoAI API Key |
Step 2: Enable Usage Query
The image below shows how to configure usage query in CC-Switch:

Configuration highlights:
- Enable Usage Query — Toggle the green switch on the right (see image marker ②)
- API Key — Enter your HaoAI API Key (marker ③)
- Request Endpoint — Set to
https://api.hao.ai/v1(marker ④) - Template — Select Universal Template for best compatibility
Step 3: Verify Configuration
After configuration, you can:
- View real-time usage statistics in the CC-Switch dashboard
- Monitor API call counts and token consumption
- Track costs and budget usage
Usage query works by periodically calling the HaoAI API to fetch account statistics. Ensure your API Key has sufficient permissions.
Never commit API Keys to public repositories. Use environment variables or secure key management systems to store your API Key.
Supported Models
Through HaoAI, CC-Switch can access 100+ AI models. See HaoAI Model Marketplace for details.
FAQ
Q: How frequently does usage data update?
Usage data typically updates within a few minutes after API calls, depending on HaoAI’s processing speed.
Q: How do I disable usage query?
Simply toggle off the usage query switch for the provider in CC-Switch. This won’t affect normal API calls.
Q: Does usage query consume API quota?
No. Usage query uses a dedicated statistics API and does not count against your API call limits.
Q: Can I add multiple HaoAI accounts?
Yes. You can add multiple HaoAI provider configurations in CC-Switch using different API Keys.