@radenadri/ohmydashboard
v0.6.1
Published
Agent monitoring dashboard for OpenCode — run with bunx ohmydashboard
Downloads
30
Readme
OhMyDashboard
Agent monitoring dashboard for OpenCode and OhMyOpenCode.
See which agents are running, how many tokens you've burned, and what your sessions look like — all in one place.

Quick Start
bunx @radenadri/ohmydashboard@latestOpens at http://127.0.0.1:51234. That's it.
Options
bunx @radenadri/ohmydashboard --port 8080 # custom port
bunx @radenadri/ohmydashboard --host 0.0.0.0 # expose to networkFeatures
- 5 Summary Cards — Total sessions, messages, tokens, cost, and active agents at a glance
- Active Agents — Live view of running agents with model, directory, message count, and elapsed time
- Agent Leaderboard — Who's doing all the work (ranked by message count)
- Cost History — 14-day area chart of estimated costs
- Model Distribution — Donut chart showing which models get the most use
- Activity Heatmap — GitHub-style 7-day heatmap (hour x day-of-week)
- Session Table — Full session list with TanStack Table: sorting, search, agent filter, pagination, expandable rows
- Date Filtering — Today / Week / Month / All toggle
- Auto-refresh — Dashboard updates every 15 seconds
- Dark Mode — Because obviously
How It Works
OhMyDashboard reads OpenCode's local JSON storage directly from:
~/.local/share/opencode/storage/
├── sessions/ # Session metadata
├── messages/ # Message content
├── parts/ # Message parts (tool calls, results)
└── projects/ # Project registryNo database, no API keys, no configuration. If OpenCode runs on your machine, the dashboard just works.
Development
git clone <repo>
cd ohmydashboard
npm install
npm run devThis starts two processes:
- Vite dev server on
:5174(frontend with HMR) - Hono API server on
:3456(backend)
Build
npm run build # TypeScript check + Vite buildProduction (local)
bun bin/cli.ts # Single server on :51234Tech Stack
| Layer | Tech | |-------|------| | Frontend | React 19, Tailwind CSS v4, Recharts, TanStack Table, Lucide Icons | | Backend | Hono (serves API + static SPA) | | Runtime | Bun (CLI + server) | | Build | Vite 7, TypeScript 5.9 |
Project Structure
ohmydashboard/
├── bin/cli.ts # CLI entry (bunx ohmydashboard)
├── server/
│ ├── index.ts # Hono app + dev server
│ ├── opencode-reader.ts # Reads OpenCode JSON storage
│ └── cache.ts # TTL cache (30s)
├── src/
│ ├── App.tsx # Dashboard layout
│ ├── components/
│ │ ├── Logo.tsx # SVG logo
│ │ └── dashboard/ # All dashboard panels
│ ├── hooks/
│ │ └── useDashboardData.ts # Data fetching + auto-refresh
│ └── types/opencode.ts # TypeScript interfaces
├── public/favicon.svg
└── package.jsonRequirements
- Bun >= 1.1.0
- OpenCode installed and used (needs
~/.local/share/opencode/storage/to exist)
Quick Diagnostics (if bunx fails)
If you see module resolution errors (example: Cannot find module '@hono/node-server'), run:
# inspect what would be published
npm pack --dry-run
# verify runtime dependency classification
npm run verify:runtime-imports
# verify packed artifacts contain CLI + runtime server files
npm run verify:pack
# full end-to-end local tarball smoke test
npm run verify:smokeExpected smoke-test behavior:
- Local tarball installs to temp directory
- CLI boots successfully
GET /api/statsreturns200/(dashboard UI) returns200
Safe Release Checklist
Before npm publish, run:
npm run release:verifyThis executes, in order:
- Runtime import audit (
verify:runtime-imports) - Full build (
npm run build) - Pack integrity check (
verify:pack) - Local tarball smoke test (
verify:smoke)
If any step fails, publish is blocked by prepublishOnly.
License
MIT
