Add documentation for features introduced since v3.12.0: New docs: - 3.4 Session Manager: browse, search, resume, delete sessions - 3.5 Workspace & Daily Memory: OpenClaw workspace file editing Updated docs: - Add Lightweight Mode to interface overview and FAQ - Add tray submenu structure (providers grouped by app) - Add API Format selection (Anthropic/OpenAI Chat/OpenAI Responses) - Add Auto-Fetch Models button documentation - Add Claude Common Config quick toggles - Add Codex 1M Context Window toggle - Add Skill backup/restore lifecycle - Expand Backup Management panel documentation - Update WebDAV sync to v2 protocol with dual-layer versioning - Add OpenCode/OpenClaw to quickstart activation table - Update README version to v3.12.3 All changes synced across en, zh, and ja locales.
13 KiB
2.1 Add Provider
Open the Add Panel
Click the + button in the top-right corner of the main interface to open the Add Provider panel.
The panel has two tabs:
- App-specific Provider: Only for the currently selected app (Claude/Codex/Gemini/OpenCode/OpenClaw)
- Universal Provider: Shared configuration across apps
Add Using Presets
Presets are pre-configured provider templates that only require an API Key to use.
Steps
- Select a provider from the "Preset" dropdown
- Name and endpoint are auto-filled
- Enter your API Key
- (Optional) Add notes
- Click "Add"
Common Presets
Claude Presets
| Preset Name | Description |
|---|---|
| Claude Official | Log in with an Anthropic official account |
| DeepSeek | DeepSeek model |
| Zhipu GLM | Zhipu AI GLM model |
| Zhipu GLM en | Zhipu AI (English version) |
| Bailian | Alibaba Cloud Bailian (Qwen) |
| Kimi | Moonshot Kimi model |
| Kimi For Coding | Kimi coding-specific model |
| StepFun | StepFun model |
| ModelScope | ModelScope community |
| KAT-Coder | KAT-Coder model |
| Longcat | Longcat AI |
| MiniMax | MiniMax model |
| MiniMax en | MiniMax (English version) |
| DouBaoSeed | DouBao Seed model |
| BaiLing | BaiLing AI |
| AiHubMix | AiHubMix aggregation service |
| SiliconFlow | SiliconFlow |
| SiliconFlow en | SiliconFlow (English version) |
| DMXAPI | DMXAPI proxy service |
| PackyCode | PackyCode proxy service |
| Cubence | Cubence service |
| AIGoCode | AIGoCode service |
| RightCode | RightCode service |
| AICodeMirror | AICodeMirror service |
| OpenRouter | Aggregation routing service |
| Nvidia | Nvidia AI service |
| Xiaomi MiMo | Xiaomi MiMo model |
The preset list may be updated with new versions. Refer to the actual list shown in the app.
Codex Presets
| Preset Name | Description |
|---|---|
| OpenAI Official | Log in with an OpenAI official account |
| Azure OpenAI | Azure OpenAI service |
| AiHubMix | AiHubMix aggregation service |
| DMXAPI | DMXAPI proxy service |
| PackyCode | PackyCode proxy service |
| Cubence | Cubence service |
| AIGoCode | AIGoCode service |
| RightCode | RightCode service |
| AICodeMirror | AICodeMirror service |
| OpenRouter | Aggregation routing service |
Gemini Presets
| Preset Name | Description |
|---|---|
| Google Official | Log in with Google OAuth |
| PackyCode | PackyCode proxy service |
| Cubence | Cubence service |
| AIGoCode | AIGoCode service |
| AICodeMirror | AICodeMirror service |
| OpenRouter | Aggregation routing service |
| Custom | Manually configure all parameters |
OpenCode Presets
| Preset Name | Description |
|---|---|
| DeepSeek | DeepSeek model |
| Zhipu GLM | Zhipu AI GLM model |
| Zhipu GLM en | Zhipu AI (English version) |
| Bailian | Alibaba Cloud Bailian |
| Kimi k2.5 | Moonshot Kimi-k2.5 model |
| Kimi For Coding | Kimi coding-specific model |
| StepFun | StepFun model |
| ModelScope | ModelScope community |
| KAT-Coder | KAT-Coder model |
| Longcat | Longcat AI |
| MiniMax | MiniMax model |
| MiniMax en | MiniMax (English version) |
| DouBaoSeed | DouBao Seed model |
| BaiLing | BaiLing AI |
| Xiaomi MiMo | Xiaomi MiMo model |
| AiHubMix | AiHubMix aggregation service |
| DMXAPI | DMXAPI proxy service |
| OpenRouter | Aggregation routing service |
| Nvidia | Nvidia AI service |
| PackyCode | PackyCode proxy service |
| Cubence | Cubence service |
| AIGoCode | AIGoCode service |
| RightCode | RightCode service |
| AICodeMirror | AICodeMirror service |
| OpenAI Compatible | OpenAI-compatible interface |
| Oh My OpenCode | Oh My OpenCode service |
The preset list is continuously updated. Refer to the actual list shown in the app.
OpenClaw Presets
| Preset Name | Description |
|---|---|
| DeepSeek | DeepSeek model |
| Zhipu GLM | Zhipu AI GLM model |
| Zhipu GLM en | Zhipu AI (English version) |
| Qwen Coder | Qwen coding model |
| Kimi k2.5 | Moonshot Kimi-k2.5 model |
| Kimi For Coding | Kimi coding-specific model |
| StepFun | StepFun model |
| MiniMax | MiniMax model |
| MiniMax en | MiniMax (English version) |
| KAT-Coder | KAT-Coder model |
| Longcat | Longcat AI |
| DouBaoSeed | DouBao Seed model |
| BaiLing | BaiLing AI |
| Xiaomi MiMo | Xiaomi MiMo model |
| AiHubMix | AiHubMix aggregation service |
| DMXAPI | DMXAPI proxy service |
| OpenRouter | Aggregation routing service |
| ModelScope | ModelScope community |
| SiliconFlow | SiliconFlow |
| SiliconFlow en | SiliconFlow (English version) |
| Nvidia | Nvidia AI service |
| PackyCode | PackyCode proxy service |
| Cubence | Cubence service |
| AIGoCode | AIGoCode service |
| RightCode | RightCode service |
| AICodeMirror | AICodeMirror service |
| AICoding | AICoding service |
| CrazyRouter | CrazyRouter service |
| SSSAiCode | SSSAiCode service |
| AWS Bedrock | AWS Bedrock service |
| OpenAI Compatible | OpenAI-compatible interface |
Auto-Fetch Models
When adding or editing a provider, you can auto-fetch available models from the provider's endpoint:
- Ensure the API Key and Endpoint URL are filled in
- Click the Fetch Models button (download icon) next to the model input field
- CC Switch calls the provider's
/v1/modelsendpoint to retrieve the model list - Select a model from the dropdown, grouped by vendor
This feature works for any provider that supports the OpenAI-compatible /v1/models API. It is available for Claude, Codex, Gemini, OpenCode, and OpenClaw providers.
Common errors:
- Authentication failed (401/403): Check your API Key
- Endpoint not supported (404/405): The provider does not expose a
/v1/modelsendpoint - Timeout: The endpoint is slow to respond; try again later
Custom Configuration
After selecting the "Custom" preset, you need to manually edit the JSON configuration.
Claude Configuration Format
{
"env": {
"ANTHROPIC_API_KEY": "your-api-key",
"ANTHROPIC_BASE_URL": "https://api.example.com"
}
}
| Field | Required | Description |
|---|---|---|
ANTHROPIC_API_KEY |
Yes | API key |
ANTHROPIC_BASE_URL |
No | Custom endpoint URL |
ANTHROPIC_AUTH_TOKEN |
No | Alternative authentication method to API_KEY |
Codex Configuration Format
Codex uses two configuration files:
1. auth.json (~/.codex/auth.json) - Stores API key:
{
"OPENAI_API_KEY": "your-api-key"
}
2. config.toml (~/.codex/config.toml) - Stores model and endpoint configuration:
# Basic configuration
model_provider = "custom"
model = "gpt-5.2"
model_reasoning_effort = "high"
disable_response_storage = true
# Custom provider configuration
[model_providers.custom]
name = "custom"
base_url = "https://api.example.com/v1"
wire_api = "responses"
requires_openai_auth = true
auth.json field descriptions:
| Field | Required | Description |
|---|---|---|
OPENAI_API_KEY |
Yes | API key |
config.toml field descriptions:
| Field | Required | Description |
|---|---|---|
model_provider |
Yes | Model provider name (must match [model_providers.xxx]) |
model |
Yes | Model to use (e.g., gpt-5.2, gpt-4o) |
model_reasoning_effort |
No | Reasoning effort: low / medium / high |
disable_response_storage |
No | Whether to disable response storage |
base_url |
Yes | API endpoint URL |
wire_api |
No | API protocol type (usually responses) |
requires_openai_auth |
No | Whether to use OpenAI authentication |
Gemini Configuration Format
{
"env": {
"GEMINI_API_KEY": "your-api-key",
"GOOGLE_GEMINI_BASE_URL": "https://api.example.com"
}
}
| Field | Required | Description |
|---|---|---|
GEMINI_API_KEY |
Yes | API key |
GOOGLE_GEMINI_BASE_URL |
No | Custom endpoint URL |
GEMINI_MODEL |
No | Specify model |
Authentication type is automatically detected by CC Switch (PackyCode API proxy / Google OAuth / generic API Key), no manual configuration needed.
Universal Provider
Universal providers can share configurations across Claude/Codex/Gemini/OpenCode/OpenClaw, suitable for proxy services that support multiple API formats.
Create a Universal Provider
- Switch to the "Universal Provider" tab
- Click "Add Universal Provider"
- Fill in the common configuration:
- Name
- API Key
- Endpoint URL
- Check the apps to sync to (Claude/Codex/Gemini/OpenCode/OpenClaw)
- Save
Sync Mechanism
Universal providers automatically sync to the selected apps:
- After modifying a universal provider, all linked app configurations are updated
- After deleting a universal provider, linked app configurations are also deleted
Save and Sync
When editing a universal provider, you can choose:
| Action | Description |
|---|---|
| Save | Save configuration only, without immediate sync |
| Save and Sync | Save configuration and immediately sync to all enabled apps |
Manual Sync
If you need to manually trigger a sync:
- Click the "Sync" button on the universal provider card
- Confirm the sync operation
- Configuration will overwrite the linked provider in each app
Import Providers
CC Switch supports two ways to import provider configurations:
Option 1: Deep Link Import
One-click import via ccswitch:// protocol links:
- Click or visit the deep link
- CC Switch opens automatically and shows the import confirmation
- Preview the configuration information
- Click "Confirm Import"
Getting deep links:
- Obtain from shared links by others
- Create using the online generator tool
Option 2: Database Backup Import
Batch import from SQL backup files:
- Open "Settings > Advanced > Data Management"
- Click "Select File"
- Select a previously exported
.sqlbackup file - Click "Import"
- Confirm to overwrite existing configuration
Imported contents:
- All provider configurations
- MCP server configurations
- Prompt presets
- Usage logs
Note
: Importing will overwrite the existing database. It is recommended to export your current configuration as a backup first. The exported file name format is
cc-switch-export-{timestamp}.sql.
Advanced Options
API Format (Claude Only)
When adding a Claude provider that uses a third-party API, you may need to select the correct API Format in the Advanced Options section:
| Format | Description | When to Use |
|---|---|---|
| Anthropic Messages | Native Anthropic API format (default) | Direct Anthropic API or compatible proxies |
| OpenAI Chat Completions | OpenAI Chat API format, auto-converted by proxy | Provider only supports OpenAI Chat format |
| OpenAI Responses API | OpenAI Responses API format, auto-converted by proxy | Provider only supports OpenAI Responses format |
Note
: API format conversion is handled by the proxy service. When using non-Anthropic formats, the proxy must be running with takeover enabled for correct request/response conversion. See 4.1 Proxy Service for details.
The Advanced Options section auto-expands when a non-default API format is configured.
Claude Common Config Toggles
When editing Claude providers, a set of quick toggles is available above the JSON editor:
| Toggle | Effect | Config Change |
|---|---|---|
| Hide Attribution | Clears commit/PR attribution metadata | Sets attribution: {commit: "", pr: ""} |
| Enable Teammates | Enables the agent teams feature | Sets env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1" |
| Enable Tool Search | Enables tool search functionality | Sets env.ENABLE_TOOL_SEARCH = "true" |
| High Effort | Sets effort level to high | Sets effortLevel = "high" |
| Disable Auto Upgrade | Prevents Claude Code auto-updates | Sets env.DISABLE_AUTOUPDATER = "1" |
When a toggle is unchecked, its corresponding config entry is removed entirely. Changes are reflected in the JSON editor in real-time.
Additionally, the Write Common Config checkbox enables merging a global config snippet into the provider. Click Edit Common Config to customize the shared snippet.
Codex 1M Context Window
When adding a Codex provider, an Enable 1M Context Window toggle is available:
- When enabled: Sets
model_context_window = 1000000and auto-fillsmodel_auto_compact_token_limit = 900000in config.toml - When disabled: Removes both fields
The auto-compact limit can be customized in the text field that appears when the toggle is on.
Custom Icon
Click the icon area to the left of the name to:
- Select a preset icon
- Customize icon color
Website Link
Enter the provider's website or console URL for quick access:
- Click the link icon on the provider card to open directly
- Useful for checking balance, obtaining API keys, etc.
Notes
Add notes such as:
- Account purpose (personal/work)
- Plan information
- Expiration date
Notes are displayed on the provider card and are searchable.
Endpoint Speed Test
After adding a provider, you can speed-test API endpoints:
- Click the "Speed Test" button on the provider card
- Add multiple endpoint URLs in the speed test panel
- Click "Test" to run the test
- Select the endpoint with the lowest latency
Test results:
- Green: Latency < 500ms (Excellent)
- Yellow: Latency 500-1000ms (Fair)
- Red: Latency > 1000ms (Slow)
