Skip to content

docs(vercel): document Token Pass setup and spend controls - #173752

Closed
vincentkoc wants to merge 1 commit into
fix/vercel-token-pass-errors-20261016from
docs/vercel-token-pass-20261016
Closed

vincentkoc wants to merge 1 commit into
fix/vercel-token-pass-errors-20261016from
docs/vercel-token-pass-20261016

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Documents a usable Token Pass setup without leaving the ordinary Claude default or silently retaining paid fallback routes.

User Impact

Operators can use a Token Pass API key with the existing Vercel plugin, choose featured models, and restrict both credential rotation and model fallback for pass-only usage. The setup replaces the onboarding model allowlist and calls out per-agent and session overrides.

Why This Change Was Made

Token Pass keys use the existing API-key auth flow but have different model and spend constraints. The guide names moonshotai/kimi-k3 and zai/glm-5.3, explains automatic Token Pass routing, and distinguishes catalog visibility from subscription access. Claude defaults, fast variants, and image/audio/embedding endpoints are outside the pass.

Stack: depends on #173750. This PR's base is the lower branch; review only its documentation delta.

Evidence

  • Official Token Pass setup and models/routing, checked October 16, 2026.
  • Commands and existing config surfaces checked against current auth-order, onboarding, and model-allowlist owners.
  • git diff --check passed. Pinned oxfmt 0.72.0 passed for this page. The lower PR records 33 passing focused tests and the original 2-case failing reproduction. Full docs MDX/config checks and authenticated onboarding remain unverified.
  • Independent review and author simplification pass completed.
  • Documentation delta: +77/-1 lines; no production or test code in this PR.
  • Draft proof gap: no authenticated Token Pass inference or live onboarding was performed.

@vincentkoc vincentkoc self-assigned this Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 16, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Documents Token Pass authentication, featured models, credential restrictions, and model fallback controls.

Example: An operator wants to use a Token Pass key with Kimi K3.

  • Before: The guide recommends Claude Opus 4.6 and does not explain how to exclude paid credential rotation.
  • After: The guide selects vercel-ai-gateway/moonshotai/kimi-k3, restricts auth order to the pass profile, and clears model fallbacks.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused documentation with no identified defect; publication remains dependent on the lower runtime fix.
Proof confidence 🌊 off-meta tidepool Not applicable: This documentation-only delta changes no production behavior; the disclosed absence of authenticated inference is not a runtime-proof blocker for this PR.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Token Pass operators need supported model choices and instructions for avoiding unintended paid fallback.
Reason: The maintainer-authored guide addresses a concrete gap without introducing another provider, configuration option, or runtime owner.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it adds useful Token Pass guidance missing from main, has maintainer-approved direction, and introduces no identified documentation defect.

Priority: P3
Reviewed head: 0dd138c176e622ca34581d2af27fccf557995c64

Before merge

  • Complete next step - Land the lower Token Pass error-classification PR before publishing this documentation.

Findings

None.

Agent review details

How this fits together

The provider guide translates operator credentials and model preferences into existing onboarding, auth-order, and model-selection settings used by the Vercel plugin.

flowchart LR
  A[Operator] --> B[Provider guide]
  B --> C[Onboarding and auth order]
  B --> D[Model configuration]
  C --> E[Vercel provider plugin]
  D --> E
  E --> F[Vercel Token Pass]
Loading

Technical review

Best possible solution:

Publish this guide after the underlying Token Pass error-classification fix lands.

Do we have a high-confidence way to reproduce the issue?

The documentation gap is directly visible on fetched main; authenticated Token Pass behavior was not exercised.

Is this the best way to solve the issue?

Extending the existing provider guide is appropriate because the setup uses existing authentication and model-selection surfaces.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c5a6724c2655.

Provenance checked

  • Existing API-key setup and provider-routing explanation keeps the original intent (beb9eac: The original provider-auth change documented unified API-key onboarding; the later source-grounded rewrite retained regular-key routing guidance.)

Security

None.

Evidence

What I checked:

PR surface

Docs +76. Total +76 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 77 1 +76
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 77 1 +76

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is focused documentation for an existing provider and existing configuration controls.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 12:04 AM ET / 04:04 UTC.

@obviyus

obviyus commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Closing this. With an API key, OpenClaw now lists models from the key-scoped Vercel model list, so a Token Pass key shows only the models it can use. The manual allowlist steps and the hard-coded model list are not needed. A short Token Pass note goes into the model-list fix PR. Thanks @vincentkoc for the setup research and the Vercel error contract work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants