DEV Community

Sidrel
Sidrel

Posted on

I Built an AI Agent That Controls My Real Safari Browser — No Extensions Needed

The Problem

I wanted Claude to help me with browser tasks — check prices on a page, fill out a form, summarize an article I had open. Simple stuff.

But every existing solution had a dealbreaker:

  • Playwright MCP opens a separate Chromium browser. My logins? Gone. My cookies? Gone. My 47 open tabs? Nowhere to be found.
  • Chrome extensions don't work with Safari (my daily driver on macOS).
  • Copy & paste works, but doing it 50 times a day is soul-crushing.

I just wanted AI to use my real Safari — the one with all my tabs, sessions, and logged-in accounts.

So I built it.

The Solution: Claude for Safari

Claude for Safari is a skill for Claude Code that gives your AI agent full control over Safari using nothing but macOS built-in tools.

No browser extensions. No separate browser. No dependencies to install.

npx skills add SDLLL/claude-for-safari
Enter fullscreen mode Exit fullscreen mode

After installing, you can say things like:

  • "What tabs do I have open?"
  • "Read the article in my current tab and summarize it"
  • "Fill in the search box and click submit"
  • "Take a screenshot of this page"

Playwright vs Claude for Safari

Playwright MCP Claude for Safari
Browser Separate Chromium Your real Safari
Login state None Your existing sessions
Dependencies Node.js + Playwright None (macOS built-in)
Websites see Automation fingerprint Real user

Try It

npx skills add SDLLL/claude-for-safari
claude
> "Show me what tabs are open in Safari"
Enter fullscreen mode Exit fullscreen mode

MIT Licensed. macOS only.


If you're building AI agents and want them to interact with a real browser instead of a headless sandbox, give it a try. I'd love to hear what use cases you come up with.

Top comments (0)