Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
opencode-plugin-vision
OpenCode plugin that enables image/vision capabilities for OpenAI-compatible custom providers.
Installation
opencode plugin opencode-plugin-vision
Or with a specific provider:
opencode plugin '["opencode-plugin-vision", {"provider": "my-provider"}]'
Usage
Add to your OpenCode config (~/.config/opencode/config.json):
{
"plugin": [
["opencode-plugin-vision", { "provider": "air-bizapps" }]
]
}
This will patch all models from the specified provider to declare:
capabilities.attachment = truecapabilities.input.image = true
Options
| Option | Default | Description |
|---|---|---|
provider |
"openai-compatible" |
Provider ID to patch (matches the key in your provider config) |
Why?
OpenCode's @ai-sdk/openai-compatible provider does not declare vision support by default. This plugin intercepts the provider's model list at runtime and adds the missing capability flags, allowing you to send images in your messages.