What it captures
For each AI assistant message in your OpenCode session, the plugin records:| Data | Description |
|---|---|
| Model and provider | Which LLM model and provider was used (e.g., Claude Sonnet 4 via Anthropic) |
| Token usage | Input tokens, output tokens, reasoning tokens, cache reads, and cache writes |
| Cost | Dollar cost of the interaction |
| Git context | Repository URL, branch name, and current commit SHA |
| Commit detection | When a git commit or git merge happens during a session, the plugin captures the commit SHA |
| Session metadata | Session 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.