{"id":28012,"library":"opencode-zed-auth-fixed","title":"OpenCode Zed Auth","description":"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.","status":"active","version":"0.0.11","language":"javascript","source_language":"en","source_url":"https://github.com/KorigamiK/opencode-zed-auth","tags":["javascript","authentication","auth","zed","openai","opencode","plugin","ai","token"],"install":[{"cmd":"npm install opencode-zed-auth-fixed","lang":"bash","label":"npm"},{"cmd":"yarn add opencode-zed-auth-fixed","lang":"bash","label":"yarn"},{"cmd":"pnpm add opencode-zed-auth-fixed","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Plugin runtime; requires OpenCode to be installed and configured.","package":"opencode","optional":true}],"imports":[{"note":"ESM-only; no CommonJS support.","wrong":"const plugin = require('opencode-zed-auth-fixed')","symbol":"default","correct":"import plugin from 'opencode-zed-auth-fixed'"},{"note":"Named export for custom provider creation; not typically used directly.","wrong":null,"symbol":"createProvider","correct":"import { createProvider } from 'opencode-zed-auth-fixed'"},{"note":"Ensure exact casing; case-sensitive import.","wrong":"import { ZedPlugin } from 'opencode-zed-auth-fixed'","symbol":"ZedAuthPlugin","correct":"import { ZedAuthPlugin } from 'opencode-zed-auth-fixed'"}],"quickstart":{"code":"mkdir -p ~/.opencode/plugins\nln -sfn $(pwd)/index.mjs ~/.opencode/plugins/zed-auth.js\nbun run bootstrap-config\nopencode auth login\n# Select 'Other' -> provider id: 'zed' -> 'Use local Zed desktop credentials (Linux)'\nopencode models zed\nopencode run -m zed/gpt-5-nano \"say hello in one short sentence\"","lang":"typescript","description":"Shows local install, provider bootstrap, authentication, and a quick model query. Uses symlink to plugin file and runs bootstrap to register provider."},"warnings":[{"fix":"Run 'bun run bootstrap-config' to seed provider entry in opencode.json.","message":"Provider not found: zed on first run if plugin is not bootstrapped properly.","severity":"gotcha","affected_versions":">=0.0.11"},{"fix":"When pasting, provide the entire secret string including 'secret = ...'","message":"Manual credential paste requires full 'secret =' value, not just inner token.","severity":"gotcha","affected_versions":">=0.0.11"},{"fix":"Use paste credentials method on non-Linux platforms.","message":"Linux-only secret-tool authentication; no macOS or Windows credential store support.","severity":"breaking","affected_versions":">=0.0.11"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'bun run bootstrap-config' and ensure symlink is in ~/.opencode/plugins/zed-auth.js.","cause":"Provider not registered in opencode.json, or plugin not symlinked correctly.","error":"Provider not found: zed"},{"fix":"Run 'npm install opencode-zed-auth-fixed' or symlink index.mjs directly.","cause":"Package not installed or not resolvable in current directory.","error":"Error: Cannot find module 'opencode-zed-auth-fixed'"},{"fix":"Install libsecret-tools (e.g., apt install libsecret-tools) or use paste method.","cause":"secret-tool not installed (required for automatic credential retrieval on Linux).","error":"Error: secret-tool: not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}