One of the lesser-known macOS shell commands has become the unsung hero of Claude + Safari workflows in 2026. The open command, used with the -a Safari flag, lets the terminal navigate Safari to any URL without you (or Claude) ever clicking inside Safari itself. That distinction is what makes the workflow work, because Computer Use treats Safari as a read-only application where clicks and keystrokes are blocked.
This piece is a deep dive on the open command, how Claude uses it, why it does not violate Computer Use\'s Safari restrictions, and what variations you can layer on top for power-user setups.
What the open command actually does
The open command has shipped with every version of macOS for decades. It is a command-line utility that asks the operating system to handle a file, folder, URL, or document according to the system\'s default application bindings. Without arguments it opens a file in whatever app the system associates with that file type. With the -a flag, you can specify exactly which application should handle the request.
The relevant usage for our purposes:
open -a Safari "https://example.com"
The OS receives the URL, looks up the application named Safari, launches Safari if it is not already running, and tells it to open the URL in a new tab. From Safari\'s perspective, the URL appeared as if by magic. Nothing in Safari was clicked or typed.
Why this matters for Computer Use
Claude\'s Computer Use feature, available in Claude Desktop on Mac since the May 13, 2026 release, treats different applications at different access tiers. Safari sits at "read" tier, which means Claude can take screenshots of Safari but cannot click, type, scroll, or otherwise interact with it. The restriction is intentional: Anthropic does not want Computer Use to be a way around the fact that Claude does not have an official Safari extension.
The terminal (Terminal.app, iTerm, etc.) sits at a different tier. From within the terminal, Claude can run shell commands. The open command is one of those shell commands. When Claude runs open -a Safari "https://example.com" in the terminal, the request is processed by the operating system, not by Safari. Safari simply receives the result.
This is not a hack or a loophole. It is the documented behavior of the macOS open command, and it has worked the same way for over twenty years. Anthropic\'s Computer Use restrictions on Safari govern direct interaction (clicks, typing, scrolling), not OS-level URL handling.
Variations and power-user setups
Open in a specific Safari window
open by default opens URLs in the frontmost Safari window. If you have multiple Safari windows open and want to specify which one, you cannot do that directly with open. You can, however, use AppleScript via the osascript command:
osascript -e 'tell application "Safari" to make new document with properties {URL:"https://example.com"} at end of windows'
This creates a new window every time. Useful if you are running parallel research on multiple sites and want to keep them visually separated.
Open in a new tab vs new window
The open command\'s default behavior is "open in new tab in frontmost window." If you want a fresh window every time, use the -n flag:
open -n -a Safari "https://example.com"
The -n tells open to launch a new instance of Safari (or new window if Safari is already running) rather than activating an existing window.
Open multiple URLs at once
For competitive research where you want to look at five competitor sites side by side, chain open calls:
open -a Safari "https://competitor1.com" "https://competitor2.com" "https://competitor3.com"
open accepts multiple URLs and opens each in its own tab. Combined with a terminal alias, this becomes a one-keystroke way to load a research dashboard.
Read-only browse without bringing Safari to the front
By default, open -a Safari brings Safari to the front. If you want to load a URL in Safari for later viewing without interrupting whatever you are currently doing, use the -g flag:
open -g -a Safari "https://example.com"
The -g tells open to launch the app without activating it. Useful in scripts and automations where you want to background-load a tab.
How Claude chains this with curl and screenshots
The full workflow combines three primitives. curl fetches the raw text content of the page. open -a Safari loads the same URL in Safari for visual context. Claude\'s Computer Use screenshot tool captures whatever Safari is showing.
For a typical website audit, Claude\'s actual command sequence looks like:
1. curl -s -L "https://example.com" > /tmp/page.html
2. open -a Safari "https://example.com"
3. (wait briefly for page to render)
4. Take a screenshot
5. Read the curl output and analyze together with the visual
The whole sequence runs in 5 to 10 seconds depending on the page weight. The text analysis is complete (covers the full page, not just the visible viewport). The visual analysis is partial (above the fold only, because Computer Use cannot scroll Safari). For research and audit tasks, this combination is usually sufficient.
Common errors and how to debug
"Safari is not allowed to open new URLs"
This happens when Safari\'s privacy settings or a third-party extension blocks programmatic URL opening. Check Settings > Privacy & Security > Extensions and disable anything that might be intercepting URL handlers.
"open: Unable to find Safari"
Rare, but happens if Safari has been moved out of the standard /Applications path. Run mdfind -name Safari.app to find it, then either move it back or use the full path with open -a "/Applications/Safari.app".
The page loads but is blank or shows an error
Usually a content-blocker or VPN issue, not an open issue. Test by running curl -s -L "URL" in the same terminal session. If curl works but Safari shows a blank page, the issue is on the Safari side (privacy settings, content blockers, network restrictions).
Why this matters beyond Claude
The open command predates AI by decades. It is a general-purpose OS-level URL handler. Once you understand it, it becomes useful for any automation that needs to launch URLs from the command line: shell scripts, cron jobs, Alfred workflows, Raycast scripts, Keyboard Maestro macros, and so on. Claude\'s use of it is one specific application; the underlying capability is broader.
If you do any meaningful research on a Mac, the open -a Safari pattern is worth knowing whether or not you ever use Claude.
Bottom line
The open -a Safari command is the small but important piece that makes Claude + Safari workflows possible on a Mac. It routes navigation through the operating system rather than through Safari itself, which keeps the workflow inside Computer Use\'s permission model. Combined with curl for text fetching and Computer Use\'s screenshot tool for visual context, it gives Mac users a functional Safari + Claude setup without any browser extension at all.
At ScaleWise VA we use this command dozens of times a day for competitor research, supplier audits, and Shopify storefront analysis. If you want to put it to work on your own ecommerce operations, book a free 30-minute call.
How we use this command in Shopify operations
The open -a Safari "URL" pattern is built into half a dozen scripts on our internal ops team's machines. Concrete examples from real Shopify client engagements:
- Daily competitor monitor: a morning script opens 5 competitor Shopify storefronts in Safari simultaneously, takes a screenshot of each above-the-fold view, and feeds them to Claude for a "what changed since yesterday" analysis
- Supplier verification: when sourcing a new dropshipping supplier for a client, one script opens their site, their AliExpress profile, and their Trustpilot listing in three Safari tabs, Claude reads all three to produce a vetting report
- Bulk product page audits: opens 20 product pages in Safari tabs, screenshots each, and Claude flags which ones have weak hero images, missing alt text, or below-template descriptions
None of this would work cleanly without the open -a Safari primitive, it's the bridge between Claude Desktop's terminal access and Safari's visual rendering layer.
If you run Shopify operations at any meaningful scale and want this kind of structured research velocity built into your team's workflow, book a free 30-minute discovery call. We'll walk through the specific scripts we use for client work.