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.
CC-Switch Guide for AGIPower
CC-Switch is an open-source, cross-platform desktop tool designed to centrally manage configuration for AI coding assistants. It supports managing provider settings for four major coding tools—Claude Code, Codex, Gemini CLI, and OpenCode—so you can switch API providers in one click through a visual interface, without manually editing environment variables or JSON files.CC-Switch can manage four coding tools: Claude Code, Codex, Gemini CLI, and OpenCode. By configuring AGIPower as a provider in CC-Switch, you can:
- Visual management: No more manual edits to environment variables and config files—complete everything in a GUI
- One-click switching: Switch instantly between AGIPower and other providers without restarting your terminal
- Unified configuration: Configure AGIPower once and sync it to multiple coding tools
- Automatic failover: Automatically switch to a backup provider if the primary provider is unavailable
- Request monitoring: View request logs and usage statistics in real time
Install CC-Switch
macOS
Homebrew (Recommended)
Manual Install
Windows
MSI Installer (Recommended)
Portable Version
Linux
Debian/Ubuntu (.deb)
AppImage
Get a AGIPower API Key
Before configuring CC-Switch, you’ll need a AGIPower API Key. AGIPower offers two billing options—choose based on your use case:Subscription API Key (Recommended)
Pay-as-you-go API Key
Configure the AGIPower Provider
Step 1: Open Provider Management
After launching CC-Switch, select the coding tool you want to configure in the top navigation bar (e.g., Claude Code) to open the provider management page.
Step 2: Add the AGIPower Provider
Click Add Provider and fill in the following configuration:
Claude Code Configuration (Anthropic Protocol)
| Setting | Value | Notes |
|---|---|---|
| Provider Name | AGIPower | Custom name for easy identity |
| Base URL | https://agipower.ai | AGIPower Anthropic-compatible endpoint |
| API Key | sk-ss-v1-xxx or sk-xxx | Your AGIPower API key |
| Tier | Recommended Model | Notes |
|---|---|---|
| Haiku (Fast) | anthropic/claude-haiku-4.5 | Fast completions, simple tasks |
| Sonnet (Balanced) | anthropic/claude-sonnet-4.5 | Recommended for daily development; best value |
| Opus (Powerful) | anthropic/claude-opus-4.5 | Complex architecture, large refactors |
JSON Config Example (Copy & Paste)
Copy and paste the configuration above into Claude Code’s config file, then save to complete setup.
Codex
| Setting | Value | Notes |
|---|---|---|
| Provider Name | AGIPower | Custom name for easy identity |
| Base URL | https://api.agipower.ai/v1 | AGIPower OpenAI-compatible endpoint |
| API Key | sk-ss-v1-xxx or sk-xxx | Your AGIPower API key |
config.toml Example (Copy & Paste)
Copy and paste the configuration above into Codex’s config file, then save to complete setup.
Gemini CLI Configuration (Vertex AI Protocol)
| Setting | Value | Notes |
|---|---|---|
| Provider Name | AGIPower | Custom name for easy identity |
| Base URL | https://api.agipower.ai | AGIPower Vertex AI-compatible endpoint |
| API Key | sk-ss-v1-xxx or sk-xxx | Your AGIPower API key |
Environment Variable Example (Copy & Paste)
Copy and paste the configuration above into Gemini CLI’s config file, then save to complete setup.
OpenCode Configuration (OpenAI Protocol)
| Setting | Value | Notes |
|---|---|---|
| Provider Name | AGIPower | Custom name for easy identity |
| Base URL | https://api.agipower.ai | AGIPower Vertex AI-compatible endpoint |
| API Key | sk-ss-v1-xxx or sk-xxx | Your AGIPower API key |
JSON Config Example (Copy & Paste)
Copy and paste the configuration above into OpenCode’s config file, then save to complete setup.
Step 3: Switch to the AGIPower Provider
After adding it, click the toggle button next to AGIPower in the provider list to route the current coding tool’s requests through AGIPower.CC-Switch supports hot-switching providers—no need to restart your terminal or coding tool. After switching, new requests are immediately forwarded via AGIPower, and existing conversation context remains unaffected.
Step 4: Share Configuration Across Apps (Optional)
If you use multiple coding tools, CC-Switch can sync the same provider configuration across all managed apps. This is especially convenient for an API gateway like AGIPower that supports multiple protocols:- Enable Cross-app sharing (Universal Provider) in the provider settings
- Set default model mappings for each app
- Save—this provider will automatically sync to Claude Code, Codex, Gemini CLI, and OpenCode
Supported Models
Models that support the Anthropic protocol are being adapted in batches. You can filter the currently supported models via the official model list and select the Anthropic Messages protocol.The OpenAI protocol supports a much broader set of models. You can filter the model list by “OpenAI API Compatible”.
Troubleshooting
Common Issues
API Key Error or Authentication Failure
Issue: After configuring the provider, you see that the API key is invalid or unauthorized. Solution:-
Check the API key format:
- Subscription keys should start with
sk-ss-v1- - Pay-as-you-go keys should start with
sk- - Make sure there are no extra spaces or line breaks
- Subscription keys should start with
-
Verify the API key is valid:
- Subscription: visit the subscription management page to check subscription status and quota
- Pay-as-you-go: visit the pay-as-you-go page to ensure your balance is sufficient
-
Confirm the Base URL is correct:
- Claude Code (Anthropic protocol):
https://agipower.ai - Codex / OpenCode (OpenAI protocol):
https://api.agipower.ai/v1 - Gemini CLI (Vertex AI protocol):
https://agipower.ai/api/vertexai
- Claude Code (Anthropic protocol):
macOS Shows “Developer Cannot Be Verified”
Issue: On first launch, macOS shows “Developer cannot be verified”. Solution: Because the developer does not yet have Apple Developer signing, macOS may block the app on first run.- Go to System Settings → Privacy & Security
- Find the blocked CC-Switch message at the bottom of the page
- Click Open Anyway
- In the confirmation dialog, click Open
Coding Tool Not Responding After Switching Providers
Issue: After switching to AGIPower in CC-Switch, the coding tool’s requests don’t change. Solution:- Confirm CC-Switch is running (the system tray icon should be visible)
- Check whether the provider for that coding tool has been switched correctly in CC-Switch (the active provider is highlighted)
- Trigger a new request in the coding tool and confirm it routes through AGIPower
- If it still doesn’t work, restart the coding tool and test again
Model Does Not Support the Anthropic Protocol
Issue: In Claude Code, a model reports that it doesn’t support the Anthropic protocol. Solution:- Use the AGIPower model list and filter by “Anthropic API Compatible” to see currently supported models
- Ensure the model ID in model mapping is correct (e.g.,
anthropic/claude-sonnet-4.5, notclaude-sonnet-4.5) - Use a model from the supported list above