vite-agent

Configure Vite server settings to prevent automatic browser openings.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/pmarashian/cursor-agent-skills --skill vite-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vite-agent
Source: https://github.com/pmarashian/cursor-agent-skills/tree/main/vite-agent
Command: npx skills add https://github.com/pmarashian/cursor-agent-skills --skill vite-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that Vite development servers are configured correctly to prevent unwanted browser windows from opening during automated agent tasks, ensuring smooth and predictable agent execution.

Core Features & Use Cases

  • Prevent Automatic Browser Opening: Configures server.open: false in Vite to stop the dev server from launching browsers automatically.
  • Ensure Port Stability: Utilizes server.strictPort: true to fail fast if a port is occupied, crucial for reliable automation.
  • OS-Agnostic Configuration: Provides guidance on using OS-agnostic tools like wait-on instead of platform-specific commands.
  • Use Case: When setting up a Vite project for an AI agent that interacts with a web application via Playwright or agent-browser, this Skill's configuration prevents the agent's workflow from being interrupted by unexpected browser pop-ups.

Quick Start

Configure your Vite project by setting server.open: false in your vite.config.ts file.

Frequently Asked Questions about vite-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop Vite dev server from automatically opening a browser window?

To stop the Vite dev server from automatically opening a browser window, set `server.open: false` in your `vite.config.ts` file. This prevents unexpected browser pop-ups during automated agent execution.

How do I configure Vite strictPort for reliable AI agent automation?

Configure Vite strictPort for reliable AI agent automation by setting `server.strictPort: true` in your configuration file. This makes the server fail fast if the specified port is occupied, ensuring predictable automation workflows.

What is the best way to check Vite server readiness across different operating systems?

The best way to check Vite server readiness across different operating systems is using OS-agnostic tools like `wait-on`. This avoids platform-specific commands and provides reliable port detection and conflict resolution for agent execution.

Why does my Playwright AI agent get interrupted when starting the Vite dev server?

Your Playwright AI agent gets interrupted because the default Vite configuration automatically opens a browser window. Configuring `server.open: false` prevents these unexpected pop-ups from disrupting your agent's workflow.

Can I use Vite with Playwright without the dev server opening a new browser tab?

Yes, you can use Vite with Playwright without the dev server opening a new browser tab. You need to configure your Vite project with `server.open: false` and `server.strictPort: true` to ensure smooth, predictable agent execution.

What Vite server settings are needed to prevent port conflicts during browser automation?

To prevent port conflicts during browser automation, Vite requires `server.strictPort: true` to fail fast if a port is occupied, and `server.open: false` to prevent unwanted browser launches. These settings ensure reliable agent execution.