A set of TypeScript plugins for OpenCode, the AI coding agent, covering model info, git status, sleep prevention, and session search.
vimtor/opencode-plugins
A personal collection of OpenCode V2 plugins adding Postgres and MySQL query tools, secret handling, plan-mode switching, session management, and more.
- Stars
- 30
- Forks
- 3
- Open issues
- 0
- Last commit
- 11 days ago
What is it?
This repository is a monorepo of 18 small plugins for OpenCode V2 (beta), the AI coding agent. Each plugin lives in its own npm package and can be installed independently. They fall into a few groups: database tools (opencode-postgres and opencode-mysql, which add SQL query tools against a configured database), agent safety and control (opencode-blindfold lets agents use secrets without seeing their values, and opencode-supervisor has a supervisor model stop runs that break instructions), and session workflow helpers (switching from plan to build mode, sending a continue prompt on empty input, opening a session's pull request, and compacting idle sessions before their prompt cache expires).
Other plugins cover model selection and resilience: opencode-auto-model picks a model and variant on a session's first prompt, opencode-fallback-model switches to backup models when one fails, and opencode-hide-variants hides unwanted variants. Tab and link utilities include opencode-quick-links, opencode-external-tabs, and opencode-bubble-tabs. opencode-agent-meetup lets agents in different sessions, on any machine, send each other messages.
The repo is built with Bun and tested with bun:test. Plugins with a TUI part also ship a desktop part, and the Postgres and MySQL plugins can be exercised against local containers started with Docker Compose.
Key features
- 01Postgres and MySQL 8+ query tools for running SQL against configured databases
- 02Secret handling that lets agents use credentials without seeing their values
- 03Automatic switch from plan mode to build agent on phrases like 'go ahead'
- 04Fallback models that take over a session when its model fails
- 05Agent-to-agent messaging across sessions on any machine
Use cases
- Letting an OpenCode agent inspect a development Postgres or MySQL database
- Keeping API keys and passwords out of an agent's visible context
- Keeping long coding sessions running when a primary model becomes unavailable
- Coordinating several agent sessions working on related parts of a project
Quick start
- 1
Use Bun 1.4.0 and install dependencies
bun install - 2
Build all plugins
bun run build - 3
Run the test suite
bun run test
Things to know
- Built for OpenCode V2, which the README describes as beta.
- Requires Bun 1.4.0 for the development workflow.
- The Postgres and MySQL plugins need a configured database, and the local test setup uses Docker.
In collections
Topics
FAQ
- What is opencode-plugins?
- A personal collection of OpenCode V2 plugins adding Postgres and MySQL query tools, secret handling, plan-mode switching, session management, and more. This repository is a monorepo of 18 small plugins for OpenCode V2 (beta), the AI coding agent. Each plugin lives in its own npm package and can be installed independently. They fall into a few groups: database tools (opencode-postgres and opencode-mysql, which add SQL query tools against a configured database), agent safety and control (opencode-blindfold lets agents use secrets without seeing their values, and opencode-supervisor has a supervisor model stop runs that break instructions), and session workflow helpers (switching from plan to build mode, sending a continue prompt on empty input, opening a session's pull request, and compacting idle sessions before their prompt cache expires).
- Is opencode-plugins free to use? What license does it have?
- opencode-plugins is open source under the MIT license. Check the license terms before using it in commercial products.
- Is opencode-plugins still maintained?
- Actively maintained. The last commit to opencode-plugins was on Oct 27, 2026.
- What can I use opencode-plugins for?
- Letting an OpenCode agent inspect a development Postgres or MySQL database Keeping API keys and passwords out of an agent's visible context Keeping long coding sessions running when a primary model becomes unavailable Coordinating several agent sessions working on related parts of a project
- How do I install opencode-plugins?
- Use Bun 1.4.0 and install dependencies: bun install Build all plugins: bun run build Run the test suite: bun run test
- Where can I get opencode-plugins?
- The source code and installation instructions are on GitHub: https://github.com/vimtor/opencode-plugins
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A self-hosted memory layer for AI agents that stores explicit facts with sources and shares one brain across agents, MCP clients and the CLI.
Pi, the AI coding agent, compiled ahead of time to native code so it starts faster and uses less CPU than Pi on Bun or Node.
A local-first desktop workspace for AI coding agents, with persistent sessions, multi-model support, subagents, and a plugin system.
A curated, community-maintained list of plugins for DeepSeek Harness (dsh), a coding agent built on a plugin-based framework.
Self-hosted search aggregator that queries multiple engines and shows results in one page, extensible with plugins.