Skip to content

Commit 82952af

Browse files
Sung-Heonclaude
andcommitted
docs: update README and CHANGELOG for opencodezen gateway
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cdbe930 commit 82952af

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

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.
13+
814
## [1.0.0] - 2026-03-27
915

1016
### Added

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ ANTHROPIC_API_KEY=sk-ant-...
3131
GOOGLE_GENERATIVE_AI_API_KEY=AIza...
3232
```
3333

34-
Alternatively, you can use an AI gateway like Vercel AI Gateway or 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.
3535

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).
3737

3838
Set your Playwright project to read `.env` by adding the following to `playwright.config.ts` (after `import { defineConfig, devices } from '@playwright/test';`):
3939

@@ -82,8 +82,9 @@ import { runSteps, configure } from "passmark";
8282

8383
configure({
8484
ai: {
85-
gateway: "vercel" // or "openrouter" or "cloudflare"
86-
// Set AI_GATEWAY_API_KEY (Vercel), OPENROUTER_API_KEY (OpenRouter), or
85+
gateway: "vercel" // or "openrouter", "opencodezen", or "cloudflare"
86+
// Set AI_GATEWAY_API_KEY (Vercel), OPENROUTER_API_KEY (OpenRouter),
87+
// OPENCODEZEN_API_KEY (OpenCode Zen), or
8788
// CLOUDFLARE_ACCOUNT_ID + CLOUDFLARE_AI_GATEWAY (+ CLOUDFLARE_AI_GATEWAY_API_KEY
8889
// if the gateway is authenticated) in your .env file. Cloudflare also requires
8990
// the upstream provider keys (ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY).
@@ -170,7 +171,7 @@ import { configure } from "passmark";
170171

171172
configure({
172173
ai: {
173-
gateway: "none", // "none" (default), "vercel", "openrouter", or "cloudflare"
174+
gateway: "none", // "none" (default), "vercel", "openrouter", "opencodezen", or "cloudflare"
174175
models: {
175176
stepExecution: "google/gemini-3-flash",
176177
utility: "google/gemini-2.5-flash",
@@ -189,6 +190,7 @@ configure({
189190
| `GOOGLE_GENERATIVE_AI_API_KEY` | Yes | - | Google API key for Gemini models |
190191
| `AI_GATEWAY_API_KEY` | If gateway=vercel | - | Vercel AI Gateway API key |
191192
| `OPENROUTER_API_KEY` | If gateway=openrouter | - | OpenRouter API key |
193+
| `OPENCODEZEN_API_KEY` | If gateway=opencodezen | - | OpenCode Zen API key |
192194
| `CLOUDFLARE_ACCOUNT_ID` | If gateway=cloudflare | - | Cloudflare account ID that owns the AI Gateway |
193195
| `CLOUDFLARE_AI_GATEWAY` | If gateway=cloudflare | - | Cloudflare AI Gateway name (slug) |
194196
| `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

Comments
 (0)