oc-plugin-the-matrix
v0.5.0
Published
Matrix-inspired TUI rain, intro, and theme for OpenCode.
Maintainers
Readme
oc-plugin-the-matrix
Matrix-inspired TUI plugin for OpenCode.
It adds a Matrix-inspired theme with selectable accent colors, toggleable background transparency, animated rain, a cinematic startup intro, and optional session text that briefly drops into place.
Screencast
Click the preview to open the full video.
Features
- selectable accent colors:
Green,Cyan,Blue,Purple,Amber,Yellow,Pink, andRed - toggleable transparent or opaque
matrix-consoletheme background - fullscreen boot-style intro
- Matrix rain on the home screen or across the full UI
- route-aware
adaptiveanduniformintensity profiles - scanline and glow post-processing
- command-palette settings dialog with persisted preferences
- optional session-text settle effect for newly rendered text in sessions
Install
Package install
Published package:
npm view oc-plugin-the-matrix versionCurrent release: 0.2.0
Add the plugin by package name in your OpenCode config:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"oc-plugin-the-matrix"
]
}Then start or restart OpenCode.
If your OpenCode version supports it, you can also install it with:
opencode plugin oc-plugin-the-matrixIf you want to pin a specific package version in config, use:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"[email protected]"
]
}Local development install
- Clone this repository somewhere on your machine.
- Register it in
~/.config/opencode/tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"/absolute/path/to/oc-plugin-the-matrix"
]
}- Start or restart OpenCode.
The plugin installs the bundled matrix-console theme and sets it automatically on first load.
Development
Build the package artifact with:
npm install
npm run buildThis produces a publishable dist/ directory containing the plugin entrypoint and all bundled theme variants.
Usage
Open the command palette and run Matrix settings.
Available commands:
Matrix settingsEnable Matrix plugin/Disable Matrix pluginReplay Matrix introUse matrix-console theme
Settings
Plugin enabled: master on/off switch for the Matrix theme and effectsAccent color: switch betweenGreen,Cyan,Blue,Purple,Amber,Yellow,Pink, andRedBackground transparency: toggle the bundled Matrix theme between transparent and opaque backgroundsScope:Home onlyorEverywhereRoute profile:Route-awareorUniformPaint mode: draw only in empty cells or overlay all textDensity:Light,Medium, orHeavySpeed:Slow,Normal, orFastScanlines: CRT-style sweep layerGlow: phosphor glow around bright glyphsSession text settle: newly rendered session text briefly descends into placeIntro: enable or disable the fullscreen introIntro length:Short,Normal, orLong
Session text settle is meant for Scope: Everywhere and applies only on session routes.
When the plugin is turned off, it stops the Matrix effects and restores the previous theme when one is available, falling back to the default opencode theme.
Repository Layout
index.ts: TUI plugin entrydist/: publishable package output generated bynpm run buildmatrix-console.json: transparent bundled themematrix-console-opaque.json: opaque bundled theme variantmatrix-console-*.json: bundled accent theme variants
Notes
- Requires OpenCode
>=1.3.13. - The repository intentionally excludes local OpenCode state, KV settings, logs, and
.opencode/workspace files. - Runtime preferences are stored by OpenCode on the local machine after installation.
License
MIT

