SpecStream CLI and Raycast Script Commands: live web search and page to Markdown from your terminal and launcher
One file, bin/specstream, on the Python standard library, plus five Raycast Script Commands that call it. Search the live web with SpecStream, the live web data engine, turn any page, PDF or Office file into clean Markdown, and find public data lists without leaving the keyboard.
git clone https://github.com/specstream/specstream-cli-raycast-scripts
cd specstream-cli-raycast-scripts
./bin/specstream checkAPI reachable: 70 drop-in APIs on 78 routes at https://api.specstream.ai
Key: not set (search and extract need one; lists and sample do not)
| Command | What you get | Key | Price |
|---|---|---|---|
specstream search "question" |
a direct answer when the pages give one, then ranked results with URL, date and snippet | yes | $1 per 1,000 fast searches |
specstream extract URL [URL ...] |
each page's main text as Markdown, up to 20 at once | yes | $0.80 per 1,000 pages |
specstream lists "words" |
public data lists that match, with rows and price | no | free |
specstream sample /data/bank-failures |
a list's 10 newest rows as CSV, every value quoted as text | no | free |
specstream check |
the API is up, and whether your key is found | no | free |
Get a key under Agents & API at specstream.ai/workspace. A new account gets $2 of credit with no card, which is 2,000 fast searches. Then either:
export SPECSTREAM_API_KEY=your_key # for the terminal
mkdir -p ~/.config/specstream && printf '%s\n' your_key > ~/.config/specstream/api_key && chmod 600 ~/.config/specstream/api_keyThe CLI reads the environment first and the file second. Raycast runs scripts without your shell profile, so it uses the file (the Set SpecStream API Key command writes it for you).
Put it on your path with ln -s "$PWD/bin/specstream" /usr/local/bin/specstream, then:
specstream search "EU AI Act obligations for general purpose models"
specstream extract https://www.federalreserve.gov/monetarypolicy/openmarket.htm > notes.md
specstream lists "bank failures georgia"
specstream sample /data/crowdfunding > newest_form_c.csvIn Raycast, open Settings, Extensions, the plus button, Add Script Directory, and pick the raycast folder of this clone.
| Command | Mode | What it does |
|---|---|---|
| Search the Web | full output | live search for the question you type |
| Read Page as Markdown | full output | the URL you type, or the one on the clipboard, as Markdown |
| Copy Clipboard URL as Markdown | compact | reads the URL on the clipboard and puts the page's Markdown back on it, ready to paste into a chat or a note |
| Find a Data List | full output | public data lists by words, no key |
| Set SpecStream API Key | compact | saves your key to ~/.config/specstream/api_key, readable by you only |
The scripts run on the bash 3.2 that ships with macOS and use only pbpaste and pbcopy beyond Python 3 (on a new Mac, xcode-select --install adds it).
python3 -m unittest discover tests runs the CLI and every Raycast script against a local stub of the API's reply shapes, with a null answer, null titles and dates, empty CSV cells, the no key path and the key file's permissions. Every script passes bash -n on bash 3.2.57. check, lists and sample were run live.
First on WideSearch and 99 on SimpleQA Verified (benchmarks), at $1 per 1,000 fast searches with a 937 ms median over 6,548 live calls in the 7 days to December 1, 2026. The same key answers 70 drop-in APIs on 78 routes, so code written for Google Custom Search, Bing, Tavily, Exa, SerpApi or Firecrawl keeps its client and changes its base address (every drop-in API).
| Price | |
|---|---|
| Free credit on sign-up | $2, which is 2,000 fast searches, no card |
| Fast search | $1 per 1,000 |
| Default search tier | $5 per 1,000 |
| Extract API, page text as Markdown | $0.80 per 1,000 pages |
| Monthly Pro Pass | $49 a month: 5,000 ready list rows a month and $49 of API credit |
- Search API: specstream.ai/search-api
- Extract API: specstream.ai/extract-api
- Public data lists: specstream.ai/data
- Prices: specstream.ai/pricing
MIT