Skip to content

Add Tencil to your Vite project.

The Vite plugin loads Tencil during development. It works with React, Vue, Svelte and other Vite apps.

npx tencil
  • vite.config.ts

    import tencil from 'tencil/vite';
    
    export default defineConfig({
      plugins: [react(), tencil()],
    });

    One plugin

    npx tencil finds vite.config and adds the plugin next to the ones you have. It loads the overlay only while vite dev runs, from the daemon on your machine.

  • React, Vue, Svelte and more

    The plugin works for every app on Vite: React, Vue, Svelte, TanStack Start, Astro and others. Your agent always gets the page, the markup, a selector, the visible text and the size of what you clicked.

  • Source files in React apps

    With React 19, Tencil also includes component names, source files and line numbers to help the agent find the code to edit.

  • Hot reload shows the result

    The agent edits your code in place and Vite's hot module replacement updates the page. Progress streams onto the pin while it works, and you can reply on the pin to follow up.

Frequently asked questions

Using Tencil with Vite.

All of them: the overlay runs in the browser, on top of whatever renders the page. React apps also get the component and source file of what you click.

No. It only loads the overlay during vite dev, from the daemon on your machine.

Load one script in your development HTML: <script src="http://localhost:4747/tencil.js" async></script>. Without the daemon running, it does nothing.

More integrations

Tencil works the same everywhere: point at an element, say what should change.