Metadata-Version: 2.4
Name: devlanes
Version: 0.14.2
Summary: Development environments in Git worktree lanes
License-Expression: Apache-2.0
License-File: LICENSE
Project-URL: Homepage, https://devlanes.run
Project-URL: Documentation, https://devlanes.run/docs/
Project-URL: Source, https://github.com/devlanes-run/devlanes
Project-URL: Changelog, https://github.com/devlanes-run/devlanes/blob/main/bins/devlanes/CHANGELOG.md
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown

<p align="center">
   <b>Using devlanes?</b> Please consider <a href="https://github.com/sponsors/arthurfiorette" target="_blank">donating</a> to support my open source work ❤️
  <br />
  <sup>
   Help devlanes grow! Star and share this amazing repository with your friends and co-workers!
  </sup>
</p>

<br />

<p align="center" title="devlanes">
  <a href="https://devlanes.run" target="_blank" rel="noopener noreferrer">
    <img src="https://devlanes.run/assets/banner.png" alt="devlanes: Sandboxes for your agents. localhost for you." />
  </a>
</p>

<br />

<p align="center">
  <a title="Apache-2.0 license" target="_blank" href="https://github.com/devlanes-run/devlanes/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/devlanes-run/devlanes"></a>
  <a title="Latest release" target="_blank" href="https://github.com/devlanes-run/devlanes/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/devlanes-run/devlanes"></a>
  <a title="CI" target="_blank" href="https://github.com/devlanes-run/devlanes/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/devlanes-run/devlanes/ci.yml?branch=main&label=ci"></a>
  <a title="npm package" target="_blank" href="https://www.npmjs.com/package/devlanes"><img alt="Downloads" src="https://img.shields.io/npm/dw/devlanes?style=flat"></a>
  <a title="Last commit" target="_blank" href="https://github.com/devlanes-run/devlanes/commits/main"><img alt="Last commit" src="https://img.shields.io/github/last-commit/devlanes-run/devlanes"></a>
</p>

<br />
<br />

# devlanes

> Sandboxes for your agents. localhost for you.

<br />

devlanes runs your dev stack once per Git worktree, so you and your coding agents can work on different branches at the same time. Each worktree gets a lane with its own ports, HTTPS hostnames and data. Lanes run on your machine or on a remote one, and open in your browser either way.

It runs on macOS, Linux and Windows 11, and it is in beta.

<br />

- [Read the docs.](https://devlanes.run/docs/)
- [Browse the examples.](https://devlanes.run/examples/)

<br />

## Why devlanes

- [A lane per worktree](https://devlanes.run/docs/learn/worktrees/): the main branch at `myapp.localhost`, a feature branch at `myapp1.localhost`, each on its own ports.
- [HTTPS hostnames](https://devlanes.run/docs/concepts/hostnames-and-https/) with certificates your browser trusts, and no port to remember.
- [A database per lane](https://devlanes.run/docs/learn/databases/): one Postgres container, and a database in it for each lane.
- [Coding agents](https://devlanes.run/docs/how-to/agents/set-up/) start, test and stop their own lane through a skill or an MCP server, and leave yours alone.
- [Remote boxes](https://devlanes.run/docs/learn/remote/): run the lanes on a VPS, a container or a codespace, and open them under the same hostnames.
- [One daemon](https://devlanes.run/docs/concepts/daemon/) runs the processes, so they keep running after you close the terminal. A CLI and a TUI talk to it.

## Get started

Paste this into your coding agent:

```text
Install the devlanes skill:
npx skills add devlanes-run/devlanes --skill devlanes

Then install devlanes on this machine, set up everything it needs,
and help me port this project to devlanes from whatever runs it today.
```

Or install it yourself, with the package manager you already use:

```sh
brew install devlanes-run/tap/devlanes
npm install -g devlanes
uv tool install devlanes
```

Or with the install script, on macOS and Linux:

```sh
curl -fsSL https://devlanes.run/install.sh | sh
```

On Windows 11:

```powershell
irm https://devlanes.run/install.ps1 | iex
```

[Install devlanes](https://devlanes.run/docs/install/) has the steps that follow the install.

You install it once. devlanes then keeps itself up to date in the background, without interrupting your work.

## A project in one file

```yaml
# devlanes.yaml
project: myapp

services:
  api:
    run_script:
      file: api/package.json
      name: dev
    hosts: "api.${{ lane.domain }}"
  web:
    preset: vite
    run_script:
      file: web/package.json
      name: dev
    env:
      VITE_API_URL: "${{ services.api.public_url }}"
    hosts: "${{ lane.domain }}"
```

```sh
devlanes start
```

In the main worktree this serves `myapp.localhost` and `api.myapp.localhost` over HTTPS. In a second worktree the same file serves `myapp1.localhost` and `api.myapp1.localhost`, on other ports.

## Documentation

The [docs](https://devlanes.run/docs/) start with a [tour](https://devlanes.run/docs/learn/first-service/) that follows one project from a single service to lanes on another machine. `devlanes --help` lists the commands.

## The PyPI package

`uv tool install devlanes` and `pipx install devlanes` install the command for your user. `pip install devlanes` installs into the active environment, so the command disappears with that environment.

This package holds the native devlanes binaries; it has no Python code. pip, uv and pipx pick the wheel for your platform: macOS arm64 or x86_64, Linux arm64 or x86_64 with glibc 2.35 or later, Windows 11 x64 or arm64. Other platforms, including Linux with musl, have no wheel.

`devlanes daemon install` records the path of the installed binary. After installing into a different environment, run it again. Update with `devlanes update`. On Windows the daemon and the TUI keep a second hard link to the running `devlanes.exe`, which lets uv and pipx replace it; where they can't make one, `devlanes update` says to run `devlanes daemon stop` first.

## Contributing

[CONTRIBUTING.md](https://github.com/devlanes-run/devlanes/blob/main/CONTRIBUTING.md) covers building, testing and the design notes, and [AGENTS.md](https://github.com/devlanes-run/devlanes/blob/main/AGENTS.md) has the conventions for people and agents working on the code.

Every commit on `main` that passes CI is published as the `next` build, so once your pull request is merged you can use it without waiting for a release. On macOS and Linux:

```sh
curl -fsSL https://devlanes.run/install.sh | sh -s -- --channel next
```

On Windows 11:

```powershell
iex "& {$(irm https://devlanes.run/install.ps1)} -Channel next"
```

`devlanes update` then moves a `next` install to the latest build of `main`.

mprocs and dekit informed the terminal interaction. pitchfork, process-compose, devenv, Coasts, portless, kache, overmind and Conductor informed the process and worktree workflows.

## License

Licensed under the **Apache-2.0 License**. See [`LICENSE`](https://github.com/devlanes-run/devlanes/blob/main/LICENSE) for more information.
