You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [Unreleased]
9
+
10
+
### Added
11
+
12
+
-**OpenCode Zen gateway support**: set `gateway: "opencodezen"` in `configure()` and provide `OPENCODEZEN_API_KEY` to route all model requests through [OpenCode Zen](https://opencode.ai/docs/ko/zen/) (`https://opencode.ai/zen/v1`), an OpenAI-compatible gateway with 30+ curated models including Claude, Gemini, GPT, Qwen, and more.
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,9 @@ ANTHROPIC_API_KEY=sk-ant-...
31
31
GOOGLE_GENERATIVE_AI_API_KEY=AIza...
32
32
```
33
33
34
-
Alternatively, you can use an AI gateway like Vercel AI Gatewayor OpenRouter to route requests to multiple providers without managing individual API keys. If you choose this option, set `AI_GATEWAY_API_KEY` (for Vercel) or `OPENROUTER_API_KEY` (for OpenRouter) instead.
34
+
Alternatively, you can use an AI gateway like Vercel AI Gateway, OpenRouter, or OpenCode Zen to route requests to multiple providers without managing individual API keys. If you choose this option, set `AI_GATEWAY_API_KEY` (for Vercel), `OPENROUTER_API_KEY` (for OpenRouter), or `OPENCODEZEN_API_KEY` (for OpenCode Zen) instead.
35
35
36
-
You can also route requests through Cloudflare AI Gateway for observability, caching, and rate limiting. Unlike Vercel/OpenRouter, Cloudflare is a proxy (not a reseller), so you still need your own `ANTHROPIC_API_KEY` / `GOOGLE_GENERATIVE_AI_API_KEY` alongside `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_AI_GATEWAY` (and `CLOUDFLARE_AI_GATEWAY_API_KEY` if the gateway has authentication enabled).
36
+
You can also route requests through Cloudflare AI Gateway for observability, caching, and rate limiting. Unlike Vercel/OpenRouter/OpenCode Zen, Cloudflare is a proxy (not a reseller), so you still need your own `ANTHROPIC_API_KEY` / `GOOGLE_GENERATIVE_AI_API_KEY` alongside `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_AI_GATEWAY` (and `CLOUDFLARE_AI_GATEWAY_API_KEY` if the gateway has authentication enabled).
37
37
38
38
Set your Playwright project to read `.env` by adding the following to `playwright.config.ts` (after `import { defineConfig, devices } from '@playwright/test';`):
// if the gateway is authenticated) in your .env file. Cloudflare also requires
89
90
// the upstream provider keys (ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY).
@@ -170,7 +171,7 @@ import { configure } from "passmark";
170
171
171
172
configure({
172
173
ai: {
173
-
gateway: "none", // "none" (default), "vercel", "openrouter", or "cloudflare"
174
+
gateway: "none", // "none" (default), "vercel", "openrouter", "opencodezen", or "cloudflare"
174
175
models: {
175
176
stepExecution: "google/gemini-3-flash",
176
177
utility: "google/gemini-2.5-flash",
@@ -189,6 +190,7 @@ configure({
189
190
|`GOOGLE_GENERATIVE_AI_API_KEY`| Yes | - | Google API key for Gemini models |
190
191
|`AI_GATEWAY_API_KEY`| If gateway=vercel | - | Vercel AI Gateway API key |
191
192
|`OPENROUTER_API_KEY`| If gateway=openrouter | - | OpenRouter API key |
193
+
|`OPENCODEZEN_API_KEY`| If gateway=opencodezen | - | OpenCode Zen API key |
192
194
|`CLOUDFLARE_ACCOUNT_ID`| If gateway=cloudflare | - | Cloudflare account ID that owns the AI Gateway |
193
195
|`CLOUDFLARE_AI_GATEWAY`| If gateway=cloudflare | - | Cloudflare AI Gateway name (slug) |
194
196
|`CLOUDFLARE_AI_GATEWAY_API_KEY`| If gateway=cloudflare and the gateway is authenticated | - | Cloudflare AI Gateway token (sent as `cf-aig-authorization`) |
0 commit comments