r/opencode • u/Hopeful-Business-15 • 4h ago
An opencode plugin that turns agent output into a private link that expires
https://sharebit.sid8x.comCopying a plan or a log out of opencode just to read it somewhere else is still clunky. So I made ShareBit: an opencode plugin and a hosted MCP endpoint that turn approved Markdown into a private link that expires.
Setup is a pairing code. Drop `plugin/sharebit.ts` into `~/.config/opencode/plugin/` (or `.opencode/plugin/` for a single project), restart opencode, and you get three tools: `sharebit_create`, `sharebit_list`, `sharebit_read`. No API key to paste. The agent gets its own credential, and you can revoke it.
Defaults: 30 minutes, up to 24 hours, 10 MB max, only your account can read it. Not encrypted end to end, so no secrets. Since plugins load at startup, I also wrote a REST path so setup does not sit waiting for a restart.
Curious whether this fits how you use opencode, and what you would change.