Skip to content
Guide

Setting up Parallel

Agent-focused web search with page excerpts chosen for your query.

On this page

Parallel's Search API is made for agents: each result comes with an excerpt from the page picked for your query. This guide covers what Parallel is, how to get a key, and how to connect it to Aldwin.

What Parallel is#

Parallel searches the web and returns, for each page, excerpts chosen to answer the query. Aldwin shows the first excerpt as the snippet. See Parallel.

Parallel accepts search queries of up to 200 characters, so Aldwin shortens longer queries for this provider only. Short keyword queries work best.

When Aldwin searches with Parallel, your query goes to Parallel over the internet. If you want search that stays on your own machine, use SearXNG instead.

What you need#

  • A Parallel account and API key
  • Aldwin installed (uv tool install aldwin)

Parallel is a paid API, charged per search. See Parallel pricing.

Get a key#

  1. Sign in at the Parallel platform.
  2. Open API keys and create a key.
  3. Copy the key. Treat it like a password.

Connect Aldwin#

In the web app#

  1. Open Settings from the bottom of the sidebar and choose Search.
  2. Find Parallel and select Connect.
  3. Paste your key and select Connect. Aldwin checks the key with Parallel before saving it, and tells you why if it does not work.
  4. If Parallel is not marked In use, select Use this one.

To remove it later, select Disconnect. You can also switch between connected providers from the search picker in the message box.

In the terminal#

  1. Start Aldwin and type /search.
  2. Use the arrow keys to pick Parallel under Not connected, then press Enter.
  3. Aldwin shows where to get a key. Paste it at Parallel API key: (the input is hidden) and press Enter.
  4. Aldwin shows Checking key…. The check is free: Aldwin asks Parallel about the key without running a search.
  5. When the key works you see ✓ Parallel connected · now used for search. If it doesn't, Aldwin says why and asks again; press Enter on an empty prompt to cancel. Nothing is saved until the check passes.

From the same screen you can switch back to another provider, choose Automatic, or pick Parallel again to Update key or Disconnect.

You can also type /search parallel: Aldwin uses Parallel if it is connected, or goes straight to the key prompt if not.

Other ways to add the key#

These skip the check, so use them only if you prefer files or environment variables.

Secrets file. Add this line to ~/.aldwin/secrets.yaml (create the file if it does not exist, and keep any lines already in it):

parallel_api_key: your-key-here

Environment variable, for one terminal session or in your shell profile (~/.zshrc or ~/.bashrc):

export PARALLEL_API_KEY=your-key-here

An environment variable wins over a saved key. With /search set to Automatic, Aldwin uses the first connected provider in this order: Tavily, SearXNG, Brave, Exa, Perplexity, Parallel, Firecrawl. Parallel is near the end of that order, so it is picked automatically only when nothing earlier is set up.

Try it#

aldwin

Ask something that needs the live web, for example:

Use web_search to look up today's Python release news.

You should see numbered results with titles, links, and short snippets. Running /search again shows Web search · Parallel (chosen) at the top.

Privacy notes#

  • Your search queries go to Parallel, which handles them under its own terms.
  • Pages Aldwin then opens with web_fetch are fetched from your machine, not through Parallel.
  • When you connect, Aldwin sends the key to Parallel once to check it. The key is then kept only in ~/.aldwin/secrets.yaml (or your environment), and Aldwin removes it from any error message it shows.
  • Details: Privacy.

Troubleshooting#

Messages from /search appear right after you paste a key. Errors during a search appear after search failed: in the web_search result.

What Aldwin saysFix
Parallel rejected this key (HTTP 401). ...The key is wrong, revoked, or was pasted with extra characters. Copy it again from the Parallel dashboard.
Parallel accepted the key, but the account is out of credits (HTTP 402). ...Add credit or move to a bigger plan, then connect again.
Parallel is rate limiting this key (HTTP 429). ...Wait a minute and try again.
Could not reach Parallel to check the key ...Check your internet connection. If it keeps happening, Parallel may be down; try again later.
Parallel's key comes from PARALLEL_API_KEY in your environment. ...Disconnect can't remove an environment variable. Delete the export PARALLEL_API_KEY=... line from your shell profile, then restart Aldwin.
Parallel search isn't set up. ...Aldwin has no key for Parallel. Run /search and connect it.
invalid or unauthorized Parallel API key (HTTP 401)The key stopped working after it was connected (revoked or expired). Run /search, pick Parallel, and choose Update key.
Parallel rate limit or quota reached (HTTP 429)Too many searches at once, or your plan's allowance is used up. Wait a minute, or check usage in the Parallel dashboard.
request timed outParallel took longer than 15 seconds to answer a search. Try again, or switch provider with /search.
Aldwin uses another providerRun /search, pick Parallel, and choose Use for search. With Automatic, a provider earlier in the order wins.
Was this page helpful?