tuxevil-rotator 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +20 -6
  3. package/package.json +1 -1
  4. package/src/account-store.ts +37 -5
  5. package/src/cli.ts +24 -3
  6. package/src/compat/model-specs.ts +1 -0
  7. package/src/compat.ts +540 -24
  8. package/src/config-normalize.ts +73 -30
  9. package/src/dashboard.ts +43 -42
  10. package/src/index.ts +1 -0
  11. package/src/onboarding.ts +349 -21
  12. package/src/providers/adapter.ts +18 -0
  13. package/src/providers/credential-helpers.ts +64 -0
  14. package/src/providers/google-antigravity/index.ts +9 -0
  15. package/src/providers/google-antigravity/quota.ts +2 -1
  16. package/src/providers/google-antigravity/translators.ts +83 -24
  17. package/src/providers/ollama/index.ts +8 -0
  18. package/src/providers/ollama/quota.ts +2 -1
  19. package/src/providers/openai-codex/catalog.ts +117 -0
  20. package/src/providers/openai-codex/compat.ts +556 -0
  21. package/src/providers/openai-codex/credentials.ts +82 -0
  22. package/src/providers/openai-codex/forward.ts +240 -0
  23. package/src/providers/openai-codex/index.ts +153 -0
  24. package/src/providers/openai-codex/login.ts +172 -0
  25. package/src/providers/openai-codex/oauth.ts +359 -0
  26. package/src/providers/openai-codex/quota.ts +231 -0
  27. package/src/providers/opencode-zen/catalog.ts +37 -0
  28. package/src/providers/opencode-zen/credentials.ts +31 -0
  29. package/src/providers/opencode-zen/forward.ts +214 -0
  30. package/src/providers/opencode-zen/index.ts +73 -0
  31. package/src/providers/opencode-zen/login.ts +81 -0
  32. package/src/providers/opencode-zen/quota.ts +67 -0
  33. package/src/providers/registry.ts +24 -5
  34. package/src/proxy.ts +75 -27
  35. package/src/rate-limit-parser.ts +2 -1
  36. package/src/rotator.ts +259 -48
  37. package/src/spend-logger.ts +2 -0
  38. package/src/static/dashboard-keys.js +152 -2
  39. package/src/static/dashboard.js +161 -37
  40. package/src/types.ts +83 -1
  41. package/src/validators.ts +11 -2
  42. package/tools/telemetry-receiver/receiver.js +14 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.0] - 2026-08-14
4
+
5
+ ### Added
6
+ - **Gemini 3.7 Flash Model Support**: Full support for Google's Gemini 3.7 Flash models (`gemini-3.7-flash`, `gemini-3.7-flash-tiered`, `gemini-3.7-flash-high`, `gemini-3.7-flash-medium`, `gemini-3.7-flash-low`). Includes thinking level and reasoning effort mapping, token cost tracking, dashboard visualization, and telemetry support ([#21](https://github.com/tuxevil/tuxevil-rotator/pull/21) by [@CyR1en](https://github.com/CyR1en)).
7
+ - **OpenCode Zen Provider Support**: Integrated `opencode-zen` as a supported free-tier provider for `deepseek-v4-flash-free`, `nemotron-3.5-lightning-free`, `nemotron-3-ultra-free`, `mimo-v2.5-free`, and `hy3-free`. Includes API key validation via `opencode.ai/zen/v1`, quota polling, streaming and non-streaming chat completions, market pricing to calculate USD savings, and an OpenCode Zen tab in `/login` and `/login-cli`.
8
+ - **429 Rate-Limit Retry Headers**: Convey `retryAfterMs` and `retry_after_seconds` in rate-limited error responses to allow clients to respect upstream cooldowns accurately.
9
+
10
+ ### Fixed
11
+ - **Streaming Tool Call Assembly**: Statefully preserve tool call names and IDs across SSE deltas, preventing split chunks from dropping function metadata in multi-turn tool calling.
12
+ - **OpenCode Zen Account Rotation & Rate Limits**: Scope OpenCode Zen rate limits per-model to prevent single-model 429 errors from locking out the entire provider pool, and ensure proper account rotation on upstream 429s.
13
+ - **OpenCode Zen Content-Type & Streaming**: Strip duplicate content-type headers, fix Accept header negotiation, and fix token refresh and format handling for `deepseek-v4-flash-free`.
14
+ - **Dashboard Generate Key Modal**: Dynamically populate the Virtual Key generation model grid from `/api/models` to include only active providers and registered models.
15
+ - **Dashboard UI & Cache Control**: Restored missing card header closing `<div>` tag and added static asset cache control headers.
16
+ - **Test Isolation**: Isolated `TUXEVIL_ROTATOR_DIR` in `db-store` tests to prevent test suites from modifying local user configurations.
17
+
18
+ ### Changed
19
+ - **Provider Ordering**: Standardized provider order precedence across quota pools, credentials, and UI displays (`google-antigravity` -> `ollama` -> `opencode-zen` -> `openai-codex`).
20
+ - **Catalog Cleanup**: Removed deprecated `ling-3.0-tiny-free` and `laguna-s-2.1-free` models from the OpenCode Zen catalog to avoid false-positive account flag warnings.
21
+ - **Provider Architecture**: Decoupled provider eligibility checks and routing logic from rotator core into modular provider adapters.
22
+
23
+ ## [3.1.0] - 2026-08-12
24
+
25
+ ### Added
26
+ - **OpenAI Codex OAuth provider**: Support for OpenAI Codex authentication and accounts (`gpt-5.6-codex`, `gpt-5.6-codex-mini`, `gpt-5.6-codex-max`, `codex-sol-4-6`).
27
+ - **Web & CLI OAuth login**: Integrated Codex provider tab in `/login` and `/login-cli` for PKCE OAuth authentication.
28
+ - **Codex pricing & dashboard visualizer**: Added cost tracking and yellow color spectrum mapping for Codex GPT-5.6 models in token usage charts.
29
+ - **Tool calling translation & compat**: Tool calls and chat completions automatically translate between OpenAI Codex and proxy formats.
30
+
31
+ ### Fixed
32
+ - **Provider catalog isolation**: Prevented non-Codex and Google models from polluting Codex discovery routing.
33
+ - **Isolated provider kickstarts**: Provider kickstart pools operate independently without triggering unneeded OAuth refresh flows.
34
+ - **Codex usage & spend tracking**: Fixed recording of usage and spend for Codex compat requests.
35
+ - **Gemini turn bug fix**: Prevented model-ending compat requests for Gemini models.
36
+
37
+ ### Changed
38
+ - **Dashboard account cards**: Removed the legacy `FLASH` / `PRO` / `CLAUDE` model badges that previously indicated which model each account was last active for. The tier selector (`UNKNOWN` / `FREE` / `PLUS` / `PRO` / `ULTRA`) is unchanged.
39
+
3
40
  ## [3.0.0] - 2026-08-11
4
41
 
5
42
  ### Changed
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License](https://img.shields.io/github/license/tuxevil/tuxevil-rotator?logo=opensourceinitiative)](LICENSE)
6
6
  [![CI](https://img.shields.io/github/actions/workflow/status/tuxevil/tuxevil-rotator/ci.yml?logo=github&label=CI)](https://github.com/tuxevil/tuxevil-rotator/actions)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
8
- [![Docker Image](https://img.shields.io/badge/ghcr.io-tuxevil--tuxevil--rotator-blue?logo=docker)](https://github.com/tuxevil/tuxevil-rotator/pkgs/container/tuxevil-rotator)
8
+ [![Docker Image](https://img.shields.io/badge/ghcr.io-tuxevil--rotator-blue?logo=docker)](https://github.com/tuxevil/tuxevil-rotator/pkgs/container/tuxevil-rotator)
9
9
  [![Stars](https://img.shields.io/github/stars/tuxevil/tuxevil-rotator?style=social)](https://github.com/tuxevil/tuxevil-rotator/stargazers)
10
10
 
11
11
  [![Installations](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftelemetry.tuxevil.com%2Fv1%2Fpublic-stats&query=%24.installsFormatted&label=installations&color=6366f1)](https://telemetry.tuxevil.com/v1/public-stats)
@@ -24,9 +24,11 @@
24
24
 
25
25
  **Production-ready OpenAI-compatible gateway for multiple free-tier LLM providers.**
26
26
 
27
+ > **Container migration notice:** `ghcr.io/tuxevil/pi-antigravity-rotator` is deprecated. Use [`ghcr.io/tuxevil/tuxevil-rotator:latest`](https://github.com/tuxevil/tuxevil-rotator/pkgs/container/tuxevil-rotator) for new deployments. The legacy image remains available as a frozen compatibility reference; see the [migration guide](docs/migrating-from-pi-antigravity-rotator.md).
28
+
27
29
  Multi-account load balancing, per-model quota routing, account health scoring, access control with Virtual Keys, and cost auditing — via a single local endpoint that any agent can use. Even with a single account.
28
30
 
29
- Originally built as a multi-account rotator for Google Antigravity. It now generalizes that rotation layer across any free-tier LLM provider with per-account credentials: today Google Antigravity and Ollama Cloud, designed so the next free-tier provider slots in without forking the engine.
31
+ Originally built as a multi-account rotator for Google Antigravity. It now generalizes that rotation layer across free-tier LLM providers with per-account credentials: Google Antigravity, Ollama Cloud, OpenAI Codex, and OpenCode Zen, designed so new providers slot in without modifying core engine logic.
30
32
 
31
33
  > **⚠️ WARNING:** Using this proxy may put connected accounts at risk of Terms of Service enforcement, including restriction, suspension, or permanent bans. Use at your own risk.
32
34
 
@@ -49,6 +51,14 @@ Originally built as a multi-account rotator for Google Antigravity. It now gener
49
51
 
50
52
  ---
51
53
 
54
+ ## v3.2 Highlights
55
+
56
+ - **Gemini 3.7 Flash Support**: Full support for Google's Gemini 3.7 Flash models (`gemini-3.7-flash`, `gemini-3.7-flash-tiered`, `gemini-3.7-flash-high`, `gemini-3.7-flash-medium`, `gemini-3.7-flash-low`) with reasoning effort / thinking level translation, pricing, dashboard visualization, and telemetry.
57
+ - **OpenCode Zen Provider**: Added `opencode-zen` provider support (`deepseek-v4-flash-free`, `nemotron-3.5-lightning-free`, `nemotron-3-ultra-free`, `mimo-v2.5-free`, `hy3-free`) with static API key validation, onboarding UI tabs in `/login` and `/login-cli`, real-time quota tracking, and market-based cost savings estimates.
58
+ - **Streaming Tool Call Reliability**: Stateful preservation of tool call names and IDs across fragmented SSE chunks in multi-turn tool calling sessions.
59
+ - **Standardized Rate-Limit Retries**: Error responses for 429 now provide `retryAfterMs` and `retry_after_seconds` headers and payload data for fine-grained cooldown handling.
60
+ - **Provider Precedence Order**: Standardized provider order across quota pools, credentials, and UI displays (`google-antigravity` -> `ollama` -> `opencode-zen` -> `openai-codex`).
61
+
52
62
  ## v3.0 Highlights
53
63
 
54
64
  - **Parent-Account Credential Model**: Each account (email) is now the parent entity and may hold per-provider credentials — a single human with both a Google Antigravity OAuth token and an Ollama Cloud API key lives in one account row. Login (`login --provider <id>`) and the legacy importer merge credentials onto existing accounts instead of duplicating by email.
@@ -58,8 +68,8 @@ Originally built as a multi-account rotator for Google Antigravity. It now gener
58
68
 
59
69
  ## v2.7 Highlights
60
70
 
61
- - **Multi-Provider Support**: The rotator now routes through two provider families. Google Antigravity accounts (OAuth, default) and Ollama Cloud accounts (static API keys, `login --provider ollama`) coexist in one account store, with per-provider model catalog resolution.
62
- - **Ollama Cloud Compatibility (B2)**: `POST /v1/chat/completions`, `/v1/responses`, and `/v1/messages` translate requests to Ollama's native `api/chat` NDJSON protocol for Ollama models; streaming deltas (including `tool_calls` and `usage`) are converted to SSE in both OpenAI and Anthropic formats. `GET /v1/models` lists the Ollama catalog (`owned_by: "ollama"`), and the native `POST /api/chat` endpoint routes Ollama models to Ollama accounts.
71
+ - **Multi-Provider Support**: The rotator routes through Google Antigravity, Ollama Cloud, and an isolated OpenAI Codex OAuth pool, with per-provider model catalog resolution and no automatic cross-provider fallback.
72
+ - **Provider Compatibility**: Ollama models use native `api/chat` NDJSON, while Codex models use native Responses HTTP/SSE with explicit Chat Completions conversion. `GET /v1/models` marks provider ownership for both catalogs.
63
73
  - **Legacy Account Migration**: On startup, Ollama Cloud accounts from `~/.ollama-rotator/accounts.json` (the predecessor product, overridable via `OLLAMA_ROTATOR_DIR`) are imported automatically and merged onto the matching email — `provider: "ollama"`, preserving `label`/`tier`/`type`. Re-import is idempotent.
64
74
  - **Flat-shape compatibility**: Existing configs with the legacy flat field layout (`apiKey`/`refreshToken` at the top level) are still accepted and normalized on load to the parent-account credential model.
65
75
 
@@ -142,6 +152,8 @@ Existing `enc:v1` records remain decryptable during migration; newly written rec
142
152
  npm install -g tuxevil-rotator
143
153
  tuxevil-rotator login # Google Antigravity (default)
144
154
  tuxevil-rotator login --provider ollama # Ollama Cloud (static API key)
155
+ tuxevil-rotator login --provider openai-codex # ChatGPT OAuth (isolated Codex pool)
156
+ tuxevil-rotator login --provider opencode-zen # OpenCode Zen (static API key)
145
157
  tuxevil-rotator start
146
158
  ```
147
159
 
@@ -172,6 +184,8 @@ cd tuxevil-rotator
172
184
  npm install
173
185
  npm run login # Google Antigravity
174
186
  npm run login -- --provider ollama # Ollama Cloud
187
+ npm run login -- --provider openai-codex # OpenAI Codex OAuth
188
+ npm run login -- --provider opencode-zen # OpenCode Zen
175
189
  npm start
176
190
  ```
177
191
 
@@ -326,8 +340,8 @@ To donate an authorized account for testing across supported providers, see [CON
326
340
  Thanks to these amazing people who have contributed to the project:
327
341
 
328
342
  - **[@Codder-hermes](https://github.com/Codder-hermes)** — Fixed Claude Code tool-schema requests by stripping the unsupported JSON Schema `propertyNames` keyword for Gemini and Claude-via-Gemini routes, with regression coverage for both compatibility paths. ([PR #19](https://github.com/tuxevil/tuxevil-rotator/pull/19))
329
- - **[@CyR1en](https://github.com/CyR1en)** (Ethan Bacurio) — Added the Gemini 3.6 Flash model family, shared quota-pool routing, pricing, dashboard support, and regression coverage. ([PR #18](https://github.com/tuxevil/tuxevil-rotator/pull/18))
330
- - **[@josenicomaia](https://github.com/josenicomaia)** (José Nicodemos Maia Neto) — Modularized the compatibility layer architecture, added multimodal tool response support, and fixed streaming pass-through for tool executions. ([PR #8](https://github.com/tuxevil/tuxevil-rotator/pull/8), [PR #9](https://github.com/tuxevil/tuxevil-rotator/pull/9), [PR #11](https://github.com/tuxevil/tuxevil-rotator/pull/11))
343
+ - **[@CyR1en](https://github.com/CyR1en)** (Ethan Bacurio) — Added Gemini 3.6 Flash and Gemini 3.7 Flash model families, shared quota-pool routing, pricing, dashboard support, and regression coverage. ([PR #18](https://github.com/tuxevil/tuxevil-rotator/pull/18), [PR #21](https://github.com/tuxevil/tuxevil-rotator/pull/21))
344
+ - **[@josenicomaia](https://github.com/josenicomaia)** (José Nicodemos Maia Neto) — Modularized the compatibility layer architecture, added multimodal tool response support, fixed streaming pass-through for tool executions, and added PostgreSQL storage and weighted pool quota forecasting. ([PR #8](https://github.com/tuxevil/tuxevil-rotator/pull/8), [PR #9](https://github.com/tuxevil/tuxevil-rotator/pull/9), [PR #11](https://github.com/tuxevil/tuxevil-rotator/pull/11), [PR #13](https://github.com/tuxevil/tuxevil-rotator/pull/13), [PR #14](https://github.com/tuxevil/tuxevil-rotator/pull/14))
331
345
  - **[@yashyadav711](https://github.com/yashyadav711)** (Yash) — Fixed Draft-2020-12 inline JSON-Schema union type mapping for Gemini tools support. ([PR #10](https://github.com/tuxevil/tuxevil-rotator/pull/10))
332
346
  - **[@javargasm](https://github.com/javargasm)** (Jeisson Alexander Vargas Marroquin) — Anthropic tool-use compatibility layer (`tool_use`/`tool_result` content block conversion), JSON schema round-trip fixes, and compat test suite expansion. ([PR #3](https://github.com/tuxevil/tuxevil-rotator/pull/3), [PR #7](https://github.com/tuxevil/tuxevil-rotator/pull/7))
333
347
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuxevil-rotator",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Multi-provider, multi-account AI proxy rotator with per-model routing, real-time quota tracking, and infringement detection (Google Antigravity, Ollama Cloud)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,7 +10,7 @@ import {
10
10
  saveAccountsConfig,
11
11
  } from "./config-storage.js";
12
12
  import { applyConfigDefaults, getDefaultConfig } from "./config-defaults.js";
13
- import { hasCredential } from "./providers/credential-helpers.js";
13
+ import { hasCredential, sortAccountCredentials } from "./providers/credential-helpers.js";
14
14
  import { normalizeAccountConfig } from "./config-normalize.js";
15
15
  import { validateAccountConfig } from "./validators.js";
16
16
 
@@ -43,6 +43,7 @@ export const MAX_LABEL_LENGTH = 100;
43
43
  export const MAX_PROJECT_ID_LENGTH = 100;
44
44
  export const MAX_REFRESH_TOKEN_LENGTH = 4096;
45
45
  export const MAX_PROXY_URL_LENGTH = 2048;
46
+ export const MAX_PROVIDER_ACCOUNT_ID_LENGTH = 256;
46
47
 
47
48
  function validateAccountConfigLengths(entry: AccountConfig): void {
48
49
  const checks: Array<[string, number]> = [
@@ -50,6 +51,8 @@ function validateAccountConfigLengths(entry: AccountConfig): void {
50
51
  ["label", MAX_LABEL_LENGTH],
51
52
  ["projectId", MAX_PROJECT_ID_LENGTH],
52
53
  ["refreshToken", MAX_REFRESH_TOKEN_LENGTH],
54
+ ["codexRefreshToken", MAX_REFRESH_TOKEN_LENGTH],
55
+ ["codexAccountId", MAX_PROVIDER_ACCOUNT_ID_LENGTH],
53
56
  ["proxyUrl", MAX_PROXY_URL_LENGTH],
54
57
  ];
55
58
  for (const [field, max] of checks) {
@@ -81,6 +84,9 @@ function validateCredentialLengths(
81
84
  if (typeof cred.proxyUrl === "string" && cred.proxyUrl.length > MAX_PROXY_URL_LENGTH) {
82
85
  throw new Error(`Credential proxyUrl for ${cred.provider} exceeds maximum length`);
83
86
  }
87
+ if (typeof cred.providerAccountId === "string" && cred.providerAccountId.length > MAX_PROVIDER_ACCOUNT_ID_LENGTH) {
88
+ throw new Error(`Credential providerAccountId for ${cred.provider} exceeds maximum length`);
89
+ }
84
90
  }
85
91
  }
86
92
 
@@ -91,13 +97,36 @@ function mergeCredentials(
91
97
  incoming: AccountConfig["credentials"] | undefined,
92
98
  ): AccountConfig["credentials"] {
93
99
  const out: NonNullable<AccountConfig["credentials"]> = [];
100
+ const incomingByProvider = new Map((incoming ?? []).map((cred) => [cred.provider, cred]));
94
101
  const seen = new Set<string>();
95
- for (const cred of [...(existing ?? []), ...(incoming ?? [])]) {
102
+ for (const cred of existing ?? []) {
96
103
  if (seen.has(cred.provider)) continue;
97
104
  seen.add(cred.provider);
98
- out.push(cred);
105
+ const incomingCredential = incomingByProvider.get(cred.provider);
106
+ out.push(incomingCredential ? { ...cred, ...incomingCredential } : cred);
107
+ incomingByProvider.delete(cred.provider);
108
+ }
109
+ for (const cred of incomingByProvider.values()) out.push(cred);
110
+ return sortAccountCredentials(out);
111
+ }
112
+
113
+ function assertCodexIdentityCompatible(
114
+ existing: AccountConfig,
115
+ incoming: AccountConfig,
116
+ ): void {
117
+ const existingCredential = normalizeAccountConfig(existing).credentials?.find(
118
+ (credential) => credential.provider === "openai-codex",
119
+ );
120
+ const incomingCredential = incoming.credentials?.find(
121
+ (credential) => credential.provider === "openai-codex",
122
+ );
123
+ const oldId = existingCredential?.providerAccountId;
124
+ const newId = incomingCredential?.providerAccountId;
125
+ if (oldId && newId && oldId !== newId) {
126
+ throw new Error(
127
+ `Codex credential conflict for ${incoming.email}: the email is already bound to a different providerAccountId; refusing to overwrite it`,
128
+ );
99
129
  }
100
- return out;
101
130
  }
102
131
 
103
132
  export async function addAccountToConfig(
@@ -106,8 +135,11 @@ export async function addAccountToConfig(
106
135
  validateAccountConfigLengths(entry);
107
136
  const entryNorm = normalizeAccountConfig(entry);
108
137
  const config = loadOrCreateAccountsConfig();
109
- const existing = config.accounts.find((a) => a.email === entryNorm.email);
138
+ const existing = config.accounts.find(
139
+ (a) => a.email === entryNorm.email || a.email.toLowerCase() === entryNorm.email.toLowerCase(),
140
+ );
110
141
  if (existing) {
142
+ assertCodexIdentityCompatible(existing, entryNorm);
111
143
  validateCredentialLengths(entryNorm.credentials);
112
144
  config.accounts[config.accounts.indexOf(existing)] = {
113
145
  ...normalizeAccountConfig(existing),
package/src/cli.ts CHANGED
@@ -46,8 +46,28 @@ switch (command) {
46
46
  providerFlag >= 0 && process.argv[providerFlag + 1]
47
47
  ? process.argv[providerFlag + 1]
48
48
  : undefined;
49
- const { runLogin } = await import("./login.js");
50
- await runLogin(providerId);
49
+ const importFlag = process.argv.indexOf("--import");
50
+ if (providerId === "openai-codex" && importFlag >= 0) {
51
+ const importPath = process.argv[importFlag + 1];
52
+ if (!importPath || importPath.startsWith("--")) {
53
+ console.error("Usage: tuxevil-rotator login --provider openai-codex --import <auth.json>");
54
+ process.exitCode = 1;
55
+ break;
56
+ }
57
+ const { addAccountToConfig } = await import("./account-store.js");
58
+ const { importCodexAuthFile } = await import("./providers/openai-codex/login.js");
59
+ try {
60
+ const imported = await importCodexAuthFile(importPath);
61
+ const { isNew } = await addAccountToConfig(imported.account);
62
+ console.log(` ${isNew ? "Added" : "Updated"} ${imported.account.email} in Codex provider credentials`);
63
+ } catch (err) {
64
+ console.error(`Codex import failed: ${err instanceof Error ? err.message : "invalid auth.json"}`);
65
+ process.exitCode = 1;
66
+ }
67
+ } else {
68
+ const { runLogin } = await import("./login.js");
69
+ await runLogin(providerId);
70
+ }
51
71
  break;
52
72
  }
53
73
  case "import": {
@@ -255,7 +275,8 @@ switch (command) {
255
275
  console.log();
256
276
  console.log("Usage:");
257
277
  console.log(" tuxevil-rotator start Start the proxy (default)");
258
- console.log(" tuxevil-rotator login Add a Google account (login --provider ollama for Ollama Cloud)");
278
+ console.log(" tuxevil-rotator login Add an account (use --provider openai-codex for Codex OAuth)");
279
+ console.log(" tuxevil-rotator login --provider openai-codex --import <auth.json>");
259
280
  console.log(
260
281
  " tuxevil-rotator import Import Google/Pi accounts from JSON (default: ~/.config/antigravity/accounts.json)",
261
282
  );
@@ -21,6 +21,7 @@ export const DEFAULT_MODEL_SPECS: Record<string, ModelSpec> = {
21
21
  "gemini-3.6-flash-medium": { maxOutputTokens: 65536, thinkingBudget: 4000, isThinking: true },
22
22
  "gemini-3.6-flash-low": { maxOutputTokens: 65536, thinkingBudget: 1000, isThinking: true },
23
23
  "gemini-3.6-flash-tiered": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true },
24
+ "gemini-3.7-flash-tiered": { maxOutputTokens: 65536, thinkingBudget: -1, isThinking: true },
24
25
  "gemini-3-flash": { maxOutputTokens: 65536, thinkingBudget: 4000, isThinking: true },
25
26
  "gemini-2.5-flash": { maxOutputTokens: 65535, thinkingBudget: 24576, isThinking: true },
26
27
  "gemini-2.5-pro": { maxOutputTokens: 65535, thinkingBudget: 1024, isThinking: true },