integrate-flowlines-opencode-plugin
Flowlines OpenCode Plugin Integration Guide
This document helps AI coding agents integrate the @flowlines/opencode-plugin into an OpenCode project.
What is the Flowlines OpenCode Plugin?
@flowlines/opencode-plugin is an OpenCode plugin that captures OpenTelemetry spans and exports them to Flowlines for observability and tracing of AI coding sessions. It initializes the Flowlines SDK, sets up an OpenTelemetry NodeSDK with a Flowlines span processor, and automatically exports all LLM-related spans to the Flowlines backend. The SDK is automatically shut down on process exit.
Prerequisites
- An OpenCode project with a
.opencode/opencode.jsoncconfiguration file - A Flowlines API key
Installation
There is nothing to install manually. OpenCode resolves plugins automatically from npm when listed in the config.
Configuration
More from flowlines-ai/skills
integrate-flowlines-sdk-js
Integrates the @flowlines/sdk into a Node.js/TypeScript/Next.js codebase. Use when adding Flowlines observability and memory to an AI/LLM application, setting up OpenTelemetry instrumentation for AI libraries, or when the user asks to add Flowlines monitoring or memory.
18integrate-flowlines-sdk-python
Integrates Flowlines observability / memory SDK into Python LLM applications. Use when adding Flowlines telemetry, instrumenting LLM providers, or setting up OpenTelemetry-based LLM monitoring.
16