{"id":26047,"library":"opencode-qoder-auth","title":"opencode-qoder-auth","description":"An opencode plugin that bundles Qoder AI provider access for OpenCode CLI. Current version 0.2.6, released automatically on each push to main. No manual provider configuration required; 11 models including a free lite tier. Uses a vendored Qoder SDK to avoid npm registry dependencies. Supports attachment fallback for images via qodercli. Distinct from other opencode auth plugins by being fully self-contained with zero-config setup.","status":"active","version":"0.2.6","language":"javascript","source_language":"en","source_url":"https://github.com/zxcrf/opencode-qoder-auth","tags":["javascript","opencode","opencode-plugin","opencode-auth","qoder","ai","plugin"],"install":[{"cmd":"npm install opencode-qoder-auth","lang":"bash","label":"npm"},{"cmd":"yarn add opencode-qoder-auth","lang":"bash","label":"yarn"},{"cmd":"pnpm add opencode-qoder-auth","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only (node>=20). CJS require() will fail.","wrong":"const opencodeQoderAuth = require('opencode-qoder-auth')","symbol":"default","correct":"import opencodeQoderAuth from 'opencode-qoder-auth'"},{"note":"Named export, not default.","wrong":"import QoderProvider from 'opencode-qoder-auth'","symbol":"QoderProvider","correct":"import { QoderProvider } from 'opencode-qoder-auth'"},{"note":"Named export of model list.","wrong":"const { models } = require('opencode-qoder-auth')","symbol":"models","correct":"import { models } from 'opencode-qoder-auth'"}],"quickstart":{"code":"// Ensure Qoder CLI is installed and logged in\n// Run: qoder login\n\n// Install opencode globally\n// npm install -g opencode-ai\n\n// Add plugin to opencode config\n// ~/.config/opencode/opencode.json:\n{\n  \"plugin\": [\"opencode-qoder-auth\"]\n}\n\n// Use opencode with qoder models\n// Free lite model:\n// opencode run -m qoder/lite \"say hello\"\n\n// Paid auto model:\n// opencode run -m qoder/auto \"explain async/await\"\n\n// Interactive session:\n// opencode -m qoder/auto\n","lang":"typescript","description":"Installation and basic usage of opencode-qoder-auth plugin with opencode CLI."},"warnings":[{"fix":"Upgrade Node.js to v20 or later.","message":"Package requires node >=20.0.0. Older versions will fail to import.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Add 'opencode-qoder-auth' to the 'plugin' array in ~/.config/opencode/opencode.json.","message":"Plugin is auto-discovered only when run inside the repository or with correct plugin config. Missing plugin config leads to 'model not found' error.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure qodercli is installed and ~/.qoder/bin/qodercli/ is on PATH.","message":"Image input uses attachment fallback via qodercli; not all models support end-to-end image streaming.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Run 'qoder login' and restart opencode.","message":"User must be logged into Qoder CLI (qoder login) before using. Otherwise auth prompt appears.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add 'opencode-qoder-auth' to 'plugin' array in opencode.json. If running locally, ensure .opencode/plugins/qoder-auth.ts exists.","cause":"Package not installed or plugin entry missing in opencode config.","error":"Error: Cannot find module 'opencode-qoder-auth'"},{"fix":"Install Qoder CLI and ensure ~/.qoder/bin/qodercli/ is in PATH.","cause":"Qoder CLI is not installed or not in PATH.","error":"qodercli not found"},{"fix":"Run 'qoder login' and follow browser OAuth flow.","cause":"Qoder CLI session not established.","error":"Auth prompt: Run 'qoder login' in your terminal to authenticate"},{"fix":"Use a valid model ID from the table (e.g., lite, auto, efficient). Ensure plugin is configured correctly.","cause":"Model ID doesn't match available models or plugin not loaded.","error":"Model not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}