Skip to content

fix(zen): authenticate System One requests with bearer tokens - #59

Merged
PanAchy merged 1 commit into
mainfrom
fix/issue-55-zen-auth
Oct 18, 2026
Merged

PanAchy merged 1 commit into
mainfrom
fix/issue-55-zen-auth

Conversation

@PanAchy

@PanAchy PanAchy commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Fixes #55. Use the authentication header Zen expects:

- x-api-key: <key>
+ Authorization: Bearer <key>

Models and permission behavior stay unchanged. Adds regression tests and a patch changeset.

Verification

Check Result
npm run check Passed, 380 tests
npm run smoke:package Passed
npm run smoke:opencode Passed with fake provider
Live jev-1.13 HTTP 200, valid answer
Live jev-1.13-free HTTP 429 twice; latest Retry-After: 74037 seconds; inference unverified

One paid request and two separately authorized free requests. No automatic retries or calibration claims.

Zen's System One route reads Authorization rather than the x-api-key header used by the Messages route. Send the key as a bearer token while preserving model selection and permission failure behavior.
@PanAchy
PanAchy merged commit ad50af2 into main Oct 18, 2026
4 checks passed
@PanAchy
PanAchy deleted the fix/issue-55-zen-auth branch October 18, 2026 03:26
@jevvy-release jevvy-release Bot mentioned this pull request Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Zen provider authenticates with x-api-key; paid models reject it with 401

1 participant