GeezerVison is showing github.com — feat(sponsors): TokenLab Standard sponsor placement, README row and docs · lidge-jun/opencodex@f4c48c4
File treeExpand file treeCollapse file tree Open diff view settings devlog/_plan/260929_tokenlab_sponsor docs-site/src/content/docs/guides components/provider-workspace
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: README.md +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -157,6 +157,10 @@ See [SPONSORS.md](./SPONSORS.md). | 157 | 157 | <td width="180"><a href="https://www.packyapi.com/register?aff=k5KT"><img src="assets/sponsors/packycode.png" alt="PackyCode" width="150"></a></td> | 158 | 158 | <td>Thanks to <a href="https://www.packyapi.com/register?aff=k5KT">PackyCode</a> for sponsoring this project! PackyCode is a stable, high-performance API relay provider, offering relay services for Claude Code, Codex, Gemini, and more. With automatic failover, smart routing, and unlimited concurrency, it turns AI into a real productivity tool. <a href="https://www.packyapi.com/register?aff=k5KT">Register via this link</a> and get started! Pick <code>PackyCode</code> in the Add provider picker or run <code>ocx provider add packycode</code>.<br><sub>PackyCode 是一家稳定、高效的 API 中转服务商,提供 Claude Code、Codex、Gemini 等多种中转服务。具备自动故障转移、智能路由和无限并发等多种功能,让 AI 编程成为真正的生产力工具。<a href="https://www.packyapi.com/register?aff=k5KT">点此链接注册</a>,立即开始使用!</sub></td> | 159 | 159 | </tr> | | 160 | +<tr> | | 161 | +<td width="180"><a href="https://tokenlab.sh/?utm_source=opencodex&utm_medium=readme"><picture><source media="(prefers-color-scheme: dark)" srcset="assets/sponsors/tokenlab-dark.png"><img src="assets/sponsors/tokenlab-light.png" alt="TokenLab" width="150"></picture></a></td> | | 162 | +<td>Thanks to <a href="https://tokenlab.sh/?utm_source=opencodex&utm_medium=readme">TokenLab</a> for sponsoring this project! TokenLab gives coding agents one API key for leading models, with Responses, Chat Completions, streaming, and tool calling. Choose your delivery mode and pay as you go. Pick <code>TokenLab</code> in the Add provider picker or run <code>ocx provider add tokenlab</code>.</td> | | 163 | +</tr> | 160 | 164 | </tbody> | 161 | 165 | </table> | 162 | 166 |
| |
Collapse file Copy file name to clipboardExpand all lines: SPONSORS.md +4-5Lines changed: 4 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,8 +47,8 @@ sponsor receives: | 47 | 47 | policy. A second-language blurb (for example Chinese) may run alongside the English one. | 48 | 48 | - A built-in provider preset (`ocx provider add <id>`) shipped in a public npm release, | 49 | 49 | listed near the top of the provider picker in the dashboard and CLI and marked as a sponsor | 50 | | - there. (The registry field and picker ordering that back this land with the first sponsor | 51 | | - preset; today the picker follows registry order.) | | 50 | + there. The dashboard picker lists sponsor rows Main before Standard, then alphabetically by | | 51 | + label, an order no sponsor can buy. | 52 | 52 | - A detailed entry on the [providers page](https://opencodex.me/guides/providers/) of the docs | 53 | 53 | site. | 54 | 54 | - Maintenance: if a release breaks the preset or its adapter, the maintainer fixes it; issues | @@ -66,9 +66,8 @@ and the placements themselves: | 66 | 66 | The README says nothing else about sponsorship; tiers, pricing, and contact channels live only on | 67 | 67 | this page. | 68 | 68 |
| 69 | | -The translated READMEs under [`readme/`](./readme) carry one linking line right after their | 70 | | -own quick-start block instead of duplicating the section, so a sponsor change is one edit in | 71 | | -English. | | 69 | +The translated READMEs under [`readme/`](./readme) carry the same sponsor section, with each | | 70 | +row's thanks line and blurb translated, so a sponsor change updates every README together. | 72 | 71 |
| 73 | 72 | ## Pricing | 74 | 73 |
| |
Collapse file Copy file name to clipboard 5.95 KB
- Display the source diff
- Display the rich diff
Collapse file Copy file name to clipboard 6.09 KB
- Display the source diff
- Display the rich diff
Collapse file Copy file name to clipboardExpand all lines: desktop/src-tauri/src/provider_icons.rs +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -91,6 +91,7 @@ const ALIASES: &[(&str, &str)] = &[ | 91 | 91 | ("orcarouter", "orcarouter.svg"), | 92 | 92 | ("orcarouter-oauth", "orcarouter.svg"), | 93 | 93 | ("packycode", "packycode.svg"), | | 94 | + ("tokenlab", "tokenlab.svg"), | 94 | 95 | ("parallel", "parallel.svg"), | 95 | 96 | ("sambanova", "sambanova.svg"), | 96 | 97 | ("scaleway", "scaleway.svg"), | @@ -131,6 +132,7 @@ fn paint(file: &str) -> &'static str { | 131 | 132 | | "packycode.svg" | 132 | 133 | | "siliconflow.svg" | 133 | 134 | | "synthetic.svg" | | 135 | + | "tokenlab.svg" | 134 | 136 | | "vercel-ai-gateway-color.svg" | 135 | 137 | | "zenmux.svg" => "mask", | 136 | 138 | "baseten.svg" | "kilo.svg" | "sambanova.svg" | "venice.svg" | "zai.svg" => "plate", | @@ -200,6 +202,7 @@ fn svg(file: &str) -> Option<&'static str> { | 200 | 202 | "stepfun-color.svg" => svg!("stepfun-color.svg"), | 201 | 203 | "synthetic.svg" => svg!("synthetic.svg"), | 202 | 204 | "together.svg" => svg!("together.svg"), | | 205 | + "tokenlab.svg" => svg!("tokenlab.svg"), | 203 | 206 | "umans.svg" => svg!("umans.svg"), | 204 | 207 | "venice.svg" => svg!("venice.svg"), | 205 | 208 | "vercel-ai-gateway-color.svg" => svg!("vercel-ai-gateway-color.svg"), | |
Collapse file Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# TokenLab — preset merge and third Standard sponsor | | 2 | + | | 3 | +TokenLab (TOKENLAB AI INC.) signed up as a Standard sponsor on 2026-09-29 (DocuSign envelope sent | | 4 | +21:08 KST; USD 1,200 / 3 months, term starts at the npm release that ships the preset). Two units: | | 5 | + | | 6 | +| Doc | Work phase | Outcome | | | 7 | +|-----|-----------|---------| | | 8 | +| [010](./010_merge_6221.md) | wp1 | #6221 (fork `hedging8563`, ordinary API-key preset) merged into `dev` on green exact-head CI | | | 9 | +| [020](./020_sponsor_pr.md) | wp2 | Separate maintainer PR: sponsor field, dashboard sponsor surface, README row #3, docs, assets | | | 10 | + | | 11 | +The sponsor PR stays unmerged for owner review. The Responses-first proposal in TokenLab's asset pack | | 12 | +(`integration-notes.md`) is out of scope for both units: it changes the upstream protocol and needs | | 13 | +its own evidence and PR. |
Collapse file Copy file name to clipboard +37Lines changed: 37 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# 010 — Merge #6221 (TokenLab API-key preset) | | 2 | + | | 3 | +## State at plan time | | 4 | + | | 5 | +- Head repo `hedging8563/opencodex`, branch `codex/tokenlab-provider`, draft, `maintainerCanModify`. | | 6 | +- Branch updated onto `dev` with `gh pr update-branch` → head `6a9e571202`. | | 7 | +- Fork runs `Cross-platform CI` (36566988054) and `React Doctor` (36566988033) approved by the maintainer. | | 8 | +- Admission gap recorded in the PR body: routing/resale authorization evidence. The owner's | | 9 | + sponsorship agreement with the operator (§2.2: sourcing and delivery mode are TokenLab's | | 10 | + responsibility, not audited or guaranteed by opencodex) is the maintainer decision that closes it; | | 11 | + no upstream endorsement claim is added. | | 12 | + | | 13 | +## Steps | | 14 | + | | 15 | +0. Head moved to `fb565b7c48`: the `dev` union failed `docs-provider-preset-counts` (16 assertions, | | 16 | + localized 99/82 counts). Recounted the anchored lines; the test passes locally 18/18. | | 17 | +1. Wait for every required check on `6a9e571202` to complete successfully. A red, skipped or | | 18 | + older-head result blocks merge; fix forward only if the failure is in this diff. | | 19 | +2. Mark the PR ready (`gh pr ready 6221`). | | 20 | +3. Post a maintainer-integration comment: owner instruction, exact head SHA, check list, and the | | 21 | + admission decision above. | | 22 | +4. Squash-merge with the admin bypass (`gh pr merge 6221 --squash --admin`); the squash keeps the | | 23 | + PR author as commit author. | | 24 | +5. Verify `dev` contains the squash commit and `src/providers/registry/entries-extended.ts` carries | | 25 | + the `tokenlab` entry. | | 26 | + | | 27 | +## Not in this unit | | 28 | + | | 29 | +Sponsor field, README, logos — see 020. | | 30 | + | | 31 | +## Outcome (2026-09-29) | | 32 | + | | 33 | +Merged as `f6cddd7d69` at 12:51 UTC from head `fb565b7c48`: 24 checks passed, 7 skipped by path | | 34 | +conditions (Cross-platform CI 36567400620, React Doctor). CodeRabbit's assertive review found nothing | | 35 | +actionable. The readiness gate re-drafted the PR on `ready`; the maintainer ticked the last two boxes | | 36 | +after that review and recorded it on the PR. A full local `bun run test` cannot run from a worktree | | 37 | +under `~/.codex`: the harness refuses to delete temporary directories inside the real Codex home. |
Collapse file Copy file name to clipboard +63Lines changed: 63 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# 020 — TokenLab third Standard sponsor PR | | 2 | + | | 3 | +Branch `codex/tokenlab-sponsor`, started on the #6221 head and rebased onto `dev` after 010 lands. | | 4 | +Pattern: #3914 (OrcaRouter, mechanism) and #3915 (PackyCode, second sponsor). Assets come from | | 5 | +TokenLab's corrected pack (`TokenLab-OpenCodex-assets-corrected.zip`), artwork unchanged. | | 6 | + | | 7 | +## Diff | | 8 | + | | 9 | +- `src/providers/registry/entries-extended.ts` — the `tokenlab` entry gains | | 10 | + `sponsor: { tier: "standard", url: "https://tokenlab.sh/?utm_source=opencodex&utm_medium=readme" }` | | 11 | + with a comment naming SPONSORS.md and the signing date. No routing, default or discovery change. | | 12 | +- `assets/sponsors/tokenlab-light.png`, `assets/sponsors/tokenlab-dark.png` — the pack's 500×125 | | 13 | + lockups, unchanged (`-light` = for light page backgrounds, as in the pack). Listed in | | 14 | + `package.json` `files` beside the OrcaRouter/PackyCode logos. | | 15 | +- `README.md` — third row of the `sponsors:standard` table, in signing order after PackyCode. | | 16 | + Logo in `<picture>` with a `prefers-color-scheme: dark` source so the dark lockup shows in | | 17 | + GitHub dark mode; the `<img>` fallback is the light lockup (npm). Text: "Thanks to TokenLab for | | 18 | + sponsoring this project!", the sponsor's English blurb verbatim, then the picker / | | 19 | + `ocx provider add tokenlab` line. | | 20 | +- `readme/README.{ko,ja,zh-CN,zh-TW,ru,fr,tr}.md` — the same row, translated like the existing | | 21 | + rows, image paths `../assets/...`. Keep the README drift gate green. | | 22 | +- `gui/public/provider-icons/tokenlab.svg` — the pack's symbol mark; `gui/src/provider-icons.ts` | | 23 | + maps `tokenlab` to it, sets the display name, and applies dark-mode treatment like other | | 24 | + monochrome marks. | | 25 | +- `gui/src/components/provider-workspace/ProviderSponsor.tsx` — replace the hardcoded | | 26 | + OrcaRouter/PackyCode ternaries with a small brand table so a sponsor is one row; add TokenLab. | | 27 | + i18n keys `pws.sponsor.tokenlabTitle` / `pws.sponsor.tokenlabDescription` in every | | 28 | + `gui/src/i18n/*.ts` locale (the closed catalog must stay exhaustive). | | 29 | +- `docs-site/src/content/docs/guides/providers.md` — sponsor paragraph after PackyCode, and the | | 30 | + base-URL table row if #6221 has not already added it. Translated locales must not contradict it. | | 31 | +- Tests — `tests/providers/sponsor-presets.test.ts` stays generic; the GUI sponsor overview test | | 32 | + covers the TokenLab card. Respect the file-size ratchet: move rather than grow capped files. | | 33 | + | | 34 | +## Verification | | 35 | + | | 36 | +## Audit folds (reviewer, NEAR-PASS) | | 37 | + | | 38 | +- `desktop/src-tauri/src/provider_icons.rs`: `("tokenlab", "tokenlab.svg")` in `ALIASES`, the same paint | | 39 | + arm as `MASKED_PROVIDER_ICONS`, and `svg!("tokenlab.svg")` (`gui/tests/provider-icons-native.test.ts`). | | 40 | +- `readme/i18n-manifest.json`: refresh all seven `sourceSha256` values to the new LF-normalized README hash | | 41 | + (`docs-readme-translation-parity.test.ts`). | | 42 | +- `<picture>` is gate-compatible: only `src=`/`href=` are asset-tracked, so each locale's `<img src>` must be | | 43 | + `../assets/sponsors/tokenlab-light.png`; include the dark `<source>` too. | | 44 | +- Icon provenance row in `gui/public/provider-icons/README.md`; `structure/dashboard-and-usage.md` owns the | | 45 | + `ProviderSponsor` description — update it for the brand table. | | 46 | +- Docs: extend the existing TokenLab section in `guides/providers.md` with the sponsor link; do not add a | | 47 | + second paragraph. | | 48 | +- `SPONSORS.md`: fix the stale "picker follows registry order" and "translated READMEs carry one linking | | 49 | + line" sentences. | | 50 | +- Branch: after #6221 squashes, move only the sponsor commits onto `dev` | | 51 | + (`git rebase --onto origin/dev fb565b7c48`). | | 52 | + | | 53 | +## Verification (commands) | | 54 | + | | 55 | +Focused: sponsor-presets, provider-registry-parity, tokenlab-provider, README drift/translation | | 56 | +gates, GUI sponsor tests, `bun run typecheck`, `bun run lint:gui`, `bun run privacy:scan`, | | 57 | +`bun run structure:check`, `bun run build:gui`. Then `bun run test` or the documented focused | | 58 | +exception. Screenshot of the dashboard sponsor card and picker uploaded to the `pr-assets` branch | | 59 | +and linked by SHA in the PR description, never committed to the PR branch. | | 60 | + | | 61 | +## Out of scope | | 62 | + | | 63 | +Responses-first adapter and the `X-TokenLab-Delivery-Policy` header (pack `integration-notes.md`). |
Collapse file Copy file name to clipboardExpand all lines: docs-site/src/content/docs/guides/providers.md +5-2Lines changed: 5 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -553,7 +553,9 @@ region-pinned EU routes, is at [opper.ai/models](https://opper.ai/models). Opper | 553 | 553 | | Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` | | 554 | 554 | | …and more | opencode zen, Vercel AI Gateway, Venice, NanoGPT, Synthetic, Qianfan, Alibaba, Parallel, ZenMux, LiteLLM | | 555 | 555 |
| 556 | | -**TokenLab** is an OpenAI-compatible API gateway operated by TOKENLAB AI INC. | | 556 | +**TokenLab** ([sponsor](https://github.com/lidge-jun/opencodex/blob/main/SPONSORS.md)) is an | | 557 | +OpenAI-compatible API gateway at [tokenlab.sh](https://tokenlab.sh/?utm_source=opencodex&utm_medium=readme), | | 558 | +operated by TOKENLAB AI INC. | 557 | 559 | Create a workspace [API key](https://tokenlab.sh/dashboard/api?tab=keys), then run | 558 | 560 | `ocx provider add tokenlab` or select **TokenLab** in the dashboard's **Add provider** picker. | 559 | 561 | The preset uses [Chat Completions](https://docs.tokenlab.sh/quickstart) and discovers models at | @@ -566,7 +568,8 @@ policy. Use a valid key with a funded workspace for inference. `gpt-5.6-terra` i | 566 | 568 | default; choose another discovered model if your key does not allow it. The provider and model | 567 | 569 | prefixes remain separate: `tokenlab/gpt-5.6-terra` sends `gpt-5.6-terra` upstream. | 568 | 570 | TokenLab's [terms](https://tokenlab.sh/tos) and [privacy policy](https://tokenlab.sh/privacy-policy) | 569 | | -apply to requests sent to this service. | | 571 | +apply to requests sent to this service. The preset pins the row near the top of the Add provider | | 572 | +picker and marks it as a sponsor, and nothing else about routing or defaults changes. | 570 | 573 |
| 571 | 574 | The MiniMax and MiniMax (CN) provider cards can also show Coding Plan quota when the configured | 572 | 575 | key has an active plan. The dashboard reads the plan's 5-hour window and, when present, weekly | |
Collapse file Copy file name to clipboardExpand all lines: gui/public/provider-icons/README.md +9Lines changed: 9 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -382,3 +382,12 @@ committing it. | 382 | 382 | gradient is the brand, so it must never be masked. | 383 | 383 |
| 384 | 384 | - `factory-droid.svg` — Factory Docs favicon, fetched 2026-09-28 from `https://docs.factory.ai/favicon.svg`; unmodified first-party asset for Factory Droid. | | 385 | + | | 386 | +## TokenLab (2026-09-29) | | 387 | + | | 388 | +- `tokenlab.svg` — TokenLab's "Specimen Split" symbol, `logos/tokenlab-symbol.svg` from the | | 389 | + sponsor asset pack TokenLab supplied for its Standard sponsorship (`SPONSORS.md`), committed | | 390 | + byte for byte (416 bytes, MD5 `fcb8c1325a34ed52b1dc89eabf08a0e6`), `<title>`/`<desc>` included | | 391 | + since they do not affect rendering. `viewBox="0 0 48 48"`, one `#151714` ink, so it is | | 392 | + **masked** like `packycode.svg`: as an image it vanishes on the dark tile. The pack's reverse | | 393 | + symbol (`#F5F5F1`) is the same geometry and is not needed once the mark follows the theme. |
|