Skip to the page

Use SpecStream in Codex

Add SpecStream to OpenAI's Codex CLI with one command. Codex then searches the live web, reads the pages it finds and builds lists, with a source on every value.

What you need

  • A SpecStream account. Start free: $2 of credit, no card.

The server address is the same for every client:

Server address
https://api.specstream.ai/mcp

Connect

  1. Run this in a terminal. Codex saves a [mcp_servers.specstream] table to ~/.codex/config.toml and opens your browser at SpecStream's sign-in.
Terminal
codex mcp add specstream --url https://api.specstream.ai/mcp
  1. Sign in, or create an account, and approve the access Codex asks for. Codex registers itself, so there is no client ID and no key to paste. The terminal prints Successfully logged in.
  2. Run codex mcp list to see SpecStream. In a session, type /mcp to see its tools.

If no browser opened, or you work over SSH, run the command below. Open the address it prints, sign in, and paste the full redirect address back into the terminal.

Terminal
codex mcp login specstream --no-browser

Or use an API key

Create an API key

  1. Open Agents & API in the workspace and choose API keys.
  2. Choose Create API key. Give it only what the task needs: read, prepare or execute permissions, the projects it may use, an expiry and a spending limit.
  3. Copy the key when it's shown. It isn't shown again.

Add the server with the key

Put this table in ~/.codex/config.toml. Codex reads the key from the environment variable that bearer_token_env_var names, so the key never sits in the file. Set it in the shell Codex starts from: export SPECSTREAM_API_KEY="YOUR_SPECSTREAM_API_KEY".

~/.codex/config.toml
[mcp_servers.specstream]
url = "https://api.specstream.ai/mcp"
bearer_token_env_var = "SPECSTREAM_API_KEY"
[mcp_servers.specstream.tools.authorize_capacity_work]
approval_mode = "prompt"

The second table makes Codex ask you before it starts paid work, whatever its other approval settings say.

More on sessions, approvals and the tools Codex calls is in the full Codex CLI guide.

What it costs

A new account starts with $2 of credit, no card. A web search from your agent is $1 per 1,000 searches on the fast tier and $5 per 1,000 on the default tier. Reading pages is $0.80 per 1,000 pages. A list is priced before it runs, and nothing is spent until you approve a maximum.

For steady use, start the Starter plan: $49 a month of credit, enough for 49,000 fast searches.

Try it

Once Codex shows SpecStream's tools, ask in your own words:

Use SpecStream to find the current stable release of Node.js and read its release notes. Show me the price first.

SpecStream reads the request back and gives you the price. Nothing is spent until you approve a maximum, and you pay per match, each with its source.

Set access and spending limits

An agent works on your account, with the same balance, permissions and spending limits you have. Give its key the least it needs: read, prepare or execute permissions, project limits, an expiry and a spending ceiling. Paid work needs an approved price with a ceiling, and reading, exporting and sharing cost nothing.

More

Get started free

Codex's own documentation: OpenAI Codex: Model Context Protocol.