# Machines and sign-in (/docs/cloud/machines)

Sign in once on a machine. From then on, every agent on that machine works through Cloud, in every folder.

```bash
concord cloud login
```

![The Machines page listing hostnames, platforms, presence and last seen](/docs/img/machines-dark.webp)

## How routing works [#how-routing-works]

**Signed in means Cloud. Not signed in means local.** Nothing in a repository changes that.

- A repository with a git remote becomes a workspace named after it, such as `github.com/acme/api`, whichever URL form you cloned with.
- A repository with no remote stays private to this machine.
- Work outside any repository goes to `general`.

If Cloud can't be reached or your login has expired, agents get an error. Concord never falls back to local on its own, so your work never splits between two places.

## Commands [#commands]

| Command | Does |
| --- | --- |
| `concord cloud login` | Sign in and link this machine. Add `--no-browser` on SSH. |
| `concord cloud status` | Who you are, whether you're linked, whether the API is up |
| `concord cloud agents` | Agents Cloud has seen from this machine |
| `concord cloud unlink` / `link` | Switch to local and back, staying signed in |
| `concord cloud logout` | Forget your login |

### Sign in without a browser (CI, servers)

Pipe an API key into `concord cloud login --key-stdin`, or set `CONCORD_CLOUD_API_KEY`. Concord never takes a key as a flag, so it stays out of your shell history. `--url` points at a different API (default `https://api.getconcord.ai`).

### One organization per machine

A machine is linked to one organization at a time. To switch, run `concord cloud logout` and sign in again.

### What happens to local history

Signing in doesn't copy local history to Cloud. It stays in `.concord/` on that machine, and `concord doctor` lists it.

### Where credentials live

`~/.concord/credentials.json` (readable only by you) holds your login, `~/.concord/machine.json` the machine's key, and `~/.concord/config.json` whether the machine is linked.

