Files
coder/docs/user-guides/desktop/desktop-connect-sync.md
T
Nick Vigilante bc77c40296 docs: add front-matter titles to mechanical and no-H1 pages (Phase 3) (#28030)
## Summary

**Batch A of Phase 3** of the H1 → front-matter migration (`DOCS-484`;
parent `DOCS-477`). Adds a front-matter `title` to every navigable docs
page whose title can be migrated **mechanically**, with no editorial
judgment.

This is the content step that Phase 1 (renderers prefer front-matter
title, `DOCS-482`) and Phase 2 (tooling + generators front-matter-aware,
`DOCS-483`) unblocked. Both are merged; coder.com #964/#974 are merged
and live.

**Rendered no-op.** The renderers already resolve the page title from
the manifest and hide the leading body H1 (Phase 1), so no page changes
visually. This just moves the title into front matter where Fumadocs and
the migrated tooling can read it.

## What's in this batch

Dry-run on `main` (464 navigable pages) splits into:

| category | count | this PR |
|----------|-------|---------|
| already has front-matter title (Reference, from Phase 2 generators) |
196 | skipped (idempotent) |
| **mechanical** — leading body H1 equals the manifest label | 138 | ✅
add front-matter `title`, drop the duplicate H1 |
| **no body H1** — renders under the manifest label only | 4 | ✅ add
front-matter `title` only |
| **mismatch** — body H1 differs from the manifest label | 126 | ⏭️
deferred (needs an editorial decision, see below) |

142 files changed, all under `docs/`.

## Deliberately out of scope: the 126 mismatches

Pages where the body H1 is richer than the short sidebar label (e.g.
label **Modules** / H1 *Contributing modules*, label **Install** / H1
*Installing Coder*) need a canonical-title decision, not a script. A few
even look like the body H1 is the redundant one (`install/cli.md` and
`install/index.md` both carry the H1 *Installing Coder*). These will
land in follow-up batches **by nav section** once the policy is set, so
each gets real review.

## Verification

AI was the primary author of this PR (see disclosure below); per the [AI
Contribution
Guidelines](https://coder.com/docs/about/contributing/AI_CONTRIBUTING)
here is the manual verification.

- Every added front-matter block parses as YAML and its `title`
round-trips to the manifest label (checked programmatically across all
142 files).
- Every removed line is a leading `# H1` that equalled the manifest
title; no body prose was reflowed. Front matter is correctly hoisted
above pre-existing `<!-- markdownlint-disable -->` comments on the two
pages that had them.
- `pnpm check-docs` (markdownlint-cli2 + table formatter) passes on the
changed set: `Summary: 0 error(s)`. `MD041` stays off (re-enabled in
Phase 4); `MD025` is not tripped because the duplicate body H1s are
removed.

```
$ pnpm exec markdownlint-cli2 $(git diff --name-only origin/main)
Linting: 142 file(s)
Summary: 0 error(s)
```

Linear: DOCS-484

> This PR was created with AI assistance (Coder Agents).
2026-08-27 12:34:13 -04:00

6.5 KiB

title
title
Coder Desktop Connect and Sync

Use Coder Desktop to work on your workspaces and files as though they're on your LAN.

Note

Coder Desktop requires a Coder deployment running v2.20.0 or later.

Coder Connect

While active, Coder Connect will list the workspaces you own and will configure your system to connect to them over private IPv6 addresses and custom hostnames ending in .coder.

Coder Desktop list of workspaces

To copy the .coder hostname of a workspace agent, select the copy icon beside it.

You can also connect to the SSH server in your workspace using any SSH client, such as OpenSSH or PuTTY:

ssh your-workspace.coder

Automatic port forwarding

Any services listening on ports in your workspace are automatically available on the same hostname, with no manual port forwarding required. For example, you can access a web server on port 8080 by visiting http://your-workspace.coder:8080 in your browser.

This works for all TCP ports. Start a service in your workspace and access it immediately from your local machine at http://your-workspace.coder:PORT.

For other port forwarding methods (CLI, dashboard, SSH), see Workspace Ports.

Note

For Coder versions v2.21.3 and earlier: the Coder IDE extensions for VSCode and JetBrains create their own tunnel and do not utilize the Coder Connect tunnel to connect to workspaces.

Ping your workspace

macOS

Use ping6 in your terminal to verify the connection to your workspace:

ping6 -c 5 your-workspace.coder

Windows

Use ping in a Command Prompt or PowerShell terminal to verify the connection to your workspace:

ping -n 5 your-workspace.coder

Sync a local directory with your workspace

Coder Desktop file sync provides bidirectional synchronization between a local directory and your workspace. You can work offline, add screenshots to documentation, or use local development tools while keeping your files in sync with your workspace.

  1. Create a new local directory.

    If you select an existing clone of your repository, Desktop will recognize it as conflicting files.

  2. In the Coder Desktop app, select File sync.

    Coder Desktop File Sync screen

  3. Select the + in the corner to select the local path, workspace, and remote path, then select Add:

    Coder Desktop File Sync add paths

  4. File sync clones your workspace directory to your local directory, then watches for changes:

    Coder Desktop File Sync watching

    For more information about the current status, hover your mouse over the status.

File sync excludes version control system directories like .git/ from synchronization, so keep your Git-cloned repository wherever you run Git commands. This means that if you use an IDE with a built-in terminal to edit files on your remote workspace, that should be the Git clone and your local directory should be for file syncs.

Note

Coder Desktop uses alpha and beta to distinguish between the:

  • Local directory: alpha
  • Remote directory: beta

File sync conflicts

File sync shows a Conflicts status when it detects conflicting files.

You can hover your mouse over the status for the list of conflicts:

Desktop file sync conflicts mouseover

If you encounter a synchronization conflict, delete the conflicting file that contains changes you don't want to keep.

Troubleshooting

Accessing web apps in a secure browser context

Some web applications require a secure context to function correctly. A browser typically considers an origin secure if the connection is to localhost, or over HTTPS.

Because Coder Connect uses its own hostnames and does not provide TLS to the browser, Google Chrome and Firefox will not allow any web APIs that require a secure context. Even though the browser displays a warning about an insecure connection without HTTPS, the underlying tunnel is encrypted with WireGuard in the same fashion as other Coder workspace connections (e.g. coder port-forward).

If you require secure context web APIs, identify the workspace hostnames as secure in your browser settings.

Chrome

  1. Open Chrome and visit chrome://flags/#unsafely-treat-insecure-origin-as-secure.

  2. Enter the full workspace hostname, including the http scheme and the port (e.g. http://your-workspace.coder:8080), into the Insecure origins treated as secure text field.

    If you need to enter multiple URLs, use a comma to separate them.

    Google Chrome insecure origin settings

  3. Ensure that the dropdown to the right of the text field is set to Enabled.

  4. You will be prompted to relaunch Google Chrome at the bottom of the page. Select Relaunch to restart Google Chrome.

  5. On relaunch and subsequent launches, Google Chrome will show a banner stating "You are using an unsupported command-line flag". This banner can be safely dismissed.

  6. Web apps accessed on the configured hostnames and ports will now function correctly in a secure context.

Firefox

  1. Open Firefox and visit about:config.

  2. Read the warning and select Accept the Risk and Continue to access the Firefox configuration page.

  3. Enter dom.securecontext.allowlist into the search bar at the top.

  4. Select String on the entry with the same name at the bottom of the list, then select the plus icon on the right.

  5. In the text field, enter the full workspace hostname, without the http scheme and port: your-workspace.coder. Then select the tick icon.

    If you need to enter multiple URLs, use a comma to separate them.

    Firefox insecure origin settings

  6. Web apps accessed on the configured hostnames will now function correctly in a secure context without requiring a restart.

We are planning some changes to Coder Desktop that will make accessing secure context web apps easier in future versions.