Installation¶
Charts is an OpenCode plugin. It has no provider, no account and no credentials, so there is nothing to sign in to.
Requirements¶
- OpenCode
>=2.4.1 <2.5.0, tested on 2.4.1. Outside the range the plugin refuses to start withHOST_UNTESTED. - A workspace with the data files a call names. Charts reads them and writes its output inside the same workspace.
Install¶
Install from a release tag:
The package is @we-the-rebel-alliance/charts-plugin. It exports the server entry and the terminal UI, and it has no runtime dependencies. The repository commits dist/, so a Git install needs no build step.
Configure¶
Options are read from the plugin's entry in opencode.json(c):
{
"plugins": [
["github:we-the-rebel-alliance/charts-plugin#v0.0.3", { "theme": "light", "outDir": "outputs/charts" }]
]
}
Every option has a default. The full table is in Configuration.
Check it works¶
Ask the session for the plugin's status, or call tools.charts.status from Code Mode.
status answers the plugin's version, its tested host range and the empty account list the contract defines for a plugin with no accounts. tools.charts.capabilities lists every method, and tools.charts.catalogue lists the 79 chart types, each with a working example.
Access¶
access decides how much the plugin's methods may do:
| Level | Reads | Writes |
|---|---|---|
all (default) | run | run |
ask-changes | run | ask first |
read-only | run | are off |
A read is validate, recommend, capabilities, catalogue, themes, status, state, theme_get and the nine plan_* methods. The nine commits (render, quick, update, board, table, diagram, theme_save, theme_sync, theme_clear) are writes. Every commit takes only the planId its plan answered. The three theme commits ask even under all, because they change what every later render in the session uses.
An agent's own rules still narrow the plugin's level, and a per-tool rule wins for that one tool for that account.
Update¶
Install a newer release tag with the same command, naming the new tag. The plugin keeps no state outside the workspace, so an update changes nothing in the files a chart wrote.