Claude-Surf: A Claude Code plugin for controlling browser and real-time previewing

Claude-Surf enables powerful browser automation and real-time web interaction through Claude Code and VibeSurf.

Claude-Surf: A Claude Code plugin for controlling browser and real-time previewing

Discord License: MIT WarmShao

English | 简体中文

Overview

Claude-Surf is a Claude Code plugin that bridges Claude with VibeSurf, enabling powerful browser automation and web interaction capabilities.

What You Can Do

  • Browser Control - Navigate websites, interact with elements
  • VibeSurf Skills - Search, crawl, extract data, summarize content, fetch url content
  • Workflows - Execute pre-built automation workflows
  • App Integrations - Gmail, GitHub, Slack, Supabase and 100+ apps via Composio/MCP
  • Browser-Use Agent - Parallel multi-task automation using AI sub-agents
  • Website API - Platform APIs for XiaoHongShu, YouTube, Douyin, Weibo, Zhihu, etc.

Prerequisites

1. Claude Code

Install Claude Code CLI.

2. VibeSurf

Choose one of the following installation methods:

Local Installation (Control Local Browser)

Use this method to control your local browser:

# Install VibeSurf
uv tool install vibesurf

# Start VibeSurf server
vibesurf

Docker Installation (Control Sandbox Browser)

Use this method to control a sandboxed browser in a container:

# Pull the image
docker pull ghcr.io/vibesurf-ai/vibesurf:latest

# Run the container
docker run --name vibesurf -d --restart unless-stopped \
  -p 9335:9335 \
  -p 6080:6080 \
  -p 5901:5901 \
  -v ./data:/data \
  -e IN_DOCKER=true \
  -e VIBESURF_BACKEND_PORT=9335 \
  -e VIBESURF_WORKSPACE=/data/vibesurf_workspace \
  -e RESOLUTION=1440x900x24 \
  -e VNC_PASSWORD=vibesurf \
  --shm-size=4g \
  --cap-add=SYS_ADMIN \
  ghcr.io/vibesurf-ai/vibesurf:latest

VibeSurf must be running for Claude-Surf to work.

Configuration: By default, Claude-Surf connects to http://127.0.0.1:9335. You can customize this by setting the VIBESURF_ENDPOINT environment variable before starting Claude Code:

# Linux/macOS
export VIBESURF_ENDPOINT=http://192.168.1.100:9335

# Windows PowerShell
$env:VIBESURF_ENDPOINT="http://192.168.1.100:9335"

# Windows CMD
set VIBESURF_ENDPOINT=http://192.168.1.100:9335

Installation

From GitHub Marketplace (Recommended)

# Add the marketplace
/plugin marketplace add vibesurf-ai/claude-surf

# Install the plugin
/plugin install surf

Local Installation

# Clone repository
git clone https://github.com/vibesurf-ai/claude-surf
cd claude-surf

# Add to marketplace and install
/plugin marketplace add ./
/plugin install surf

Restart Claude Code to load the plugin.

Quick Start

After installation, try a simple example:

surf search AI news today

This will use VibeSurf to search for today's AI news and return summarized results.

VSCode Integration with Real-Time Browser Preview

When using the Docker installation, you can control and preview the browser directly in VSCode alongside Claude Code:

Open the Internal Browser

  1. Open the Command Palette:
    • Windows/Linux: Ctrl + Shift + P
    • macOS: Cmd + Shift + P
  2. Type and select: Simple Browser: Show
  3. Enter the URL: http://127.0.0.1:6080/
  4. Press Enter

Adjust VNC Screen Size

  1. Click the Settings icon (gear button) on the left sidebar of the VNC viewer
  2. Under Scaling Mode, select Local Scaling
  3. This will allow the VNC screen to automatically resize to fit the window

Now you can see Claude Code controlling the browser in real-time within VSCode!

Demo Video

<video src="https://github.com/user-attachments/assets/e46099cf-0e10-4088-8f10-b9d175f44f77" controls="controls">Your browser does not support playing this video!</video>

Contributing

Contributions welcome! This is a markdown-first plugin - edit skills directly and test.

License

MIT License - see LICENSE for details

Acknowledgments

  • VibeSurf - Browser automation framework