An OpenCode plugin that automatically injects Helicone session headers into your LLM requests. This groups all requests from the same OpenCode session together in Helicone's dashboard.
npm install -g opencode-helicone-session
# or
bun add -g opencode-helicone-sessionAdd the plugin to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-helicone-session"],
}That's it! The plugin will automatically add:
Helicone-Session-Id- A consistent UUID derived from the OpenCode session IDHelicone-Session-Name- The session title
- The plugin listens for OpenCode session events (
session.created,session.updated) - On each LLM request, it injects the session headers via a custom fetch wrapper
- All requests in the same session are grouped together in Helicone
If you specify your own Helicone-Session-Id or Helicone-Session-Name in your config, the plugin will not overwrite them.
- OpenCode v0.15.0 or later
- A Helicone account
MIT