---
title: "Commands: sign-in, setup and tools | Hostemi"
description: "login, status, doctor, agent setup, mcp config, completion, api and the other commands around the CLI itself. From the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/cli/reference/setup
source: https://hostemi.com/docs/cli/reference/setup.md
---

# Commands: sign-in, setup and tools

login, status, doctor, agent setup, mcp config, completion, api and the other commands around the CLI itself.

#### On this page

1. [Overview](#overview)
2. [login](#login)
3. [logout](#logout)
4. [whoami](#whoami)
5. [status](#status)
6. [today](#today)
7. [doctor](#doctor)
8. [agent](#agent)
9. [mcp](#mcp)
10. [completion](#completion)
11. [update](#update)
12. [help](#help)
13. [api](#api)
14. [onboarding](#onboarding)
15. [history](#history)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`whoami`](#whoami) | reads | Check the stored key or token and show which API it talks to |
| [`status`](#status) | reads | What needs you today: arrivals, departures, unpaid bookings, and whether you are signed in |
| [`history`](#history) | reads | Who changed an object, when, from which surface, before and after |
| [`today`](#today) | reads | Today: arrivals, departures, stays and what needs you |
| [`onboarding import`](#onboarding-import) | changes | Read a listing from its public page; --apply saves it |
| [`login`](#login) | this computer | Sign in: opens the browser to approve this computer |
| [`logout`](#logout) | this computer | Remove the key stored on this computer |
| [`doctor`](#doctor) | this computer | Check the setup: API reachable, key valid, plan, approval mode, MCP server, connected AI tools |
| [`agent setup`](#agent-setup) | this computer | Connect your AI coding tools (Claude Code, Codex, Cursor, VS Code) to Hostemi: adds the MCP server to their config and installs the Hostemi skills where the tool has a skills folder |
| [`mcp config`](#mcp-config) | this computer | Print the MCP server config for one AI tool, to paste yourself (writes nothing) |
| [`api`](#api) | changes | Escape hatch: call any public API route. GET reads; anything else asks first (or --yes) |
| [`completion`](#completion) | this computer | Print a shell completion script |
| [`update`](#update) | this computer | Check for a newer version and print how to install it |
| [`help`](#help) | this computer | Help. With --json: the whole command tree, flags, arguments and exit codes |

Generated from `hostemi help --json` of hostemi 0.4.0: the same tree the CLI prints its help, its completions and its option checks from. Modes: [what each one does](https://hostemi.com/docs/cli/approvals).

## login

### hostemi login

Sign in: opens the browser to approve this computer. Runs on this machine. Files are written only where the description says so.

```bash
hostemi login [--token-stdin] [--wait]
```

| Option | Type | Description |
| --- | --- | --- |
| `--token-stdin` | switch | Read an API key from stdin instead (for scripts and CI). It is checked, then stored. |
| `--wait` | switch | Without a terminal: keep waiting for the approval instead of exiting 3 with the link. |

Mode: this computer · API: POST /device/code, POST /device/token. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi login
hostemi login --token-stdin < key.txt
```

## logout

### hostemi logout

Remove the key stored on this computer. Runs on this machine. Files are written only where the description says so.

```bash
hostemi logout
```

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## whoami

### hostemi whoami

Check the stored key or token and show which API it talks to. Reads only. Never asks.

```bash
hostemi whoami
```

Mode: reads · API: GET /public/v1/is-connected. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Example

```bash
hostemi whoami
```

Output (recorded, exit 3)

```text
Error: Not signed in.
  Run: hostemi login (or set HOSTEMI_TOKEN).
```

## status

### hostemi status

What needs you today: arrivals, departures, unpaid bookings, and whether you are signed in. Reads only. Never asks.

```bash
hostemi status [--property <id>]
```

| Option | Type | Description |
| --- | --- | --- |
| `--property` | string | Only this property |

Mode: reads · API: GET /public/v1/status, GET /public/v1/dashboard. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Example

```bash
hostemi status
```

Output (recorded in a test workspace, exit 0)

```text
Hostemi · Thu, Nov 19

Arriving today: nobody
Leaving today: nobody
Staying: nobody

Needs you: 2 bookings not paid yet.  hostemi bookings

Nov 1 → 30: €0 revenue, 0% of nights booked, €0 average night

Plan: Pro: active.
```

## today

### hostemi today

Today: arrivals, departures, stays and what needs you. Reads only. Never asks.

```bash
hostemi today
```

| Option | Type | Description |
| --- | --- | --- |
| `--property` | string | Property id |
| `--from` | date | Window from |
| `--to` | date | Window to |

Mode: reads · API: GET /public/v1/dashboard. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## doctor

### hostemi doctor

Check the setup: API reachable, key valid, plan, approval mode, MCP server, connected AI tools. Runs on this machine. Files are written only where the description says so.

```bash
hostemi doctor [--url <mcp url>]
```

| Option | Type | Description |
| --- | --- | --- |
| `--url` | url | MCP server to check instead of the default |

Mode: this computer · API: GET /public/v1/status, GET /public/v1/is-connected. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## agent

### hostemi agent setup

Connect your AI coding tools (Claude Code, Codex, Cursor, VS Code) to Hostemi: adds the MCP server to their config and installs the Hostemi skills where the tool has a skills folder. Runs on this machine. Files are written only where the description says so.

```bash
hostemi agent setup [--client <name,…>] [--dry-run] [--yes] [--no-skills]
```

| Option | Type | Description |
| --- | --- | --- |
| `--client` | list | Only these (default: every one found on this computer) One of: `claude-code`, `codex`, `cursor`, `vscode`. |
| `--url` | url | MCP server address to write |
| `--no-skills` | switch | Only the MCP server, no skills |
| `--dry-run` | switch | Print the files and the exact lines it would write; write nothing |
| `--yes` | switch | Write without asking. The diff is still printed first. |

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi agent setup --dry-run
hostemi agent setup --client cursor --yes
```

## mcp

### hostemi mcp config

Print the MCP server config for one AI tool, to paste yourself (writes nothing). Runs on this machine. Files are written only where the description says so.

```bash
hostemi mcp config --client <name>
```

| Option | Type | Description |
| --- | --- | --- |
| `--client` | string | Which tool Required. One of: `claude-code`, `codex`, `cursor`, `vscode`, `claude`, `chatgpt`. |
| `--url` | url | MCP server address |

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi mcp config --client cursor
hostemi mcp config --client claude-code --json
```

## completion

### hostemi completion

Print a shell completion script. Runs on this machine. Files are written only where the description says so.

```bash
hostemi completion zsh|bash|fish
```

| Argument | Required | Description |
| --- | --- | --- |
| `<shell>` | yes | zsh, bash or fish |

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi completion zsh > ~/.zfunc/_hostemi
```

## update

### hostemi update

Check for a newer version and print how to install it. Runs on this machine. Files are written only where the description says so.

```bash
hostemi update
```

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## help

### hostemi help

Help. With --json: the whole command tree, flags, arguments and exit codes. Runs on this machine. Files are written only where the description says so.

```bash
hostemi help [command…] [--json] [--all]
```

| Option | Type | Description |
| --- | --- | --- |
| `--all` | switch | List every command, not only the everyday ones |

Mode: this computer. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## api

### hostemi api

Escape hatch: call any public API route. GET reads; anything else asks first (or --yes). GET reads. Anything else asks first (or --yes); --dry-run prints the request instead. The approval rules of the account apply as everywhere.

```bash
hostemi api <METHOD> <path> [--query k=v,…] [--data <json>] [--input <file|->]
```

| Argument | Required | Description |
| --- | --- | --- |
| `<METHOD>` | yes | GET, POST, PUT or DELETE |
| `<path>` | yes | /public/v1/… (the prefix may be left out) |

| Option | Type | Description |
| --- | --- | --- |
| `--query` | list | Query string as k=v pairs, comma separated |
| `--data` | json | JSON body inline |
| `--input` | file | JSON body from a file, or - for stdin |

Mode: changes. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi api GET units
hostemi api POST /public/v1/blocks --data '{"unitId":"…","firstNight":"2026-12-24","lastNight":"2026-12-26"}' --dry-run
```

## onboarding

### hostemi onboarding import

Read a listing from its public page; --apply saves it. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi onboarding import <url> [--apply] [--property <id>]
```

| Argument | Required | Description |
| --- | --- | --- |
| `<url>` | yes | The listing’s public address |

| Option | Type | Description |
| --- | --- | --- |
| `--apply` | switch | Save what was read |
| `--property` | string | Add to this property |

Mode: changes · API: POST /public/v1/onboarding/import-link. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## history

### hostemi history

Who changed an object, when, from which surface, before and after. Reads only. Never asks.

```bash
hostemi history <entityType> <entityId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<entityType>` | yes | Reservation, Unit, Property, ChannelConnection, … |
| `<entityId>` | yes | The object id |

| Option | Type | Description |
| --- | --- | --- |
| `--take` | int | At most this many rows (≤ 200) |

Mode: reads · API: GET /public/v1/audit. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi history Reservation res_123
```

Documentation pages

Something missing from this page? Write to [hello@hostemi.com](mailto:hello@hostemi.com), or use the form on the [Help](https://hostemi.com/help) page.
