ratchet docs

First start

ratchet checks your tools, starts in the background and opens in your browser.

On this pageThe start-up checkTwo questions the first timeIt keeps runningThe ratchet icon in the taskbarPort and addressOpen ratchet in its own windowYour first repo

The start-up check

ratchet 0.8.0
  ✓ Node 22.20
  ✓ git 2.47.0
Logs: ~/.ratchet/logs
ratchet is running at http://127.0.0.1:4700/?t=…
  ✓ GitHub CLI 2.60.0
  ✓ Claude Code 2.1.0
ratchet keeps running after you close this terminal. To stop it, type ratchet stop or use Stop ratchet in Settings.

If Node is too old or git is missing, you see the fix and ratchet can't start until the ✗ lines above are fixed. The GitHub CLI and Claude Code lines come after the link: ratchet is already open while it checks them. If GitHub CLI is not signed in, its line reads ✗ GitHub CLI is not signed in — run `gh auth login` and ratchet starts anyway; pull requests and CI runs need it. If GitHub CLI or Claude Code is missing, ratchet starts anyway and shows a notice in the app saying what to install.

If phone access was on when ratchet last stopped, it doesn't open the browser; use the link it prints.

Two questions the first time

The first time ratchet opens, a bar at the top asks Share anonymous usage counts to help improve ratchet? Press No or Yes. Nothing is sent until you press Yes, and never your code, files, prompts or terminal text. The bar comes back on each start until you answer; × counts as No.

On a later start, a card asks Help fix ratchet? Send crash reports automatically. Either answer hides it for good. Change both answers at any time in Settings → Diagnostics. What each one sends is on Privacy and data.

It keeps running

After the check, ratchet starts in the background and gives you the prompt back. You can close the terminal: ratchet and your agents keep running. Type ratchet again while it runs and it says ratchet is already running at … and opens it, without starting a second copy. If the copy you type is a newer version than the one running, it replaces the running one instead, asking first in the terminal if agents are running (see Updating).

To stop it, type ratchet stop, or use Stop ratchet in Settings. If agents are running, ratchet asks first, because stopping it stops them. If you started ratchet with npx, type npx @ratchet-ai/ratchet stop instead.

To have ratchet start by itself on Windows or macOS, turn on Start ratchet when I sign in in Settings.

Working on ratchet itself

Started from a copy of ratchet's own source code, ratchet stays in the terminal and stops when you close it.

Started from a script or a service without a terminal, ratchet stays in the foreground and stops when that process ends. It prints the same lines, without the last one.

On Windows, see The ratchet icon in the taskbar.

The ratchet icon in the taskbar

On Windows, ratchet shows its icon in the taskbar tray while it runs, however you started it. At first it sits with the hidden icons under ^. Drag it out next to the clock to keep it in view; it stays there after ratchet restarts. The first time, a notification tells you where it is. Windows may label that notification Windows PowerShell, and Do Not Disturb may hide it.

Hover the icon to see what your agents are doing, for example ratchet · 3 agents running · 1 waiting for you.

Right-click it for Open ratchet and Exit. Double-click opens ratchet too. When agents are still working, Exit asks first: 2 agents are still working. Exit anyway? If ratchet stops answering, Exit offers to end ratchet and every agent it started.

If you installed ratchet's own window, its icon in the Start menu is called ratchet, and ratchet's shortcut is called Start ratchet. Start ratchet starts ratchet when it isn't running; the own window's icon only opens the window.

Port and address

ratchet listens only on 127.0.0.1, on the port it used last time (port 4700 the first time). If that port is busy, it tries the next one from 4700. The link it prints carries a secret token, so another program on your PC can't open your dashboard by guessing the address. Port and token stay the same from one start to the next, so a tab you left open comes back by itself after a restart. To get a new link, delete ~/.ratchet/desktop.json and start ratchet again.

To pick the port, set RATCHET_PORT before starting, for example RATCHET_PORT=4800 ratchet (PowerShell: $env:RATCHET_PORT=4800; ratchet). If that port is busy, ratchet uses the next free one. It keeps the port for later starts. On a server you reach over SSH, see Phone: on a server with no screen.

Open ratchet in its own window

In Edge or Chrome you can install ratchet as an app. In Edge, click the app icon at the right of the address bar, or open the menu, then Apps → Install this site as an app. In Chrome, click the install icon in the address bar, or open the menu, then Cast, save and share → Install page as app. ratchet then has its own icon in the Start menu and taskbar (on a Mac, in the Dock and Launchpad; Chrome only) and opens in its own window. The window keeps working after ratchet restarts or updates.

Once you have used the window, starting ratchet opens no browser tab. It prints Not opening a browser tab: open ratchet from its icon, or use the link above. To get tabs back, open the link once in a browser tab.

Your first repo

When no repos are open, ratchet shows two buttons: Add repository and Find from Claude sessions. It also opens the repos of your Claude Code sessions from the last 24 hours by itself, so often your repos are already there.

Next: Repos.

Written for ratchet 0.8.0.