Documentation Index
Fetch the complete documentation index at: https://docs.asymptotelabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
OpenCode
Beacon supports OpenCode through a managed local plugin that invokesbeacon-hooks.
Prerequisites
Before enabling OpenCode telemetry, make sure:- OpenCode is installed and available as the
opencodeexecutable or has a local config directory. beacon endpoint installhas run so shared endpoint config and runtime log paths exist.- Beacon’s OpenCode plugin is installed with
beacon endpoint hooks install --harness opencode. - OpenCode is restarted after plugin install or removal so new sessions load the updated plugin.
Collection path
Beacon installs an owned OpenCode plugin at~/.config/opencode/plugins/beacon.ts for user-level hooks or ./.opencode/plugins/beacon.ts for project-level hooks. The plugin forwards supported OpenCode hook payloads to Beacon’s hook adapter.
Discovery and status
Beacon detects OpenCode through theopencode executable or ~/.config/opencode, then checks for Beacon plugin configuration.
Use beacon endpoint hooks status --harness opencode to inspect OpenCode plugin status.
Install or configuration support
beacon endpoint install prepares shared endpoint config and runtime log paths. Install OpenCode hooks separately:
Telemetry coverage
| Area | Support |
|---|---|
| Prompt telemetry | Supported through chat.message hooks |
| Command, tool, and file telemetry | Supported for chat messages, session events, command execution, permission activity, diffs, and errors where OpenCode exposes payloads |
| Local JSONL and dashboard | Supported |
| MDM deployment | Supported for the endpoint agent; OpenCode plugins are installed separately in the logged-in user’s context |
Deployment notes
Restart OpenCode after installing or removing hooks so new sessions pick up the updated plugin configuration. For local troubleshooting, setBEACON_OPENCODE_DEBUG=1 in the environment that launches OpenCode to emit best-effort plugin debug logs. Beacon telemetry should not interrupt OpenCode execution if the hook command fails.
Related
Supported agent harnesses
Return to the runtime support overview.
Hooks
Install, inspect, and uninstall runtime hook integrations.

