opencode-session-state@2.0.0
Intelligent session state manager for OpenCode — preserves context across compactions, model switches, and long sessions
AI security review
scanned · by lpm-firewall-aiThe package defaults to sending provider credentials and session content to OpenCode Zen, including keys belonging to OpenAI, NVIDIA, or OpenRouter, without requiring explicit provider selection. This is an automatic cross-service credential disclosure, so the package is malicious.
Decision evidence
public snapshot- The default API endpoint is https://opencode.ai/zen/v1.
- Without an explicit key, configuration automatically selects OPENROUTER_API_KEY, OPENCODE_ZEN_API_KEY, NVIDIA_API_KEY, or OPENAI_API_KEY.
- The summarizer sends its configured key as a Bearer token and submits the generated session summary request.
- Automatic summarization is enabled by default and runs after session turns accumulate.
- The README says the plugin uses no external service and keeps persistence local.
- The endpoint and API key can be overridden through plugin options.
- The package’s purpose includes incremental LLM summarization, which sends session content to a model provider.
- opencode.ai
Findings
4 high · 2 medium · 6 lowWhere they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
dist/config.js2 highdist/summarizer.js1 highdist/session-manager.js1 highShow all 12 findings
dist/config.js2 findingsdist/summarizer.js1 findingdist/session-manager.js1 findingSource & flagged code
4 flaggedThe default API endpoint is https://opencode.ai/zen/v1.
dist/config.jsView on unpkg · L6Code excerpt · 8 lines
Without an explicit key, configuration automatically selects OPENROUTER_API_KEY, OPENCODE_ZEN_API_KEY, NVIDIA_API_KEY, or OPENAI_API_KEY.
dist/config.jsView on unpkg · L58Code excerpt · 10 lines
The summarizer sends its configured key as a Bearer token and submits the generated session summary request.
dist/summarizer.jsView on unpkg · L223Code excerpt · 6 lines
Automatic summarization is enabled by default and runs after session turns accumulate.
dist/session-manager.jsView on unpkg · L240Code excerpt · 10 lines
Affected versions and remediation
This report applies to opencode-session-state@2.0.0.
See all versions of opencode-session-state for other recorded verdicts.
- Avoid installing opencode-session-state@2.0.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.