Skip to content

feat: add CC Switch local proxy provider - #412

Open
Inference1 wants to merge 1 commit into
andrewyng:mainfrom
Inference1:feat/cc-switch-provider
Open

feat: add CC Switch local proxy provider#412
Inference1 wants to merge 1 commit into
andrewyng:mainfrom
Inference1:feat/cc-switch-provider

Conversation

@Inference1

@Inference1 Inference1 commented Aug 2, 2026

Copy link
Copy Markdown

Closes #403

Summary

  • add a first-class CC Switch local OpenAI-compatible proxy provider
  • keep the proxy token optional and never fall back to an OpenAI credential
  • normalize a proxy root URL to its required /v1 endpoint and reject an explicitly cleared proxy URL
  • use conservative capabilities because CC Switch can swap or fail over upstreams mid-run
  • add setup documentation and provider-form coverage

Verification

  • PYTHONPATH=. .venv311/bin/python -m pytest tests/test_providers.py tests/test_provider_router.py tests/test_provider_verify.py — 84 passed
  • npm test -- --run src/providers/ProviderSetup.test.tsx — 4 passed
  • npm run build — passed
  • route-level regression coverage verifies ccswitch:<model-id> selects CC Switch and sends the proxy the bare model ID

Screenshots

Active Kimi provider in CC Switch

Active Kimi provider

CC Switch local routing running

Local routing running

The prior OpenWorker reply screenshot has been removed from this PR description because it displayed a bare kimi-k2.7-code model and therefore did not prove the required ccswitch: route. The automated route-level regression test now verifies that path explicitly.

@Inference1
Inference1 force-pushed the feat/cc-switch-provider branch from ccee3c2 to f69b8df Compare August 3, 2026 02:19
@Inference1

Copy link
Copy Markdown
Author

@rohitprasad15 Would you please review this pr

@Inference1

Copy link
Copy Markdown
Author

@psssnikhil @fahadsiddiqui Would you please review this pr

@Inference1
Inference1 force-pushed the feat/cc-switch-provider branch from f69b8df to 8cec15b Compare August 3, 2026 10:02
@Inference1
Inference1 force-pushed the feat/cc-switch-provider branch from 8cec15b to db76fe1 Compare August 3, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: integrate with CC Switch (provider switchboard / local routing proxy)

1 participant