# Claude-Surf: A Claude Code plugin for controlling browser and real-time previewing [![Discord](https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white)](https://discord.gg/86SPfhRVbk) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![WarmShao](https://img.shields.io/twitter/follow/warmshao?style=social)](https://x.com/warmshao) [English](README.md) | [简体中文](README_zh.md) ## Overview Claude-Surf is a Claude Code plugin that bridges Claude with [VibeSurf](https://github.com/vibesurf-ai/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](https://docs.anthropic.com/en/docs/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: ```bash # 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: ```bash # 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: ```bash # 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) ```bash # Add the marketplace /plugin marketplace add vibesurf-ai/claude-surf # Install the plugin /plugin install surf ``` ### Local Installation ```bash # 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 ## Contributing Contributions welcome! This is a markdown-first plugin - edit skills directly and test. ## License MIT License - see [LICENSE](LICENSE) for details ## Acknowledgments - [VibeSurf](https://github.com/vibesurf-ai/VibeSurf) - Browser automation framework