Commands: sign-in, setup and tools
login, status, doctor, agent setup, mcp config, completion, api and the other commands around the CLI itself.
Overview
| Command | Mode | What it does |
|---|---|---|
whoami | reads | Check the stored key or token and show which API it talks to |
status | reads | What needs you today: arrivals, departures, unpaid bookings, and whether you are signed in |
history | reads | Who changed an object, when, from which surface, before and after |
today | reads | Today: arrivals, departures, stays and what needs you |
onboarding import | changes | Read a listing from its public page; --apply saves it |
login | this computer | Sign in: opens the browser to approve this computer |
logout | this computer | Remove the key stored on this computer |
doctor | this computer | Check the setup: API reachable, key valid, plan, approval mode, MCP server, connected AI tools |
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 | this computer | Print the MCP server config for one AI tool, to paste yourself (writes nothing) |
api | changes | Escape hatch: call any public API route. GET reads; anything else asks first (or --yes) |
completion | this computer | Print a shell completion script |
update | this computer | Check for a newer version and print how to install it |
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.
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.
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.
hostemi login
hostemi login --token-stdin < key.txtlogout
hostemi logout
Remove the key stored on this computer. Runs on this machine. Files are written only where the description says so.
hostemi logoutMode: this computer. Every command also takes the global options.
whoami
hostemi whoami
Check the stored key or token and show which API it talks to. Reads only. Never asks.
hostemi whoamiMode: reads · API: GET /public/v1/is-connected. Every command also takes the global options.
hostemi whoamiError: 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.
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.
hostemi statusHostemi · 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.
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.
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.
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.
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.
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.
hostemi agent setup --dry-run
hostemi agent setup --client cursor --yesmcp
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.
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.
hostemi mcp config --client cursor
hostemi mcp config --client claude-code --jsoncompletion
hostemi completion
Print a shell completion script. Runs on this machine. Files are written only where the description says so.
hostemi completion zsh|bash|fish| Argument | Required | Description |
|---|---|---|
<shell> | yes | zsh, bash or fish |
Mode: this computer. Every command also takes the global options.
hostemi completion zsh > ~/.zfunc/_hostemiupdate
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.
hostemi updateMode: this computer. Every command also takes the global options.
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.
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.
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.
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.
hostemi api GET units
hostemi api POST /public/v1/blocks --data '{"unitId":"…","firstNight":"2026-12-24","lastNight":"2026-12-26"}' --dry-runonboarding
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.
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.
history
hostemi history
Who changed an object, when, from which surface, before and after. Reads only. Never asks.
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.
hostemi history Reservation res_123