# basemodo login

Sign this CLI in from your browser.

```sh
basemodo login [OPTIONS]
```

Opens Basemodo in the browser to approve this device (or, over SSH, shows a code to type at basemodo.com/device) and keeps the token. The local MCP uses the same login.

## Arguments

- `--device`: Show a code to type in a browser on any device, instead of opening the browser here. Chosen by itself over SSH.
- `--no-browser`: Print the sign-in URL instead of opening the browser.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

Sign in from the browser of this computer:

```sh
basemodo login
```

Sign in over SSH, or from another device, with a code:

```sh
basemodo login --device
```

## Output

With `--json`, it prints {"person": {"id", "email"}}.

## From an agent

Terminal only: it needs the person at their browser; an agent asks them to run it.

## Explained in

- [Getting started](https://basemodo.com/docs/getting-started)