OpenCode plugin for routing model discovery and completions through Zed's hosted AI APIs. Version 0.0.11 is the latest release. It authenticates using Zed desktop credentials (Linux via secret-tool) or pasted tokens, exchanges them for short-lived LLM tokens, fetches the Zed model catalog, and forwards completions with SSE stream conversion. Designed for local development and requires manual provider bootstrap for first use. Differentiators: direct Zed integration, Linux secret-tool support, and SSE conversion from newline-delimited JSON.
npm install opencode-zed-auth-fixedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows local install, provider bootstrap, authentication, and a quick model query. Uses symlink to plugin file and runs bootstrap to register provider.
Run 'bun run bootstrap-config' to seed provider entry in opencode.json.
When pasting, provide the entire secret string including 'secret = ...'
Use paste credentials method on non-Linux platforms.
Run 'bun run bootstrap-config' and ensure symlink is in ~/.opencode/plugins/zed-auth.js.
Run 'npm install opencode-zed-auth-fixed' or symlink index.mjs directly.
Install libsecret-tools (e.g., apt install libsecret-tools) or use paste method.