SRouter
⚡ Self-hosted AI gateway. One /v1 API for every AI provider.
File Explorer
- .gitkeep
- architecture.md
- auth.md
- conventions.md
- providers.md
- testing.md
- SKILL.md
- .gitkeep
- adapters.md
- commands.md
- conventions.md
- testing.md
- SKILL.md
- constants.md
- db.md
- executors.md
- pricing.md
- providers.md
- translator.md
- types.md
- SKILL.md
- .gitkeep
- architecture.md
- conventions.md
- playground.md
- verification.md
- SKILL.md
- ci.yml
- docker-publish.yml
- settings.json
- admin.controller.ts
- auth.controller.ts
- chat.controller.ts
- fallbacks.controller.ts
- images.controller.ts
- keys.controller.ts
- logs.controller.ts
- messages.controller.ts
- models.controller.ts
- providers.controller.ts
- quota.controller.ts
- settings.controller.ts
- tokenSaver.controller.ts
- tunnel.controller.ts
- auth.logic.ts
- chat.logic.ts
- images.logic.ts
- logs.logic.ts
- models.logic.ts
- providers.logic.ts
- quota.logic.ts
- AdminAuth.ts
- ApiKeyAuth.ts
- BodyLimit.ts
- Cors.ts
- CsrfOrigin.ts
- ModelAccess.ts
- RateLimit.ts
- Validation.ts
- admin.ts
- auth.ts
- chat.ts
- images.ts
- keys.ts
- logs.ts
- messages.ts
- models.ts
- providers.ts
- quota.ts
- settings.ts
- tunnel.ts
- adminAuth.ts
- authHandlers.ts
- cloudflareTunnel.ts
- registry.ts
- tokenRefresh.ts
- toolInterceptor.ts
- webDist.ts
- callbackUrl.ts
- response.ts
- ssrf.ts
- index.ts
- admin-auth-middleware.test.ts
- admin-auth-route.test.ts
- admin-auth-service.test.ts
- admin-auth-store.test.ts
- analytics.test.ts
- antigravity-provider.test.ts
- api-keys-allowed-models.test.ts
- api-keys-credit-db.test.ts
- api-keys-credit-route.test.ts
- api-keys-quota-credit.test.ts
- api-keys-usage-deduction.test.ts
- api-keys.test.ts
- auth-providers.test.ts
- bai-provider.test.ts
- bluesminds-provider.test.ts
- codebuddy-provider.test.ts
- cors-allowlist.test.ts
- csrf-origin-guard.test.ts
- custom-provider-uuid.test.ts
- fallbacks-cascade.test.ts
- fallbacks-db.test.ts
- fallbacks-endpoint.test.ts
- gorouter-provider.test.ts
- images-route.test.ts
- kiro-provider.test.ts
- malformed-json.test.ts
- messages.test.ts
- models-endpoint.test.ts
- neosantara-provider.test.ts
- opencode-compat.test.ts
- qoder-provider.test.ts
- quota-oauth-filter.test.ts
- rate-limit.test.ts
- request-limits.test.ts
- round-robin-endpoint.test.ts
- seekai-provider.test.ts
- settings-auth.test.ts
- setup.ts
- tabitoken-provider.test.ts
- token-refresh.test.ts
- token-saver.test.ts
- tokenrouter-provider.test.ts
- tool-interceptor.test.ts
- tunnel-auth.test.ts
- web-dist.test.ts
- .gitignore
- heroku.yml
- package.json
- README.md
- tsconfig.json
- tsup.config.ts
- srouter.js
- base.ts
- claude.ts
- index.ts
- opencode.ts
- env.ts
- init.ts
- link.ts
- migrate.ts
- run.ts
- setup.ts
- status.ts
- sync.ts
- unlink.ts
- configStore.ts
- platform.ts
- srouterClient.ts
- ui.ts
- index.ts
- index.ts
- claudeAdapter.test.ts
- cli.test.ts
- configStore.test.ts
- init.test.ts
- migrate.test.ts
- opencodeAdapter.test.ts
- platform.test.ts
- setup.ts
- srouterClient.test.ts
- package.json
- README.md
- tsconfig.json
- tsup.config.ts
- anthropic.png
- antigravity.png
- bai.svg
- bluesminds.png
- chatgpt.png
- claude.png
- cline.png
- codebuddy-cn.png
- codebuddy-intl.png
- codebuddy.png
- codex.png
- commandcode.png
- continue.png
- cursor.png
- deepseek.png
- gemini.png
- groq.png
- kiro.png
- neosantara.png
- newapi.png
- openai.png
- opencode.png
- opencode.svg
- qoder.png
- tokenrouter.png
- android-chrome-192x192.png
- apple-touch-icon.png
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- analytics.agent-icons.tsx
- analytics.breakdown-card.tsx
- analytics.header.tsx
- analytics.latency-chart.tsx
- analytics.provider-split-card.tsx
- analytics.stat-cards.tsx
- analytics.token-usage-chart.tsx
- analytics.top-agents-card.tsx
- analytics.top-models-card.tsx
- analytics.traffic-chart.tsx
- index.ts
- AdminAuthGate.tsx
- index.ts
- combo.architecture.tsx
- combo.confirm-dialog.tsx
- combo.dialog.tsx
- combo.form.tsx
- combo.header.tsx
- combo.list.tsx
- index.ts
- dashboard.gateway-topology-map.tsx
- dashboard.model-usage-overview.tsx
- dashboard.network-status.tsx
- dashboard.tunnel-modal.tsx
- dashboard.usage-by-model-table.tsx
- index.ts
- index.ts
- keys.dialog-create.tsx
- keys.dialog-credit.tsx
- keys.dialog-delete.tsx
- keys.dialog-edit.tsx
- keys.dialog-form.tsx
- keys.dialogs.tsx
- keys.form-limits.tsx
- keys.form-types.ts
- keys.modal-secret.tsx
- keys.model-selector.tsx
- keys.section.tsx
- keys.table.tsx
- keys.telemetry-card.tsx
- useKeyForm.ts
- AppSidebar.tsx
- index.ts
- Topbar.tsx
- index.ts
- logs.detail-modal.tsx
- logs.table.tsx
- index.ts
- providers.add-model-dialog.tsx
- providers.card.tsx
- providers.catalog-toolbar.tsx
- providers.catalog.tsx
- providers.connect-oauth-modal.tsx
- providers.connection-card.tsx
- providers.connection-form.tsx
- providers.custom-provider-dialog.tsx
- providers.icon.tsx
- providers.model-card.tsx
- providers.model-table.tsx
- providers.row.tsx
- index.ts
- quota.metrics-table.tsx
- quota.provider-card.tsx
- quota.summary-metrics.tsx
- quota.table-view.tsx
- quota.utils.ts
- index.ts
- settings.appearance.tsx
- settings.data.tsx
- settings.gateway.tsx
- settings.logging.tsx
- settings.security.tsx
- settings.system.tsx
- settings.ui.tsx
- index.ts
- skeletons.analytics.tsx
- skeletons.dashboard.tsx
- skeletons.keys.tsx
- skeletons.logs.tsx
- skeletons.provider-detail.tsx
- skeletons.providers.tsx
- skeletons.quota.tsx
- skeletons.settings.tsx
- index.ts
- tokenSaver.header.tsx
- tokenSaver.prompt-optimizer-card.tsx
- tokenSaver.tool-compression-card.tsx
- badge.tsx
- breadcrumb.tsx
- button.tsx
- card.tsx
- checkbox.tsx
- dialog.tsx
- empty.tsx
- input.tsx
- label.tsx
- separator.tsx
- sheet.tsx
- sidebar.tsx
- skeleton.tsx
- sonner.tsx
- switch.tsx
- table.tsx
- tooltip.tsx
- Theme.tsx
- useAnalytics.ts
- useCatalog.ts
- useCopy.ts
- useDebounce.ts
- useFallbacks.ts
- useFavorites.ts
- useKeys.ts
- useLogs.ts
- useMobile.ts
- useProvider.ts
- useQuota.ts
- useSettings.ts
- useTheme.ts
- useTokenSaver.ts
- useTunnel.ts
- useVersion.ts
- api.ts
- pkce.ts
- types.ts
- utils.ts
- $providerId.tsx
- index.tsx
- __root.tsx
- analytics.tsx
- combo.tsx
- index.tsx
- keys.tsx
- logs.tsx
- providers.tsx
- quota.tsx
- settings.tsx
- agent-detector.ts
- catalog.utils.ts
- format.ts
- model.utils.ts
- provider.utils.ts
- main.tsx
- routeTree.gen.ts
- styles.css
- components.json
- index.html
- package.json
- README.md
- tsconfig.json
- vite.config.ts
- demo-dark.gif
- demo-light.gif
- 2026-08-27-api-key-credit-system.md
- 2026-08-27-api-key-credit-system-design.md
- 2026-09-01-analytics-page-design.md
- anthropic.ts
- antigravity.ts
- bai.ts
- bluesminds.ts
- catalog.ts
- categories.ts
- codebuddy.ts
- commandcode.ts
- gorouter.ts
- index.ts
- kiro.ts
- neosantara.ts
- openai.ts
- opencode.ts
- qoder.ts
- seekai.ts
- tabitoken.ts
- tokenrouter.ts
- types.ts
- index.ts
- providers.ts
- seed.ts
- version.ts
- package.json
- tsconfig.json
- adminAuth.ts
- apiKeys.ts
- client.ts
- customModels.ts
- db.ts
- fallbacks.ts
- index.ts
- logs.ts
- OAuthSessions.ts
- providers.ts
- row-utils.ts
- settings.ts
- sqlite.ts
- tokenSaver.ts
- package.json
- tsconfig.json
- anthropic.ts
- antigravity.ts
- bai.ts
- base.ts
- bluesminds.ts
- codebuddy.ts
- codex.ts
- commandcode.ts
- gorouter.ts
- index.ts
- kiro.ts
- openai.ts
- opencode.ts
- qoder.ts
- retry.ts
- search.ts
- seekai.ts
- sse.ts
- stream-utils.ts
- tabitoken.ts
- tokenrouter.ts
- antigravity.test.ts
- bai.test.ts
- bluesminds.test.ts
- codebuddy.test.ts
- commandcode.test.ts
- gorouter.test.ts
- images.test.ts
- kiro.test.ts
- neosantara.test.ts
- qoder.test.ts
- seekai.test.ts
- tabitoken.test.ts
- tokenrouter.test.ts
- package.json
- tsconfig.json
- pricing.jsonc
- update.ts
- index.ts
- matcher.ts
- parser.ts
- pricing.ts
- types.ts
- image-modality.test.ts
- pricing.test.ts
- models.jsonc
- package.json
- tsconfig.json
- antigravity.ts
- base.ts
- claude.ts
- codebuddy.ts
- index.ts
- openai.ts
- qoder.ts
- antigravity.ts
- base.ts
- codebuddy.ts
- index.ts
- circuitBreaker.ts
- index.ts
- oauth.ts
- registry.ts
- circuitBreaker.test.ts
- codebuddy-oauth.test.ts
- registry.test.ts
- package.json
- tsconfig.json
- adapter.ts
- anthropic.ts
- antigravity.ts
- commandcode.ts
- index.ts
- responses.ts
- tokenSaver.ts
- usage.ts
- anthropic.test.ts
- antigravity.test.ts
- tokenSaver.test.ts
- usage.test.ts
- package.json
- tsconfig.json
- admin.ts
- anthropic.ts
- apiKeys.ts
- auth.ts
- chat.ts
- images.ts
- index.ts
- models.ts
- providers.ts
- settings.ts
- anthropic.ts
- auth.ts
- chat.ts
- fallbacks.ts
- images.ts
- index.ts
- logs.ts
- openai.ts
- provider.ts
- quota.ts
- schemas.ts
- tokenSaver.ts
- package.json
- tsconfig.json
- .dockerignore
- .env.example
- .gitignore
- .prettierignore
- .prettierrc
- AGENTS.md
- CONTRIBUTING.md
- DB-MIGRATION.md
- docker-compose.yml
- Dockerfile
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- Procfile
- README.md
- SECURITY.md
- TODO.md
- turbo.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Link
Example
// repository documentation
Was this content helpful?
(0 ratings)
