Skip to main content
If you have installed CC Switch or Cherry Studio, the DimiLinks console can send the current key directly to your local client, so you do not need to enter the base URL and model manually.

One-click import workflow

  1. Open the API Keys page in the DimiLinks console.
  2. On the target key, click “Import to CC Switch” or “Import to Cherry Studio.” Before importing to CC Switch, you can choose which tool to configure (Claude Code / Codex / Gemini CLI) under “Configure CC Switch for.” The console recommends a default based on the key’s models.
  3. The browser opens a system-level deep link. The corresponding client handles it and writes the base URL, key, and model automatically.
The console recommends a target provider based on the key’s model restrictions and groups:
Key modelsTarget providerBase URL
Claude family onlyAnthropic stylehttps://api-direct.dimilinks.com/
Gemini family onlyGemini stylehttps://api-direct.dimilinks.com/
Other (GPT / unrestricted)OpenAI stylehttps://dimilinks.com/v1
Common reasons an import fails:
  • The client is not installed or has not registered its deep-link scheme (ccswitch:// / cherrystudio://).
  • The browser blocked the scheme navigation. Focus the address bar and press Enter once, then try again.
  • When the operating system sees the protocol for the first time, it asks whether to open the local application. Approve the request.
  • The import succeeded but does not appear in CC Switch: providers appear only in the list for the tool selected during import. Claude Code, Codex, and Gemini have separate lists. Open the correct tool tab, or select a different target in the console and import again.
  • For Claude Code, choose a key in a Claude group. A key limited to general-purpose groups cannot call Claude models.
The console generates a URL like this:
ccswitch://v1/import?resource=provider
  &app=claude
  &name=My%20Claude%20Workspace
  &apiKey=sk-...
  &endpoint=https%3A%2F%2Fapi-direct.dimilinks.com
  &model=claude-sonnet-5
ParameterDescription
resourceFixed value: provider
appclaude / codex / gemini; recommended from the key’s model family by default and selectable before import
nameProvider name shown in CC Switch
apiKeyDimiLinks Bearer key
endpointBase URL for the target tool: https://dimilinks.com/v1 or https://api-direct.dimilinks.com, without a trailing slash
modelIncluded when the key allows only one model; otherwise, the user selects a model in CC Switch
cherrystudio://providers/api-keys?v=1&data=<urlsafe-base64>
data is URL-safe base64 that decodes to JSON:
{
  "id": "dimilinks-token-42",
  "name": "Claude Workspace",
  "apiKey": "sk-...",
  "baseUrl": "https://api-direct.dimilinks.com/",
  "type": "anthropic"
}
type matches a Cherry Studio provider type: openai / anthropic / gemini. If you do not want one-click import, create the provider manually in the client:
ClientTypeBase URLKey
Cherry StudioOpenAIhttps://dimilinks.com/v1DimiLinks Bearer
Cherry StudioAnthropichttps://api-direct.dimilinks.com/DimiLinks Bearer
Cherry StudioGeminihttps://api-direct.dimilinks.com/DimiLinks Bearer
CC SwitchCodex / Claude / GeminiSame as aboveSame as above
After setup, use “Test connection” or send a minimal chat message to verify the connection.