OpenCode
The SpecStream plugin gives OpenCode live web data on request. Every value in a record points to the page it was read from, and a run is priced before it starts and paid per match.
SpecStream for OpenCodeCoding agentsWhat you need
- A SpecStream account. Sign-up is free and includes $10 of work for 30 days.
- OpenCode 1.18.29 or newer, or OpenCode 2.
- 1
1. Add the plugin
Add
opencode-specstreamto the plugin list in your OpenCode config. OpenCode installs the package from npm the next time it starts. In OpenCode 2 the key ispluginsinstead ofplugin.OpenCode config - 2
2. Sign in to SpecStream
Run this command to open SpecStream's sign-in in your browser. Approve access there, and OpenCode keeps the token.
Terminal - 3
3. Ask the agent
Describe the records you want and the fields to return. For example:
In OpenCode
What the plugin adds
When OpenCode starts, the plugin adds SpecStream's server at https://api.specstream.ai/mcp to your config as specstream, and adds these skills. If you already wrote a specstream entry under mcp, the plugin leaves it alone.
compileturns your words into a request SpecStream can price.review-workfetches the exact price and when it expires.approve-workbegins the work after you approve that price.continue-workreads the finished rows, sends them where you work, and keeps them current.
Plugin options
Both parts are on by default. To turn one off, give the plugin an option in the list, for example ["opencode-specstream", { "skills": false }].
| Option | Default | Effect |
|---|---|---|
mcp | true | false leaves the server out. |
skills | true | false leaves the skills out. |
Use an API key
A machine with no browser can use a key instead. Create one in the workspace with Agents & API > API keys > Create API key. Scope it to what the task needs, and set an expiry and a spending limit.
Set it where OpenCode starts: export SPECSTREAM_API_KEY="YOUR_SPECSTREAM_API_KEY". With the variable set, the plugin sends the key as a bearer header and turns the browser sign-in off.
What comes back
The agent says back how it read your request, shows the price, and starts only after you say yes. Rows follow with their source pages. Export them as CSV, Excel, or JSON, or send them to Google Sheets, Notion, Airtable, HubSpot, or Salesforce.
Limits and cost
Pricing a request is free. A record costs 10 cents when it carries up to five facts, 30 cents for a fuller one, and $1 for the deepest. Contact details for a person cost extra: 10 cents for an email and 25 cents for a phone. If nothing matches, the bill is zero. Paid work needs execute access. Billing details
Remove
Delete opencode-specstream from the plugin list to remove it from OpenCode. To end its access, revoke it from Settings in your SpecStream workspace. Keys are revoked in Agents & API. The package is also on npm (opens in a new tab).
More
SpecStream for OpenCode covers what it does in OpenCode on one page. Every other tool has its guide in Connect your tools. You see the most a request can cost before it starts, and only the matches come out of your balance. Billing has the details. For help, email [email protected].