Use your own wallpapers in OpenCode Desktop.
video.wallpapers.-.under.10MB.mp4
opencode plugin add 'github:viralcodex/opencode-backdrop#v0.3.1'This installs the plugin globally. Alternatively, add it to your global opencode.json or opencode.jsonc, keeping any existing plugins. Do not add it to cli.json.
Images and HTML (WebGL self-contained animated wallpapers) must be non-empty and no larger than 8 MiB and videos can be up to 256 MiB.
- Open Settings > Wallpapers.
- Choose Change folder to use a local folder, or + to upload an image.
- Select a wallpaper and adjust tint, brightness and fit.
- Use
/wallpaperin chat to switch images or turn wallpaper off. - Folders support PNG, JPEG, WebP, SVG, GIF, APNG, MP4, WebM, and self-contained HTML, including subfolders.
- Uploads support PNG, JPEG, WebP, GIF and APNG. Add video and HTML through the wallpaper folder.
- Videos play muted and loop continuously. MP4 with H.264 is recommended; other codecs depend on Desktop support.
- HTML wallpapers run in a sandbox without access to the OpenCode interface or local storage. (CSP blocks external scripts, styles, assets, and fetch requests. Add only from trusted sources.)
- Turn Wallpaper slideshow on to cycle through all wallpapers in gallery order, regardless of the gallery filter.
- Choose Fade and set Display time in seconds, from 5 to 86400. The default is 60 seconds.
You can set an initial folder with an absolute path instead of choosing one in Settings:
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
{
"package": "github:viralcodex/opencode-backdrop#v0.3.1",
"options": { "folder": "/absolute/path/to/wallpapers" },
},
],
}The folder chosen in Settings takes precedence over this option.
Use Bun 1.4.4, as pinned in package.json.
bun run check
bun run test:storage /path/to/opencode
{ "$schema": "https://opencode.ai/config.json", "plugins": ["github:viralcodex/opencode-backdrop#v0.3.1"], }