Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

opencode-helicone-session

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-helicone-session

OpenCode plugin for Helicone session tracking - automatically injects session headers

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

opencode-helicone-session

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.

Installation

npm install -g opencode-helicone-session
# or
bun add -g opencode-helicone-session

Usage

Add 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 ID
  • Helicone-Session-Name - The session title

How It Works

  • 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

Custom Headers

If you specify your own Helicone-Session-Id or Helicone-Session-Name in your config, the plugin will not overwrite them.

Requirements

  • OpenCode v0.15.0 or later
  • A Helicone account

License

MIT

Keywords

opencode

FAQs

Package last updated on 10 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts