678APIdocs
https://www.678api.com/v1
CC Switch

Quickly import 678API into CC Switch

678API integrates with CC Switch. Select a target app and model in the console to import a ready-to-use profile without copying endpoints or keys manually.

Supported target apps

Quick import supports Claude, Codex, and Gemini. Install and open CC Switch before starting.

Import in five steps

Create a key and select CC Switch

Open API Keys in the 678API console and create a key. Click … beside the key, then select CC Switch from the menu.

Open the CC Switch action from the 678API API Keys page
Select CC Switch from the API key menu
Choose the app, profile name, and primary model

Select Claude, Codex, or Gemini, choose a profile name and primary model, then click Open CC Switch to finish the import.

Choose a CC Switch app, profile name, and primary model
Choose the target app and model, then open CC Switch
Review and import the profile

No changes are needed after the profile opens in CC Switch. Verify the app type, provider name, API endpoint, key, and model, then click Import.

Review the 678API provider profile before importing it into CC Switch
Review the profile and click Import
Confirm the profile is enabled

After importing, confirm that the new 678API profile is marked Active in the CC Switch provider list, then reopen Codex.

The 678API profile is active in CC Switch
Confirm that the imported 678API profile is active
Restart Codex and start using it

Restart your terminal or the Codex desktop app. Confirm that the selected model appears at the top, then start using Codex.

Codex running with the 678API model imported through CC Switch
Confirm that the model is active after restarting Codex

Manual setup (optional)

If the browser cannot open CC Switch, create the profile manually with these values.

Profile Nameapi678
Base URLhttps://www.678api.com
Auth TokenYOUR_API_KEY
ModelClaude-compatible model from console

Environment variables

text
export ANTHROPIC_BASE_URL="https://www.678api.com"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"

If your setup expects OpenAI Compatible variables, use:

text
export OPENAI_BASE_URL="https://www.678api.com/v1"
export OPENAI_API_KEY="YOUR_API_KEY"

Common issues

SymptomLikely causeFix
Still using old providerOld terminal environment is still activeRestart terminal and client; inspect OPENAI and ANTHROPIC environment variables.
UnauthorizedWrong or disabled API keyCopy the key again or create a dedicated key for CC Switch.
Model not foundWrong model name or unavailable groupCopy the exact model name from the console.
TimeoutNetwork, proxy, or long context issueTest with a short prompt, check proxy settings, then retry.
Request fails immediatelyInsufficient credits or subscription quotaCheck wallet, subscription, and usage logs.
© 2026 678API · AI API Gateway Documentation