# Browser Extension

> Available on: Mac, Windows

Connect your browser to Raycast with the Raycast Companion extension, so Raycast AI can read your open tabs, search your history and bookmarks, and carry out tasks on web pages.

The Raycast Companion extension connects your browser to Raycast, so Raycast AI can work with the pages you have open. Instead of pasting a page into a chat, ask about the tab you're on, pull in another open tab, or search your history and bookmarks. Raycast AI can also work in a tab for you: clicking, typing, and navigating through a task while you watch.

Raycast Companion is available for Chrome and other Chromium-based browsers, Firefox, and Safari.

## Get Started

1. Install **Raycast Companion** for [your browser](#install-companion).
2. Click into any browser tab. The extension connects to Raycast when a tab is focused, and tabs that were already open may need a reload.
3. Open **Settings → Browser** and hover the status dot next to **Browser Extension** to confirm your browser is connected.
4. Open [AI Chat](https://manual.raycast.com/ai/ai-chat) or [Quick AI](https://manual.raycast.com/ai/quick-ai), type `@browser`, and ask about the page you're on.

### Install Companion

- **[Chrome](https://chromewebstore.google.com/detail/raycast-companion/fgacdjnoljjfikkadhogeofgjoglooma)**
- **[Firefox](https://addons.mozilla.org/en-US/firefox/addon/raycast-companion/)**
- **[Safari](https://apps.apple.com/app/raycast-companion/id6738274497)**

> [!TIP]
> Use more than one browser? Install the extension in each. Raycast works with the one you focused most recently, unless you name a browser in your prompt.

## What You Can Do

### Ask About a Page

There are a few ways to bring a page into Raycast AI:

- **Ask Browser**: Mention `@browser` in [AI Chat](https://manual.raycast.com/ai/ai-chat) or [Quick AI](https://manual.raycast.com/ai/quick-ai), or run **Ask Browser** from Root Search. It's one of the built-in [AI Extensions](https://manual.raycast.com/ai/ai-extensions).
- **Attach a tab**: Open the ** Add Context** menu in the AI Chat composer and choose **Browser Tabs** to attach the active tab or any other open tab. Typing `@` also offers your **Open Tabs** and pages from your **History**.
- **Capture the window**: When the focused app is a browser, a [Screen Awareness](https://manual.raycast.com/ai/screen-awareness) capture includes the tab's title, URL, and content.
- **Build it into an AI Command**: The `{browser-tab}` [Dynamic Placeholder](https://manual.raycast.com/dynamic-placeholders#browser-tab) inserts the focused tab into an [AI Command](https://manual.raycast.com/ai/ai-commands), as Markdown, plain text, or HTML. Add a CSS selector to pick out one part of the page.
- _(Only on Mac)_ **Use it from Store extensions**: Extensions from the [Store](https://manual.raycast.com/extensions) can read tab content through the [Browser Extension API](https://developers.raycast.com/api-reference/browser-extension). If one needs the extension and you don't have it yet, Raycast shows a **Browser Extension Required** screen with an **Install Browser Extension** button.

### Tabs, History, and Bookmarks

Raycast AI can reach beyond the page you're on:

- **Tabs**: List your open tabs, read a specific one, and open, close, or duplicate tabs.
- **History**: Search the pages you've visited by keyword, date range, or site.
- **Bookmarks**: Search your bookmarks or add a new one.

Try it: Paste either of these into AI Chat or Quick AI:

```text
@browser Format all my open tabs as markdown links
```

```text
@browser Find the docs page I had open yesterday
```

History and bookmarks work once you've [paired your browser](#pair-your-browser).

### Browser Control

Raycast AI can take over a tab to finish a multi-step task for you: search a site, fill in a form, apply filters, or open a result. It works in your own browser, with your profile and the sites you're already signed in to, so there's nothing extra to set up.

Raycast asks before it uses one of your tabs or opens a new one. While a task runs:

- **It works in the background**: New tabs open behind the one you're on. Where the browser supports tab groups, they join a **Raycast AI** group.
- **You can stop it at any time**: The tab shows a **Raycast is using this tab** bar at the bottom, with **Pause** and **Take over** buttons. **Pause** stops the task where it is, and **Take over** hands the tab back to you. Either way the tab stays as you left it, and Raycast AI only carries on if you ask it to.
- **Some steps are yours**: For a sign-in, passkey, two-factor prompt, CAPTCHA, or payment details, the bar changes to **Your turn**. Finish the step in the tab, then press **Continue**. Raycast AI is designed not to enter passwords or codes for you.
- **It checks before acting for you**: A task stops and asks you to confirm anything that looks like a purchase, sending a message, posting, or deleting.
- **It tidies up**: When a task finishes, the tabs it opened close. A tab stays open if you asked to keep it, pinned it, moved it out of the **Raycast AI** group, paused or took over the task, or if it's playing audio or waiting on you. Tabs you opened yourself are never closed.

Only one task can control a tab at a time, and control ends on its own after five minutes without activity. On pages that offer WebMCP tools, Raycast AI can call those tools directly instead of clicking through the page.

> [!NOTE]
> Browser control needs a [paired browser](#pair-your-browser) and the extension's browser control permissions, which the pairing page asks for.

## Pair Your Browser

Reading open tabs works as soon as the extension is connected. Controlling tabs and reading history or bookmarks need a one-time pairing, which confirms that the browser and Raycast belong to the same person.

Pairing starts on its own the first time a chat needs it:

1. AI Chat shows **Connect Raycast Companion** with a six-digit code.
2. Switch to your browser, where Raycast Companion has opened a pairing page. If it isn't there, click the Raycast Companion icon in the toolbar, which shows a `!` badge while a code is waiting.
3. Enter the code and press **Connect**. If your browser asks for additional permissions, allow them to turn on browser control.

The prompt in AI Chat closes on its own and the task carries on. A code lasts two minutes, and Raycast cancels the pairing after five wrong codes.

Decline the extra permissions and pairing still completes: history and bookmarks work, but Raycast AI can't control tabs. To turn it on later, open the extension's options page and press **Enable browser control**. In Chromium browsers, right-click the Raycast Companion toolbar icon and choose **Options**. In Firefox and Safari, open the options page from the browser's extension settings.

You can also pair from **Settings → Browser**. Connected browsers that aren't paired yet appear under **Paired Browsers** with a **Pair** button.

## Settings

Everything lives under **Settings → Browser**:

- **Browser Extension**: Turns the connection between Raycast and your browsers on or off. Click the status dot next to it to open the diagnostics.
- **Paired Browsers**: Lists each paired browser with the date it was paired. Press **Forget** to disconnect a browser until it pairs again.
- **Install Browser Extension** and **Ask Browser**: Enable or disable each command, and give it a hotkey or alias like any other.

## Privacy & Security

The extension gives Raycast access to your browser, so it's built to keep you in charge of what's read and what's done:

- **The connection stays on your computer**: The extension talks to the Raycast app locally. A page is only read when you or Raycast AI ask for it, and from there it's handled like any other AI attachment. Learn more on the [Raycast AI Privacy & Security page](https://manual.raycast.com/ai/raycast-ai-privacy-security).
- **Pairing gates the sensitive parts**: Tab control, history, and bookmarks only work for a browser you've paired. After that, the browser and Raycast verify each other every time they connect.
- **Sensitive fields are left out**: When Raycast AI inspects a page it's controlling, the values of password, payment card, and one-time code fields aren't included.
- **Control is always visible**: A controlled tab shows the **Raycast is using this tab** bar, and you can pause or take over whenever you like.
- **Pages can't give orders**: Raycast instructs the model to treat page text as content rather than instructions, and to ask before it buys, sends, posts, or deletes anything. Read each confirmation before you approve it, as you would for any AI action.

To cut Raycast off from your browser, turn off **Browser Extension** in Settings, forget the browser under **Paired Browsers**, or remove the extension from your browser.

## Troubleshooting

Most problems come down to the connection between your browser and Raycast, pairing, or permissions. Here are the common ones.

### Raycast says it isn't connected to a browser

The extension connects when a browser tab is focused, so click into a tab in the browser where it's installed and try again. If that doesn't help:

- Check that **Browser Extension** is turned on in **Settings → Browser**.
- Make sure the extension is installed and enabled in your browser.
- Make sure no other copy of Raycast is running.
- Restart the browser so the extension reconnects.

### How do I check what's wrong with the connection?

Open **Settings → Browser** and click the status dot next to **Browser Extension**, or press `⌃ ⌥ ⇧ ⌘ I`/`win Ctrl Alt Shift I`. The **Browser Extension Diagnostic** section shows the state of the local server, its port, the browsers currently connected, and when one last connected.

Press **Test Connection** to send a request to the extension the same way AI and browser commands do. If it fails, the reason appears under **Connection Test**.

### "Access to this page is restricted"

Reload the tab and try again. Tabs that were open before the extension was installed or updated often need a reload. Browsers also keep extensions out of their own pages, such as settings and the extension store, so those can't be read. In Safari, check that Raycast Companion is allowed to access the website.

### The pairing code isn't accepted

A code lasts two minutes, and Raycast cancels the pairing after five wrong codes. Start the task again from Raycast to get a new one. If the pairing page didn't open in your browser, click the Raycast Companion icon in the toolbar while the code is showing.

### Raycast AI can read tabs but can't control them

Browser control needs three things:

- **An up-to-date extension**: Update Raycast Companion to version 2.0 or later, and update Raycast if it reports that the extension is newer than the app.
- **A paired browser**: Check that the browser is listed under **Paired Browsers** in **Settings → Browser**.
- **Browser control permissions**: Open the extension's options page and press **Enable browser control** if the button is shown.

### A task stopped partway through

Control of a tab ends when you press **Pause** or **Take over**, when the tab is closed, when the browser disconnects from Raycast, or after five minutes without activity. Raycast AI doesn't restart a stopped task on its own, so ask it to continue when you're ready.

If a site shows a CAPTCHA or security check, the task hands that step to you instead of trying to solve it. If the site refuses the visit outright, the task stops rather than retrying.

### Safari disconnects from Raycast

Safari unloads extensions when its windows are hidden or minimized. Click into a Safari tab to reconnect, then try again. Safari also has no tab groups, so tabs opened by a task aren't grouped there.

### Raycast used a different browser than I expected

With the extension installed in several browsers, Raycast uses the one you focused most recently. Click into a tab in the browser you want before asking, or name the browser in your prompt.

### Still having issues?

If none of the above resolves it, gather the following and send it to us via the [Send Feedback](raycast://extensions/raycast/raycast/send-feedback) command so we can investigate (see [Contact Support](https://manual.raycast.com/contact-support) for more ways to get in touch):

1. **Your OS version** and **Raycast version** (found in **Settings → About**).
2. **Your browser** and its version.
3. **The diagnostic report**: Press **Copy Report** in the **Browser Extension Diagnostic** section of **Settings → Browser**.
4. **Steps to reproduce** the issue, including the prompt you used.
5. **Your Raycast logs**: Use the built-in **Copy Raycast Logs** command to copy your latest log files to the clipboard, or **Reveal Raycast Logs** to open your log folder.


---

## Need Help?

Contact Raycast Support if you have any questions or would like help with Browser Extension. Use the **Send Feedback** command directly in Raycast to report bugs and billing issues, log feature requests, or any other queries you would like to speak to us about.

You can view all Raycast Support contact options at https://manual.raycast.com/contact-support
