﻿# bb connect shares a port without copying the project

A bb connect preview routes browser traffic to a running development process; the project remains in its execution checkout and availability depends on that host.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/bb-connect-port-route-versus-project-copy/
Language: en

A remote preview link changes how a browser reaches an application. It does not necessarily create another copy of the project. In bb, a private route to a development port should be understood as a connection to a running process whose files remain in the chosen checkout on its execution machine.

## Start with the process behind the port

Imagine a settings redesign running from a workstation worktree. The dev server reads that directory and listens at its configured address. The bb remote-server guide describes making the port reachable through a private link. The application still depends on that server process. A successful link is therefore evidence about connectivity to a particular runtime, rather than proof that the repository was copied into a separate hosted production environment with an independent lifecycle.

## Follow an edit through live reload

When the framework supports live reload, changing a file can update the browser through the running dev server. The guide describes WebSocket support through the shared route. The causal chain still begins with the correct worktree: a file changes, the dev server notices it and the browser receives an update. An edit elsewhere is outside that chain. This explains why a reachable preview can remain unchanged when the agent accidentally modifies a different checkout on the same machine.

## Availability follows the execution host

If the workstation sleeps or the server exits, a remaining link does not make the application independently available. The remote-work guide describes host availability as a requirement for continued work. A useful preview report therefore includes the host and process context along with the address. This is a development artifact with known dependencies. Calling it a production deployment would imply operational properties that have not been established merely by exposing a port through the documented private connection.

## Keep access and data handling explicit

The dev-server guide describes the private access scope of shared links, while the privacy page explains optional relay handling. These are separate questions from where the source files live. A developer can understand the route by mapping browser, relay and execution host, then identifying the selected model provider when agents are involved. This account avoids equating remote access with a copied repository or treating a private URL as proof of end-to-end encryption. The actual configuration determines which path a request uses.

## Primary sources

- [Run a dev server for every branch](https://getbb.app/guides/remote-dev-servers).

- [Keep working from anywhere](https://getbb.app/guides/work-from-anywhere).

- [bb Privacy](https://getbb.app/privacy).

Related engineering context: [Choosing an AI development stack](/journal/local-ai-app-stack-selection/); [Git state and undo](/journal/aider-git-dirty-tree-undo/).
