Skip to content

Usage

You can easily set up Pacy Devtools with an existing project, or you can scaffold a new project from the CLI.

  1. First, install Pacy Devtools globally using npm i -g pacy-devtools. If you’re going to use Pacy Devtools only with Claude Code or Codex, you can skip the following steps.
  2. Install the IDE extension using the following link:
  3. Then, install the MCP server using pacy install-mcp command. This CLI command will walk you through the process to install the MCP server for multiple AI agents at once. This step is crucial for receiving messages back from your AI agents.

To create a new Vite project with Pacy Devtools, use one of these commands:

Terminal window
npm create pacy@latest

This will set up a new project with Pacy Devtools already configured and ready to use. The installation will walk you through the steps to select one of the following options:

  • React (react, react-ts, react-swc, react-swc-ts)
  • Vue (vue, vue-ts)
  • Svelte (svelte, svelte-ts)
  • Preact (preact, preact-ts)
  • Solid (solid, solid-ts)
  • Qwik (qwik, qwik-ts)

These are adapted from official Vite templates.

Using it with an existing project is also a simple, two-step process.

  1. Configure the project

    This step might be optional depending on the project, but it’s recommended.

    Pacy works out of the box with React (v17-18), Vue, and Svelte, when used with Vite. For other setups, a bundler plugin called @pacy-dev/plugin-devtools is used. You can use this guide to configure your project.

  2. Run your project with pacy

    Simply run pacy instead of your “npm run dev” command. If you’re using a custom dev command, you can use pacy -c "npm run dev" with your custom command.

    How this works

    This command will detect your npm client and it will run the dev command if it exists in the package.json. While running the command, it will detect the port of your dev server, and run a proxy server with the Pacy Devtools UI. You’ll see a message in the terminal such as: Pacy Devtools: 5173 -> http://localhost:15173. You can also use the --port or -p option to specify the port of your dev server instead of detecting it automatically.

Happy building! 🚀