Skip to content

danilofalcao/opencode-observability

Repository files navigation

OpenCode Observability

Real-time monitoring and visualization for OpenCode agents.

Dashboard

Quick Start

1. Install Bun

curl -fsSL https://bun.sh/install | bash

2. Install the Plugin

./scripts/setup.sh

3. Start the System

./scripts/start-system.sh

Opens:

This installs a global plugin that tracks ALL your OpenCode sessions across ALL projects.

Restart OpenCode to activate.

Requirements

  • Bun 1.0+
  • OpenCode (the AI agent)
  • Linux, WSL, or macOS

What It Tracks

  • Tool executions (before/after)
  • Session lifecycle (created, idle, error, stopped)
  • Messages and permissions
  • Full I/O capture with JSON details

Event Flow

OpenCode → Plugin → HTTP POST → Bun Server → SQLite → WebSocket → Vue Dashboard

Configuration

Optional environment variables:

# Server (apps/server/.env)
PORT=4000
DB_PATH=./data/events.db

# Plugin (.env.opencode.observability)
OPENCODE_OBSERVABILITY_URL=http://localhost:4000

Credits

Inspired by claude-code-hooks-multi-agent-observability by @disler.

License

MIT

About

Real-time monitoring and visualization for OpenCode agents.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published