# nodus login

> Sign in through the console and store one API key per chosen org

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_login/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus login

Sign in through the console and store one API key per chosen org

### Synopsis

Opens the console, where you sign in (or sign up) and choose orgs; nodus stores one 90-day API key per org in the OS keychain and writes one context per org. Interactive sign-in also creates or reuses your local SSH key and configures access to all current and future Workspaces in those orgs. –device prints a code to enter on another device; –with-token reads an API key from stdin (CI).

```plaintext
nodus login [--device | --with-token] [flags]
```

### Examples

```plaintext
  nodus login
  nodus login --device
  echo "$NODUS_API_KEY" | nodus login --with-token
```

### Options

```plaintext
      --api-url string       API server (default https://api.nodus-compute.ai)
      --console-url string   Console origin (default: what the API server names)
      --device               Sign in from another device with a one-time code (RFC 8628)
  -h, --help                 help for login
      --with-token           Read an API key from stdin
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus login --with-token
nodus login --device
nodus login
```
