Skip to content
Parcela v0.8.0 is out

Isolated dev environments for your coding agents

curl -fsSL https://parcela.run/install.sh | sh

Or install it with your AI agent

Video demo coming soon

Works with any coding agent that runs shell commands, and any app that starts with a command

  • Claude Code
  • Codex
  • Cursor
  • Copilot
  • Gemini CLI
  • OpenCode
  • Rails
  • Django
  • Next.js
  • Vite
  • Phoenix
  • Laravel

Each worktree runs its own copy of the app

Checkouts of the same app usually compete for one port, so only one agent at a time can run its changes. Parcela gives each checkout its own ports and URL, so every agent can open its own app and check its work.

~/myapp · 3 worktrees
  1. receipts $ bin/dev Listening on localhost:3000
  2. settle-up $ bin/dev Port 3000 is already in use
  3. group-stats $ bin/dev Port 3000 is already in use

Without Parcela

The first bin/dev takes port 3000. The others fail until it stops.

~/myapp · 3 worktrees
  1. receipts $ parcela up https://receipts-myapp.localhost
  2. settle-up $ parcela up https://settle-up-myapp.localhost
  3. group-stats $ parcela up https://group-stats-myapp.localhost

With Parcela

parcela up picks free ports for each worktree and gives it an HTTPS name.

Set up your project once

Parcela starts the commands you list in parcela.yaml. Your setup command installs dependencies and prepares data, as it does today.

  1. 01

    Describe your app

    Run parcela init, then review the generated parcela.yaml.

    parcela.yaml
    project: myapp
    services:
      web:
        command: bin/rails server -p $PORT
        http:
          healthcheck: /up
      css:
        command: bin/rails tailwindcss:watch[always]
    hooks:
      setup:
        command: bin/setup --skip-server
  2. 02

    Start the app

    parcela up runs setup on the first start, then starts each service and waits for its healthcheck.

    ~/myapp
    $ parcela up --detach
    ✓ myapp is running at https://myapp.localhost
    
      parcela logs    show service output
      parcela status  check health
      parcela down    stop it
  3. 03

    Open its URL

    The project name becomes the URL. Other worktrees get their own, like receipts-myapp.localhost. With --lan, your phone opens it at myapp.local.

    myapp.localhost
    The app's homepage at its local HTTPS address, on a laptop
    myapp.local
    The same page on a phone

Share with other devices

Each run stays on this machine unless you pass --lan or --tailscale, or set the matching environment variable.

myapp.localhost

Your machine

parcela up runs the environment here.

myapp.local

Your phone

A .local name on the same network.

parcela up --lan
mb.tail1234.ts.net

Another computer

Served with tailscale serve to your tailnet.

parcela up --tailscale
Does it work with my project?

Parcela runs the commands you put in parcela.yaml. Use it with native web servers, workers, and setup scripts. It supports macOS and Linux, with jj workspaces or Git worktrees.

How separate are the environments?

Each checkout gets its own processes, ports, and URLs. Your project configuration decides how databases, queues, and uploads are separated. Services run as native processes on your machine.

How does local HTTPS work?

Caddy handles routing and TLS. The default address uses .localhost on port 1443. Your first terminal up offers to trust the local CA behind the system password prompt. Scripts and agents never change system trust.

What happens when I stop an environment?

parcela down stops the environment's processes and removes its routes. Source and data are retained. LAN and Tailscale sharing stop with that run.

Install Parcela

Install the CLI, then run parcela init in your project.

Experimental · macOS & Linux · AGPL-3.0-only

curl -fsSL https://parcela.run/install.sh | sh