Skip to content
Core Features

Focus

This page only applies to Raycast for Mac V1. Latest information for Raycast for Mac V2, Windows, and iOS is available in the New Raycast Manual.

Raycast Focus helps you stay in flow and get more done by blocking out distractions on your Mac. Define your goal, set a duration to focus and block out distracting apps and websites.

The Raycast Focus experience comes with these commands:

  1. Start Focus Session: This command opens a form to configure your focus session.
  2. Toggle Focus Session: This command allows you to toggle between starting or completing a focus session. Starting will use the previously used setup.
  3. Create Focus Category: Use this command to create categories of apps and websites to block. These categories can be used when starting a new focus session.
  4. Search Focus Category: Use this command to search focus categories. Built-in categories are crafted by Raycast and not editable. However, they can be duplicated and saved with another title.
  5. Import Focus Categories: Import categories from a JSON file. More info on the supported format here.

While you're in a session, there are 3 additional commands:

  1. Edit Focus Session: This command allows you to edit your current focus session.
  2. Complete Focus Session: This command allows you to complete your current focus session.
  3. Pause Focus Session: This command allows you to pause your current focus session.

We recommend assigning a hotkey to the Toggle Focus Session command for quicker access to start / complete a focus session. A commonly used hotkey is ^ F.

Open Raycast → Settings → Extensions → Raycast Notes to record a hotkey.

Begin by starting a new focus session. This can be something broad like “Coding Session” or a more granular task you want to complete.

  • Define your goal for the session.
  • Then set a duration, this can be anything from 5 minutes to an entire day. You can also use natural language to define a timeframe like until 4:30pm.
  • Set the filtering mode for running the session.
    • Block: Only apps and websites that are listed will be blocked.
    • Allow: All apps and websites will be blocked except those listed.
  • Finally enter the distracting apps or websites you want to block out for the duration of your focus session. We’ve defined some categories to make this easier to block out things like Social Media or News sites.
Screenshot of a focus session being started in Raycast V1

Use Create Focus Category to create a custom category of apps and websites to block or allow. Once create, they can be found using Search Focus Categories command.

There’s two types of categories:

  • Built-in: These categories are built and curated by Raycast and cannot be edited. They can be duplicated.
  • Custom: User created categories. They can be created using Create Focus Categories, or imported from a JSON file.

All these categories can be used in new sessions by issuing the Start Focus Session command.

Categories can be used in both Allow and Block modes. For example, you can create a category for the apps and websites you frequently use for work and apply it with Allow mode. Conversely, you can create a category for distracting apps and websites and use it in a session with Block mode.

Creating a custom focus category
Searching focus categories

The Focus Bar will float above all your windows, subtly reminding you to stay focus throughout. You can keep track of your progress, pause, complete or manage your focus session.

The Focus Bar floating above windows

If the Focus Bar isn’t to your liking, you can use the more discrete Menu Bar item instead. Hover the Focus Bar, and click Move to Menu Bar under the more menu.

Focus session shown in the Menu Bar

Any app or website you defined in your block list will quit immediately when the session starts.

If you stumble on a blocked app during your session, you’ll be presented with an orange glow and toast to notify you. Blocked websites will be redirected to a block page.

An app being blocked during a focus session

If you really need to access blocked content, you have the option to snooze. By default this is set to 3 minutes. You can customize this in Raycast Settings → Extensions.

After the snooze period you’ll see the blocked overlay. The app will quit after you switch focus.

Blocked app overlay after snooze

Need to add more time, or block additional apps/websites? You can edit a focus session at any time. Use the Edit Focus Session command, or hover the floating bar and use the Edit action under the more menu.

The Focus Bar more menu

If you need a break from your session, you can easily pause your session if something urgent comes up, or you need to make a brew. You can use one of the predefined break options, helping you to step away but ready to nudge you when to jump back in.

Paused focus session countdown

If you’ve managed to finish your task before the clock hits zero, you can manually complete your focus session. You’ll be greeted by a celebratory green glow and toast.

Your session will auto-complete after the set duration. You’ll be presented with the same green glow, but with the option to extend your session, or complete it.

Completed focus session celebration

Raycast Focus supports deeplinks to programmatically control focus sessions from other apps or scripts. The base URL is ⁠raycast://focus/ followed by one of these actions:

Toggles the current focus session on or off. If no session is active, it will start a new one with the provided parameters. If a session is already active, it will complete the session.

Example:

raycast://focus/toggle?goal=Deep%20Focus&categories=social,gaming&duration=300&mode=block

Parameters:

  • ⁠goal (optional): The title of the focus session. Should be percent encoded.
  • ⁠categories: A comma-separated list of app/website categories to block.
  • ⁠duration (optional): The duration of the focus session in seconds.
  • mode (optional): The filtering mode of the session (block or allow). Defaults to block.

Starts a new focus session with the provided parameters. If a session is already active, no action is taken.

Example:

raycast://focus/start?goal=Deep%20Focus&categories=social,gaming&duration=300&mode=block

Parameters:

  • goal (optional): The title of the focus session. Should be percent encoded.
  • categories`: A comma-separated list of app/website categories to block.
  • ⁠duration (optional): The duration of the focus session in seconds.
  • mode (optional): The filtering mode of the session (block or allow). Defaults to block.

Completes the currently active focus session. If no session is active, the deeplink is ignored.

Example:

raycast://focus/complete

Apple introduced Focus filters in macOS Ventura, a feature that lets you customize app behavior, displaying only specific content like certain Mail accounts or Calendar views, depending on the active Focus.

In Raycast 1.92.0, we introduced a Focus filter for Raycast Focus which allows you to start a (Raycast) Focus session along with your system Focus.

Open System Preferences → Focus and select the Focus you want to customize.

Selecting a Focus in System Settings

Scroll all the way down to find Focus Filters → Add Filter…

Adding a Focus Filter in System Settings

Select Raycast – Start a focus session.

Selecting the Raycast Focus filter

Set up the Focus session to start along with the system Focus. You can customize the goal and the categories of apps & websites to block.

Configuring the Raycast Focus filter

With Raycast 1.92.0, we introduced two Shortcuts to automate Raycast Focus:

  • Start Focus Session
  • Complete Focus Session

They can be discovered in the Apple Shortcuts app sidebar, and used to build complex workflows — such as playing music and turning on Do Not Disturb alongside a focus session.

Example Raycast Focus shortcut in the Shortcuts app

The duration parameter is optional. If you don't specify it, a focus session without a timer will start. You'll need to manually end it or complete it using the Shortcut.

You can import Raycast Focus categories from a JSON file using the Import Focus Categories command (available in Raycast 1.92.0+).

Import Focus Categories command in Raycast
  • Root object — array of focus categories
  • Category object
    • title — Category title. Type: String (required)
    • apps — Bundle identifiers of applications to block. Type: Array<String>
    • websites — Hostnames of websites to block (e.g. x.com, facebook.com). Type: Array<String>

Focus category title must be unique. Choose a title different from those already used by other categories.

[
  {
    "title": "Gambling",
    "websites": [
      "winamax.com",
      "stake.com"
    ]
  },
  {
    "title": "French News",
    "apps": [
      "com.apple.news"
    ],
    "websites": [
      "lefigaro.fr",
      "lemonde.fr",
      "liberation.fr",
      "lequipe.fr"
    ]
  }
]

After the import completes, you'll see how many categories were added and how many duplicates were skipped. If a category has the same title as an existing one, it's considered a duplicate.

Import Focus Categories result in Raycast