Menu

Configure Codex with CC-Switch

Official Website: https://ccswitch.io/zh/

Step 1: Download CC-Switch, then select OpenAI on the page and click the + button in the top-right corner.

 

 

Step 2: Select Custom Provider, then scroll down to configure the API parameters.

 

 

Step 3: Record your configuration parameters and custom name.

 

Enter the following information:
  • Your API Key
  • OpenAI-compatible Base URL: https://api.benpay.ai/openai/v1
  • Your required Model ID
Fill in each field and click 
 
Add.
 

Step 4: After adding the configuration, click Enable on the main page.

 

 

Step 5: Restart the Codex application. When it displays "Signed in with API Key", it can be used normally.

 

Afterwards, your Agent token usage can be viewed in BenPay API Usage Details.
 
Share this Article
Previous
Quick API Calls from Your Computer Terminal
Next
Configure Claude with CC-Switch
Last modified: 2026-07-13