Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
940c290
feat(providers): add CodeBuddy international (codebuddy-intl, cbai) p…
Junior-HJ Oct 7, 2026
562f437
fix(codebuddy-intl): align platform, unwrap tencent error and curate …
Junior-HJ Oct 7, 2026
f870eab
fix(codebuddy-intl): prepend neutral system prompt when missing
Junior-HJ Oct 7, 2026
2d518ea
fix(executors): make registerLazyExecutor HMR-safe and update goldens
Junior-HJ Oct 7, 2026
26ef89c
refactor(codebuddy): fully split cn and intl modules with shared helpers
Junior-HJ Oct 7, 2026
a351ad3
chore: merge origin/release/v3.8.52 into feat/codebuddy-intl-provider
Junior-HJ Oct 7, 2026
9db865c
docs: sync db migration counts (193 -> 199) after merge
Junior-HJ Oct 7, 2026
b71519f
fix(imageRegistry): cut server DB import to avoid client bundle leak
Junior-HJ Oct 7, 2026
ba011cb
chore(codebuddy): clean up PR-A/B/D files from feature branch to keep…
Junior-HJ Oct 8, 2026
424f006
fix(usage): declare cbai alias in USAGE_FETCHER_PROVIDERS and USAGE_S…
Junior-HJ Oct 8, 2026
754cec1
Merge remote-tracking branch 'origin/release/v3.8.52' into feat/codeb…
Junior-HJ Oct 8, 2026
f7fa1b2
docs: sync provider count 359->360 after base merge (Y-API) and execu…
Junior-HJ Oct 8, 2026
aa09c45
Merge branch 'origin/release/v3.8.52' into feat/codebuddy-intl-provider
Junior-HJ Oct 8, 2026
d373962
Merge branch 'origin/release/v3.8.52' into feat/codebuddy-intl-provider
Junior-HJ Oct 8, 2026
c248287
Merge remote-tracking branch 'origin/release/v3.8.52' into rework/pr1…
diegosouzapw Oct 10, 2026
3c2011b
docs: restore provider-count wording and sync total to 372 after base…
diegosouzapw Oct 10, 2026
0ad5991
fix(oauth): type CodeBuddy device-auth responses instead of explicit any
diegosouzapw Oct 10, 2026
9431b49
test(snapshots): regenerate executor-map and translate-path goldens a…
diegosouzapw Oct 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Repository map and Reference Documentation sections below.

## Project at a Glance

**OmniRoute** — unified AI proxy/router. One endpoint, 370 LLM providers, auto-fallback.
**OmniRoute** — unified AI proxy/router. One endpoint, 372 LLM providers, auto-fallback.

| Layer | Location | Purpose |
| ------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 🚀 OmniRoute — The Free AI Gateway

<img src="./docs/diagrams/readme-hero.svg" width="100%" alt="OmniRoute — Never stop coding. Every AI tool → 370 providers — 150+ free — through one endpoint. Claude Code, Codex, Cursor, Cline, Copilot & Antigravity into FREE Claude / GPT / Gemini with auto-fallback. RTK + Caveman stacked compression saves 15–95% tokens (~89% avg) — never hit limits. 370 AI providers · 150+ free tiers · ~1.62B free tokens/mo · 19 routing strategies · $0 to start."/>
<img src="./docs/diagrams/readme-hero.svg" width="100%" alt="OmniRoute — Never stop coding. Every AI tool → 372 providers — 150+ free — through one endpoint. Claude Code, Codex, Cursor, Cline, Copilot & Antigravity into FREE Claude / GPT / Gemini with auto-fallback. RTK + Caveman stacked compression saves 15–95% tokens (~89% avg) — never hit limits. 372 AI providers · 150+ free tiers · ~1.62B free tokens/mo · 19 routing strategies · $0 to start."/>

</div>

Expand Down Expand Up @@ -237,7 +237,7 @@ curl http://localhost:20128/v1/chat/completions \

</div>

<img src="./docs/diagrams/promise-pillars.svg" width="100%" alt="The Promise — One endpoint and 370 providers. Automatic fallback keeps routing while another healthy target is available. Six pillars: resilient fallback across 370 providers · up to 95% token savings on eligible workloads · $0 to start with 150+ free tiers and 54 recurring/keyless free-forever providers · 36 CLI/agent integrations through one config · OpenAI, Claude, Gemini and Responses API compatibility at /v1 · production controls including circuit breakers, TLS stealth, MCP 110 tools, A2A, memory, guardrails, evals and 39,000+ static test declarations across 5,100+ tracked test files."/>
<img src="./docs/diagrams/promise-pillars.svg" width="100%" alt="The Promise — One endpoint and 372 providers. Automatic fallback keeps routing while another healthy target is available. Six pillars: resilient fallback across 372 providers · up to 95% token savings on eligible workloads · $0 to start with 150+ free tiers and 54 recurring/keyless free-forever providers · 36 CLI/agent integrations through one config · OpenAI, Claude, Gemini and Responses API compatibility at /v1 · production controls including circuit breakers, TLS stealth, MCP 110 tools, A2A, memory, guardrails, evals and 39,000+ static test declarations across 5,100+ tracked test files."/>

<br/>
<br/>
Expand Down Expand Up @@ -492,7 +492,7 @@ All **19** strategies — mix & match per combo step:

</div>

<img src="./docs/diagrams/comparison-table.svg" width="100%" alt="What sets OmniRoute apart — a dated feature snapshot vs 9router, OpenRouter, CLIProxyAPI and LiteLLM across 13 capabilities. OmniRoute: 370 providers, 150+ free tiers built in, 19 routing strategies, 12-engine token compression, built-in MCP server with 110 tools, A2A agent protocol, persistent memory, guardrails, cloud agents, TLS fingerprint stealth, Desktop/Termux/PWA and 42 i18n UI locales. OmniRoute is MIT-licensed and self-hostable. Competitor capabilities and counts may change; see the linked methodology."/>
<img src="./docs/diagrams/comparison-table.svg" width="100%" alt="What sets OmniRoute apart — a dated feature snapshot vs 9router, OpenRouter, CLIProxyAPI and LiteLLM across 13 capabilities. OmniRoute: 372 providers, 150+ free tiers built in, 19 routing strategies, 12-engine token compression, built-in MCP server with 110 tools, A2A agent protocol, persistent memory, guardrails, cloud agents, TLS fingerprint stealth, Desktop/Termux/PWA and 42 i18n UI locales. OmniRoute is MIT-licensed and self-hostable. Competitor capabilities and counts may change; see the linked methodology."/>

<sub>📊 Full methodology &amp; per-feature detail vs 9router, OpenRouter, CLIProxyAPI &amp; LiteLLM → [`docs/comparison/OMNIROUTE_VS_ALTERNATIVES.md`](docs/comparison/OMNIROUTE_VS_ALTERNATIVES.md)</sub>

Expand Down
4 changes: 4 additions & 0 deletions changelog.d/features/15173-codebuddy-intl-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CodeBuddy International (codebuddy-intl) Provider

Added the CodeBuddy International (`codebuddy.ai`) provider under the `cbai` alias (#15173).
Parametrizes the shared CodeBuddy device-auth flow, executor, token refresh, and quota fetcher by realm.
13 changes: 0 additions & 13 deletions config/quality/eslint-suppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,6 @@
"count": 3
}
},
"open-sse/services/usage/codebuddy-cn.ts": {
"@typescript-eslint/no-explicit-any": {
"count": 2
},
"@typescript-eslint/no-unused-vars": {
"count": 1
}
},
"open-sse/services/usage/github.ts": {
"@typescript-eslint/no-unused-vars": {
"count": 1
Expand Down Expand Up @@ -1462,11 +1454,6 @@
"count": 1
}
},
"src/lib/oauth/providers/codebuddy-cn.ts": {
"@typescript-eslint/no-unused-vars": {
"count": 1
}
},
"src/lib/oauth/providers/codex.ts": {
"@typescript-eslint/no-unused-vars": {
"count": 1
Expand Down
9 changes: 5 additions & 4 deletions docs/architecture/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ It provides a single OpenAI-compatible endpoint (`/v1/*`) and routes traffic acr

Core capabilities:

- OpenAI-compatible API surface for CLI/tools (355 providers, 108 executors)
- OpenAI-compatible API surface for CLI/tools (372 providers, 148 executors)
- Request/response translation across provider formats
- Model combo fallback (multi-model sequence)
- Structured combo steps (`provider + model + connection`) with runtime ordering by `compositeTiers`
- Account-level fallback (multi-account per provider)
- Quota preflight and quota-aware P2C account selection in the main chat path
- OAuth + API-key provider connection management (22 OAuth provider modules)
- OAuth + API-key provider connection management (27 OAuth provider modules)
- Embedding generation via `/v1/embeddings` (18 providers)
- Image generation via `/v1/images/generations` (10+ providers, 20+ models)
- Audio transcription via `/v1/audio/transcriptions` (18 providers)
Expand Down Expand Up @@ -321,10 +321,11 @@ Domain layer modules:
- Eval runner: `src/lib/evals/evalRunner.ts`
- Domain state persistence: `src/lib/db/domainState.ts` — SQLite CRUD for fallback chains, budgets, cost history, lockout state, circuit breakers

OAuth provider modules (22 individual files under `src/lib/oauth/providers/`):
OAuth provider modules (27 individual files under `src/lib/oauth/providers/`):

- Registry index: `src/lib/oauth/providers/index.ts`
- Individual providers: `agy.ts`, `antigravity.ts`, `claude.ts`, `cline.ts`, `codebuddy-cn.ts`, `codex.ts`, `cursor.ts`, `devin-desktop.ts`, `ghe-copilot.ts`, `github.ts`, `gitlab-duo.ts`, `grok-cli-oauth.ts`, `grok-cli.ts`, `kilocode.ts`, `kimi-coding.ts`, `kiro.ts`, `openference.ts`, `qoder.ts`, `trae.ts`, `xai-oauth.ts`, `zed-hosted.ts`, `zed.ts`
- Individual providers: `agy.ts`, `antigravity.ts`, `claude.ts`, `cline.ts`, `codebuddy-cn.ts`, `codebuddy-intl.ts`, `codex.ts`, `cursor.ts`, `devin-desktop.ts`, `ghe-copilot.ts`, `github.ts`, `gitlab-duo.ts`, `grok-cli-oauth.ts`, `grok-cli.ts`, `kilocode.ts`, `kimi-coding.ts`, `kiro.ts`, `muse-code.ts`, `openference.ts`, `qoder.ts`, `trae.ts`, `workbuddy.ts`, `xai-oauth.ts`, `zed-hosted.ts`, `zed.ts`
- Shared helpers: `codebuddyDeviceAuth.ts` (CodeBuddy CN/intl device flow), `museCodeDeviceResponse.ts`
- Thin wrapper: `src/lib/oauth/providers.ts` — re-exports from individual modules

## 5) Embedded Services (v3.8.4)
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/CODEBASE_DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ open-sse/

### 4.2 `open-sse/executors/`

108 provider executors, each extending `BaseExecutor` (`base.ts`):
148 provider executors, each extending `BaseExecutor` (`base.ts`):

`antigravity`, `azure-openai`, `blackbox-web`, `cliproxyapi`,
`chatgpt-web-codex`, `cloudflare-ai`, `codex`, `commandCode`, `cursor`, `default`, `devin-cli`,
Expand Down
2 changes: 1 addition & 1 deletion docs/diagrams/cli-terminal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/diagrams/comparison-table.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/diagrams/promise-pillars.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/diagrams/readme-hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading