A tiny ASCII duck paddles around your OpenCode sidebar and drops funny remarks about your work. It uses your session's model.
Type /duck <text> in the TUI to talk to the duck. The dialogue never enters the session's context or transcript.
The duck has three characters: classic, angry and robot. Run /duck.persona to switch the session on screen to the
next one; the art, the notices and the jokes change with it, and the duck greets you in its new voice. To start a session
with another character, set the persona option. A switch lasts until OpenCode restarts, and every session keeps its own
character.
Click [img] in the Ducksay heading, or run /duck.img, to save the duck's scene as a PNG. Pictures go to
.opencode/ducksay/screenshots/ in your project. The folder brings its own .gitignore, so they never reach git.
The duck jokes with the same model as your session. If that model is paid, you can give the duck a cheaper one:
{
"plugins": [{ "package": "opencode-ducksay", "options": { "llmModel": "opencode/big-pickle" } }]
}llmModel takes a model name in the "provider/model" form. Your session keeps its own model. If the model you named is
missing, the duck answers Quack-quack! instead of a joke.
Install the plugin with one command:
opencode plugin add opencode-ducksayOpenCode 2.0.28 or newer is required.
Restart OpenCode.
To enable it in one project only, add "opencode-ducksay" to the plugins array in that project's opencode.json
instead.
- How the duck behaves — swimming, jokes, questions, talking to the duck and the water.
- Configuration and options —
swimSpeed,silent,persona,llmTimeout,llmContextDepth,llmModeland the sidebar settings.
MIT © Evgeniy Arapov
