Page summary

Update provider names, models, endpoints, authentication, and routing details.

2.3 Edit Provider

Open the Edit Page

  1. Find the provider card you want to edit
  2. Click the pencil icon ("Edit") on the right side of the card
  3. This opens the full-page editor; click "Back to providers" to leave

Editable Content

Basic Information

FieldDescription
NameProvider display name
NotesAdditional notes
Website LinkProvider website or console URL
IconA built-in icon or an image uploaded to My Icons

Icon Customization

Click the icon to the left of the name to open the icon picker; clicking an icon selects it and closes the picker. The picker has two groups, and the search box filters both:

Images are shrunk to a 96×96 PNG. My Icons and provider settings travel with cloud sync, and no separate files are written to disk. A site icon brought in by an import link shows up in My Icons as "Current icon" and can be saved there for other providers. To remove the icon, click "Clear icon" next to the search box; the card falls back to the initials of its name.

Configuration

For the API key, endpoint URL, model, and other form fields, as well as the config editor at the bottom of the panel, see Config Editor below.

Config Editor

For Claude Code, Codex, Gemini CLI, and Grok Build, the bottom of the edit panel shows what the tool's config file will look like after switching to this provider:

AppEditor
Claude Code~/.claude/settings.json
Codex~/.codex/config.toml (the key is in the API Key field above and isn't repeated in the editor)
Gemini CLI~/.gemini/.env and ~/.gemini/settings.json (two editors)
Grok Build~/.grok/config.toml

The editor's content falls into two groups, and a line above the editor lists what the first group covers for this app:

The rules are exactly the same whether you edit the current provider or another one: no matter which provider you edit, changes to global settings are written to the config file immediately. In Routing mode, the key fields in the editor also show the provider's own real endpoint and key, not the local routing address.

Settings Changed in the Tool

💡 Common config snippets are frozen: older versions had a "common config snippet" that was merged into the config file on switching, and when you edited the current provider they also read the whole config file back into the provider ("backfill"). The new version does neither: shared settings already live in the config file and don't need to be stored in any one provider, nor does a snippet. Snippets left in existing providers are read only by older versions and don't affect the new one.

Config File Changed While Editing

When you save, CC Switch submits only the settings you changed in the editor and checks each one: has this setting been changed in the config file by the tool or another program since you opened the edit panel?

Settings you didn't change aren't submitted, so they won't overwrite anything the tool wrote in the meantime.

Settings That Don't Take Effect When Switching

Backfill in older versions, deep link imports, or old presets may have left settings other than key fields stored in a provider. These settings aren't written to the config file, and they are listed below the editor:

The original values stored in the provider aren't deleted.

When the Config File Can't Be Read

If the tool's config file has a format error, the editor shows the content stored in the provider instead and explains why at the top. Fix the config file, then reopen the edit panel.

Auto-Fetch Models

When editing a provider, you can auto-fetch the available model list from the provider's endpoint:

  1. Ensure the API Key and endpoint URL are filled in
  2. Click the Fetch Models button (download icon) next to the model input field
  3. Select a model from the grouped dropdown

See 2.1 Add Provider — Auto-Fetch Models for full details.

Quick Toggles (Claude)

When editing a Claude provider, quick toggle switches are available above the JSON editor for common settings like Tool Search, Disable Auto-Upgrade, Teammates, and Max Effort Thinking. "Enable Tool Search" and "Disable Artifact Tool" are per provider; the rest are global settings. See 2.1 Add Provider — Claude Quick Toggles for details.

Modify API Key

When editing a provider, you can modify the key directly in the API Key input field:

  1. Click the "Edit" button on the provider card
  2. Enter the new key in the "API Key" input field
  3. Click "Save"

Tip: The API Key input field supports a show/hide toggle. Click the eye icon on the right to view the full key.

Modify Endpoint URL

When editing a provider, you can modify the URL directly in the Endpoint URL input field:

  1. Click the "Edit" button on the provider card
  2. Enter the new URL in the "Endpoint URL" input field
  3. Click "Save"

Endpoint URL Format

ApplicationFormat Example
Claudehttps://api.example.com
Codexhttps://api.example.com/v1
Geminihttps://api.example.com

Add Custom Endpoints

Providers can be configured with multiple endpoints for:

Auto-collection

When adding a provider, CC Switch automatically extracts endpoint URLs from the configuration.

Manual Addition

When editing a provider, in the "Endpoint Management" area you can:

JSON / TOML Editor

The config editors for Claude Code and Gemini CLI use JSON (Gemini's .env is environment-variable text), while Codex and Grok Build use TOML. The editor provides:

Common Errors (JSON as an example)

Missing quotes:

// Wrong
{ env: { KEY: "value" } }

// Correct
{ "env": { "KEY": "value" } }

Trailing comma:

// Wrong
{ "env": { "KEY": "value", } }

// Correct
{ "env": { "KEY": "value" } }

Unclosed brackets:

// Wrong
{ "env": { "KEY": "value" }

// Correct
{ "env": { "KEY": "value" } }

Save and Activate

  1. Click the "Save" button at the bottom of the page
  2. If the form detects a non-blocking issue, a "Configuration has the following issues" prompt appears; click "Save anyway" to still save the provider
  3. Changes to global settings are written to the config file immediately, whether or not you're editing the current provider
  4. Changes to key fields are stored in the provider. In Direct mode, if you're editing the provider in use, they are also written to the config file; in Routing mode, if you're editing the provider that routing is using and the change affects what routing writes to the config file (such as the model name), the config file is updated as well
  5. Whether you need to restart the tool is the same as for switching providers; see 2.2 Switch Provider

Cancel Editing

Click "Cancel" or "Back to providers" to leave the edit page; your changes are not saved. If there are unfinished edits you are prompted with "Unsaved changes", and they are discarded only if you choose "Discard and leave".