token_proxy
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), offers priority-based load balancing, optional OpenAI ChatβResponses format conversion, and one-click setup for Claude Code / Codex.
File Explorer
Download Latest Version (.zip)- openai.yaml
- _sections.md
- advanced-effect-event-deps.md
- advanced-event-handler-refs.md
- advanced-init-once.md
- advanced-use-latest.md
- async-api-routes.md
- async-cheap-condition-before-await.md
- async-defer-await.md
- async-dependencies.md
- async-parallel.md
- async-suspense-boundaries.md
- bundle-analyzable-paths.md
- bundle-barrel-imports.md
- bundle-conditional.md
- bundle-defer-third-party.md
- bundle-dynamic-imports.md
- bundle-preload.md
- client-event-listeners.md
- client-localstorage-schema.md
- client-passive-event-listeners.md
- client-swr-dedup.md
- js-batch-dom-css.md
- js-cache-function-results.md
- js-cache-property-access.md
- js-cache-storage.md
- js-combine-iterations.md
- js-early-exit.md
- js-flatmap-filter.md
- js-hoist-regexp.md
- js-index-maps.md
- js-length-check-first.md
- js-min-max-loop.md
- js-request-idle-callback.md
- js-set-map-lookups.md
- js-tosorted-immutable.md
- rendering-activity.md
- rendering-animate-svg-wrapper.md
- rendering-conditional-render.md
- rendering-content-visibility.md
- rendering-hoist-jsx.md
- rendering-hydration-no-flicker.md
- rendering-hydration-suppress-warning.md
- rendering-resource-hints.md
- rendering-script-defer-async.md
- rendering-svg-precision.md
- rendering-usetransition-loading.md
- rerender-defer-reads.md
- rerender-dependencies.md
- rerender-derived-state-no-effect.md
- rerender-derived-state.md
- rerender-functional-setstate.md
- rerender-lazy-state-init.md
- rerender-memo-with-default-value.md
- rerender-memo.md
- rerender-move-effect-to-event.md
- rerender-no-inline-components.md
- rerender-simple-expression-in-memo.md
- rerender-split-combined-hooks.md
- rerender-transitions.md
- rerender-use-deferred-value.md
- rerender-use-ref-transient-values.md
- server-after-nonblocking.md
- server-auth-actions.md
- server-cache-lru.md
- server-cache-react.md
- server-dedup-props.md
- server-hoist-static-io.md
- server-no-shared-module-state.md
- server-parallel-fetching.md
- server-parallel-nested-fetching.md
- server-serialization.md
- SKILL.md
- release.yml
- test.yml
- release-matrix.json
- extensions.json
- agent_identity.rs
- error.rs
- identity.rs
- lib.rs
- login.rs
- oauth.rs
- persistence.rs
- quota.rs
- store.rs
- types.rs
- Cargo.toml
- callback.rs
- lib.rs
- login.rs
- oauth.rs
- persistence.rs
- quota.rs
- sso_oidc.rs
- store.rs
- types.rs
- util.rs
- Cargo.toml
- app_proxy.rs
- database.rs
- lib.rs
- oauth_util.rs
- paths.rs
- records.rs
- Cargo.toml
- error.rs
- lib.rs
- login.rs
- oauth.rs
- persistence.rs
- quota.rs
- store.rs
- types.rs
- Cargo.toml
- lib.rs
- provider_accounts.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- mod.rs
- tests.rs
- account_upstreams.rs
- app.rs
- lib.rs
- pricing_refresh.rs
- storage_usage.rs
- Cargo.toml
- main.rs
- Cargo.toml
- hot_model_mappings.rs
- hot_model_mappings.test.rs
- io.rs
- io.test.rs
- jsonc.rs
- lib.rs
- migrate.rs
- migrate.test.rs
- mod.test.rs
- model_mapping.rs
- model_mapping.test.rs
- normalize.rs
- types.rs
- types.test.rs
- Cargo.toml
- mod.rs
- tests.rs
- mod.rs
- tests.rs
- anthropic_tools.rs
- codex_tool_types.rs
- compat_content.rs
- compat_reason.rs
- gemini_tools.rs
- lib.rs
- openai_usage.rs
- responses_error.rs
- responses_failure.rs
- responses_sequence.rs
- sse.rs
- tool_identity.rs
- xai_client_tools.rs
- xai_forbidden.rs
- Cargo.toml
- mod.rs
- tests.rs
- media.rs
- mod.rs
- request.rs
- response.rs
- tests.rs
- headers.rs
- mod.rs
- namespace.rs
- request.rs
- response.rs
- stream.rs
- tests.rs
- tool_names.rs
- mod.rs
- request.rs
- request.test.rs
- response.rs
- response.test.rs
- stream.rs
- mod.rs
- tests.rs
- claude.rs
- claude.test.rs
- inference.rs
- input.rs
- messages.rs
- mod.rs
- system.rs
- constants.rs
- endpoint.rs
- event_stream.rs
- mod.rs
- model.rs
- response.rs
- tool_parser.rs
- tools.rs
- types.rs
- utils.rs
- extract.rs
- images.rs
- input.rs
- message.rs
- mod.rs
- tests.rs
- tests_part1.rs
- tests_part2.rs
- tests_part3.rs
- tools.rs
- mod.rs
- tests.rs
- format.rs
- format.rs
- state_types.rs
- buffered.rs
- buffered.test.rs
- mod.rs
- stream.rs
- stream.test.rs
- kiro_to_anthropic_stream_blocks.rs
- kiro_to_anthropic_stream_handlers.rs
- kiro_to_anthropic_helpers.rs
- kiro_to_anthropic_stream.rs
- anthropic_to_responses.rs
- chat_to_responses.rs
- kiro_to_anthropic.rs
- kiro_to_responses.rs
- kiro_to_responses_helpers.rs
- mod.rs
- responses_to_anthropic.rs
- responses_to_chat.rs
- streaming.rs
- tests.rs
- tests_part2.rs
- token_count.rs
- upstream_read.rs
- upstream_stream.rs
- upstream_stream.test.rs
- bootstrap.rs
- dispatch.rs
- execute.rs
- fallback.rs
- inbound.rs
- mod.rs
- prepared.rs
- tests.rs
- mod.rs
- tests.rs
- mod.rs
- tests.rs
- attempt.rs
- catalog.rs
- dispatch.rs
- dispatch.test.rs
- kiro.rs
- kiro_headers.rs
- kiro_http.rs
- kiro_prepare.rs
- kiro_result.rs
- mod.rs
- prepare.rs
- request.rs
- request.test.rs
- request_body.rs
- request_body.test.rs
- request_repair.rs
- result.rs
- result.test.rs
- retry.rs
- retry.test.rs
- tests.rs
- transport.rs
- transport_error.rs
- utils.rs
- mod.rs
- tests.rs
- claude_reasoning.rs
- codex_models_manifest.rs
- codex_turn_state.rs
- cooldown_scope.rs
- gemini.rs
- http_client.rs
- inbound.rs
- log.rs
- mod.rs
- model.rs
- model_discovery.rs
- openai.rs
- path_guard.rs
- redact.rs
- request_detail.rs
- sqlite.rs
- token_rate.rs
- lib.rs
- logging.rs
- Cargo.toml
- curated-model-pricing.json
- model-pricing.json
- mod.rs
- tests.rs
- usage_backfill.rs
- mod.rs
- tests.rs
- lib.rs
- log.rs
- logs.rs
- pricing.rs
- sqlite.rs
- Cargo.toml
- 0001-xai-oauth-trusted-endpoints.md
- 0002-proxy-crate-boundaries.md
- 0003-codex-agent-identity.md
- 0004-account-as-upstream-scheduling-unit.md
- design-same-upstream-retry.md
- add-upstream.png
- core.png
- dashboard.png
- upstream.png
- en.json
- zh.json
- 3fhvg7lmyjji3
- project_id
- settings.json
- icon.png
- logo.png
- ensure-pnpm-store.mjs
- generate-updater-json.mjs
- release-guard.mjs
- release-guard.test.mjs
- versioning.mjs
- data.json
- alert-dialog.tsx
- alert.tsx
- avatar.tsx
- badge.tsx
- breadcrumb.tsx
- button.tsx
- card.tsx
- chart.tsx
- checkbox.tsx
- dialog.tsx
- drawer.tsx
- dropdown-menu.tsx
- input.tsx
- label.tsx
- password-input.tsx
- scroll-area.tsx
- select.test.tsx
- select.tsx
- separator.tsx
- sheet.tsx
- sidebar.tsx
- skeleton.tsx
- sonner.tsx
- switch.tsx
- table.tsx
- tabs.tsx
- toggle-group.tsx
- toggle.tsx
- tooltip.tsx
- LanguageObserver.tsx
- LanguageSwitcher.tsx
- nav-documents.tsx
- nav-main.tsx
- nav-secondary.tsx
- nav-user.tsx
- ThemeSwitcher.tsx
- agent-node-page.tsx
- use-agent-node.ts
- api.ts
- types.ts
- use-codex-accounts.test.tsx
- use-codex-accounts.ts
- use-codex-login.test.tsx
- use-codex-login.ts
- use-codex-quotas.ts
- account-credential-panel.tsx
- account-date.ts
- add-account-dialog.tsx
- available-models-editor.tsx
- columns-dialog.tsx
- constants.test.ts
- constants.ts
- convert-from-map-editor.tsx
- delete-dialog.tsx
- editor-dialog-form.test.tsx
- editor-dialog-form.tsx
- editor-dialog.tsx
- editor-fields.tsx
- provider-multi-select.tsx
- table.test.tsx
- table.tsx
- types.ts
- upstream-editor-helpers.test.ts
- upstream-editor-helpers.ts
- upstreams-account-ui.test.tsx
- xai-add-account-panel.tsx
- agent-node-card.test.tsx
- agent-node-card.tsx
- auto-start-card.tsx
- client-setup-card.tsx
- client-setup-details.tsx
- client-setup-state.ts
- client-setup-ui.tsx
- config-file-card.tsx
- index.ts
- project-links-card.tsx
- proxy-core-card.test.tsx
- proxy-core-card.tsx
- proxy-service-card.tsx
- storage-usage-card.test.tsx
- storage-usage-card.tsx
- tray-token-rate-card.tsx
- types.ts
- update-card.tsx
- upstreams-card.tsx
- agents-page.tsx
- core-page.tsx
- settings-page.tsx
- upstreams-page.tsx
- AppView.test.tsx
- AppView.tsx
- config-screen-actions.ts
- config-screen-state.ts
- ConfigScreen.test.tsx
- ConfigScreen.tsx
- form.test.ts
- form.ts
- inbound-formats.test.ts
- inbound-formats.ts
- list-actions.ts
- sections.test.ts
- sections.ts
- types.ts
- chart-area-interactive.tsx
- chart-usage-ranking.test.tsx
- chart-usage-ranking.tsx
- data-table.tsx
- section-cards.test.tsx
- section-cards.tsx
- upstream-model-probes.tsx
- dashboard-page.tsx
- api.test.ts
- api.ts
- DashboardPanel.test.tsx
- DashboardPanel.tsx
- format.test.ts
- format.ts
- range.test.ts
- range.ts
- RecentRequestsTable.test.tsx
- RecentRequestsTable.tsx
- snapshot.test.tsx
- snapshot.tsx
- types.ts
- api.ts
- types.ts
- use-kiro-accounts.test.tsx
- use-kiro-accounts.ts
- use-kiro-login.test.tsx
- use-kiro-login.ts
- use-kiro-quotas.ts
- logs-page.tsx
- api.ts
- LogsPanel.test.tsx
- LogsPanel.tsx
- types.ts
- model-pricing-page.test.tsx
- model-pricing-page.tsx
- api.test.ts
- api.ts
- form.test.ts
- form.ts
- types.ts
- sonner-order.test.tsx
- UpdateNotifier.test.tsx
- UpdateNotifier.tsx
- updater.tsx
- api.ts
- types.ts
- use-xai-accounts.test.tsx
- use-xai-accounts.ts
- use-xai-login.test.tsx
- use-xai-login.ts
- use-xai-quotas.ts
- use-mobile.ts
- app-shell.tsx
- app-sidebar.test.tsx
- app-sidebar.tsx
- site-header.tsx
- error.test.ts
- error.ts
- i18n.tsx
- links.ts
- release-workflow.test.ts
- utils.ts
- agents.lazy.tsx
- core.lazy.tsx
- dashboard.lazy.tsx
- index.tsx
- logs.lazy.tsx
- pricing.lazy.tsx
- route.tsx
- settings.lazy.tsx
- upstreams.lazy.tsx
- __root.tsx
- agent-node.lazy.tsx
- index.tsx
- setup.ts
- App.css
- App.tsx
- main.tsx
- routeTree.gen.ts
- vite-env.d.ts
- default.json
- ic_launcher.xml
- ic_launcher.png
- ic_launcher_foreground.png
- ic_launcher_round.png
- ic_launcher.png
- ic_launcher_foreground.png
- ic_launcher_round.png
- ic_launcher.png
- ic_launcher_foreground.png
- ic_launcher_round.png
- ic_launcher.png
- ic_launcher_foreground.png
- ic_launcher_round.png
- ic_launcher.png
- ic_launcher_foreground.png
- ic_launcher_round.png
- ic_launcher_background.xml
- AppIcon-20x20@1x.png
- AppIcon-20x20@2x-1.png
- AppIcon-20x20@2x.png
- AppIcon-20x20@3x.png
- AppIcon-29x29@1x.png
- AppIcon-29x29@2x-1.png
- AppIcon-29x29@2x.png
- AppIcon-29x29@3x.png
- AppIcon-40x40@1x.png
- AppIcon-40x40@2x-1.png
- AppIcon-40x40@2x.png
- AppIcon-40x40@3x.png
- AppIcon-512@2x.png
- AppIcon-60x60@2x.png
- AppIcon-60x60@3x.png
- AppIcon-76x76@1x.png
- AppIcon-76x76@2x.png
- AppIcon-83.5x83.5@2x.png
- 128x128.png
- 128x128@2x.png
- 32x32.png
- 64x64.png
- icon-state.dev.png
- icon-state.png
- icon.icns
- icon.ico
- icon.png
- Square107x107Logo.png
- Square142x142Logo.png
- Square150x150Logo.png
- Square284x284Logo.png
- Square30x30Logo.png
- Square310x310Logo.png
- Square44x44Logo.png
- Square71x71Logo.png
- Square89x89Logo.png
- StoreLogo.png
- mod.rs
- agent_node.rs
- codex.rs
- config.rs
- dashboard.rs
- kiro.rs
- logs.rs
- mod.rs
- pricing.rs
- providers.rs
- proxy.rs
- xai.rs
- mod.rs
- mod.rs
- agent_node_service.rs
- app_proxy.rs
- client_config.rs
- lib.rs
- logging.rs
- main.rs
- tray.rs
- window.rs
- .gitignore
- build.rs
- Cargo.toml
- tauri.conf.dev.json
- tauri.conf.json
- .gitignore
- AGENTS.md
- Cargo.lock
- Cargo.toml
- CLAUDE.md
- components.json
- CONTEXT.md
- design-qa.md
- eslint.config.js
- index.html
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- README.md
- README.zh-CN.md
- tsconfig.json
- tsconfig.node.json
- tsr.config.json
- vite.config.ts
- vitest.config.ts
// repository documentation
Was this content helpful?
(0 ratings)
