Skip to main content

Configure PingCode AI in CC Switch: Claude Code vs. Codex endpoints

Updated 4 min readMarkdown

CC Switch can keep separate provider configurations for Claude Code and Codex, but the two clients need different endpoint paths and upstream formats. This guide walks through a PingCode AI example, then shows how to check which provider handled a test request.

Disclosure: This product tutorial promotes PingCode AI and was written with AI assistance using its public documentation. The screenshots are documentation examples, not evidence of a live test. No API request was made for this article.

1. Choose the client before adding a provider

Install CC Switch and obtain an active PingCode AI key from its key-management page. Keep the complete key out of screenshots, chat, and version control. Before switching, record your existing provider and keep a way to restore your previous settings.

In CC Switch, select Claude Code in the sidebar, then choose Add Provider and the custom configuration. Codex has its own provider list; configuring one client does not configure the other.

The PingCode AI documentation highlights Claude Code and Add Provider in CC Switch

Figure 1. Documentation example: select the client and locate Add Provider. The visible state is an example, not this article's test result.

2. Configure Claude Code

For the Claude Code custom provider, enter the PingCode AI key and use:

  • Request URL: https://api.pingcode.ai
  • Upstream format: Anthropic Messages (native)
  • Model mapping: fetch the model list and choose a model available to the account. A display name is not necessarily the model sent in the request.

A documentation example highlights the Claude request URL and native Anthropic format

Figure 2. The documentation highlights the Claude request URL; the key field is masked. This image does not establish a successful connection.

3. Configure Codex separately

Switch to Codex in CC Switch and add a custom provider. The PingCode AI CC Switch guide currently specifies:

  • Request URL: https://api.pingcode.ai/v1 — retain /v1.
  • Upstream format: Responses (native).
  • Model: fetch the model list and select an available model.

The PingCode AI documentation table lists the Codex URL, protocol, and model selection

Figure 3. The documentation's Codex parameter table specifies the /v1 URL and Responses format.

A CC Switch documentation example highlights Responses as the upstream format

Figure 4. Documentation example: select Responses (native) for Codex.

The practical distinction: Claude uses the root URL and Anthropic Messages; Codex uses the URL with /v1 and Responses. Match the key and model to the same provider rather than copying settings blindly between clients.

4. Enable the provider and verify the request

Save and enable the provider, completely restart the relevant client, and open a new session. Record the time, client, selected model, and key name. A small test can avoid exposing project content:

Reply only “Connection successful”. Do not read or modify files or run commands.

After a response, open the PingCode AI usage log and compare the time, key, and model with the test. A single interaction can generate adjacent requests, so consider the surrounding records. A response or saved configuration alone does not prove which provider handled it. Calls may incur charges; check the current pricing page and your account conditions first.

If it still uses the old provider

  1. Confirm that the intended client and provider are selected and enabled in CC Switch.
  2. Check the URL path and upstream format against the table above; verify the key is active and has access to the selected model.
  3. Restart the relevant client, run one new small test, and record its time.
  4. If the usage log has no match, clear excess filters, expand the time window, and check that the account owns the key.

These checks establish the path for the individual test, not a guarantee that every later session uses the same settings. Interface labels and available models can change; consult the current documentation when configuring your own environment.

4 views

No comments yet. Be the first to comment.