---
title: Sign in
description: Link a computer to your Hack Club account, from the app or from a terminal, and sign it out again.
sidebar:
  order: 3
---

Hindsight uses your Hack Club account, so your hours are saved and follow you to every computer you use. Nothing counts until a computer is signed in. Until then, the sidebar says **Not signed in** under your name.

## Sign in from the app

Setup asks for this on its second step. You can also do it any time from Settings > Profile.

1. **Click Sign in with Hack Club**

    The app asks the Hindsight server for a code and opens your browser. The code looks like `BCDF-2468`: two groups of four letters and numbers, with no vowels, so it's easy to read out loud.

2. **Check the code and approve it**

    If you're not signed in to Hack Club in that browser, you do that first. Then the page asks "Link *your computer's name* to your Hindsight account?" and shows a code. Make sure it matches the one in the app, then click **Approve**. **Deny** links nothing.

3. **Go back to the app**

    The app checks every couple of seconds. When you approve, it shows who you are, uploads what it's already recorded, and carries on. You can close the browser tab.

Closed the tab by accident? Click **Open the page again** in the app. Changed your mind? **Cancel**.

A code works for 15 minutes. If it runs out you'll see "the code expired; sign in again", and one click on the sign-in button gets a fresh one. "Sign-in was denied" means someone clicked Deny. More ways it can go wrong are on [sign-in problems](/docs/troubleshooting/sign-in-problems).

The computer shows up in your list under its own name (your computer's name, which you can change in Settings > Setup).

## Sign in from a terminal

Useful on a machine with no desktop, or over SSH. Run the tracker's `login` command (see [how to run it](/docs/getting-started/install#run-the-command-line-tool)):

```text
hindsight-daemon login
```

It prints a link and a code, opens your browser, and waits:

```text
To link this device, open:

    https://hindsight.mixidthesilly.dev/device

and enter the code:  BCDF-2468

Waiting for approval...
Logged in as your-username. Syncing starts with `hindsight-daemon run`.
```

Add `--no-browser` when there's no browser to open, such as over SSH, and open the link yourself on another device. If a browser can't be opened you'll see "(could not open a browser automatically)" and the same link to use by hand.

`--server <url>` signs in at a different Hindsight server. Without it, the installed app uses `https://hindsight.mixidthesilly.dev`.

The running tracker reads your sign-in again on every upload, so there's nothing to restart.

## Sign out

On this computer, go to Settings > Profile and click **Sign out**. Hindsight asks "Sign out on this computer?" and tells you your hours stay on your account. Before it lets go, it uploads what's waiting, tells the server to end this computer's key, and forgets the key here. Your history stays on the computer, and anything that didn't upload goes up after the next sign in.

You can also sign out a computer you're not sitting at. In Settings > Setup, **Your computers** lists every computer on your account, with when it was last seen. Click **Sign out** next to one, then **Sign it out**. That computer stops counting until someone signs it in again. Its hours stay on your account either way.
