Skip to main content
The Periscope OpenCode plugin captures analytics events from your OpenCode coding sessions and sends them to Periscope. This gives your team visibility into AI coding tool usage — which models are used, how many tokens are consumed, what it costs, and how AI-assisted work connects to your git history.

What it captures

For each AI assistant message in your OpenCode session, the plugin records:
DataDescription
Model and providerWhich LLM model and provider was used (e.g., Claude Sonnet 4 via Anthropic)
Token usageInput tokens, output tokens, reasoning tokens, cache reads, and cache writes
CostDollar cost of the interaction
Git contextRepository URL, branch name, and current commit SHA
Commit detectionWhen a git commit or git merge happens during a session, the plugin captures the commit SHA
Session metadataSession ID, title, agent type, whether it is a sub-agent
Periscope is currently in private beta. Installation instructions will be available once you have access. Join the waitlist to get early access.

How it works

The plugin runs in the background during your OpenCode session. It does not interfere with the assistant or slow down your workflow.
  • After each assistant message, the plugin extracts model, provider, token counts, cost, and git context, then sends an analytics event to Periscope asynchronously.
  • When a git commit or merge happens, the plugin detects the commit SHA and associates it with your session. This is how Periscope connects AI-assisted coding to specific commits — enabling traceability from “AI wrote this code” to “this commit was deployed.”

Privacy and security

  • The plugin does not send code content, file contents, or conversation messages to Periscope
  • Only metadata (model, tokens, cost, git refs) is captured
  • Authentication uses industry-standard OAuth 2.0
  • All data is transmitted over HTTPS

Get early access

Join the waitlist to get access to the OpenCode plugin and AI coding analytics.