Commands: sign-in, setup and tools

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

Overview

CommandModeWhat it does
whoamireadsCheck the stored key or token and show which API it talks to
statusreadsWhat needs you today: arrivals, departures, unpaid bookings, and whether you are signed in
historyreadsWho changed an object, when, from which surface, before and after
todayreadsToday: arrivals, departures, stays and what needs you
onboarding importchangesRead a listing from its public page; --apply saves it
loginthis computerSign in: opens the browser to approve this computer
logoutthis computerRemove the key stored on this computer
doctorthis computerCheck the setup: API reachable, key valid, plan, approval mode, MCP server, connected AI tools
agent setupthis computerConnect 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 configthis computerPrint the MCP server config for one AI tool, to paste yourself (writes nothing)
apichangesEscape hatch: call any public API route. GET reads; anything else asks first (or --yes)
completionthis computerPrint a shell completion script
updatethis computerCheck for a newer version and print how to install it
helpthis computerHelp. 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]
OptionTypeDescription
--token-stdinswitchRead an API key from stdin instead (for scripts and CI). It is checked, then stored.
--waitswitchWithout 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.

Examples
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.

hostemi logout

Mode: 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 whoami

Mode: reads · API: GET /public/v1/is-connected. Every command also takes the global options.

Example
hostemi whoami
Output (recorded, exit 3)
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.

hostemi status [--property <id>]
OptionTypeDescription
--propertystringOnly this property

Mode: reads · API: GET /public/v1/status, GET /public/v1/dashboard. Every command also takes the global options.

Example
hostemi status
Output (recorded in a test workspace, exit 0)
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.

hostemi today
OptionTypeDescription
--propertystringProperty id
--fromdateWindow from
--todateWindow 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>]
OptionTypeDescription
--urlurlMCP 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]
OptionTypeDescription
--clientlistOnly these (default: every one found on this computer) One of: claude-code, codex, cursor, vscode.
--urlurlMCP server address to write
--no-skillsswitchOnly the MCP server, no skills
--dry-runswitchPrint the files and the exact lines it would write; write nothing
--yesswitchWrite without asking. The diff is still printed first.

Mode: this computer. Every command also takes the global options.

Examples
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.

hostemi mcp config --client <name>
OptionTypeDescription
--clientstringWhich tool Required. One of: claude-code, codex, cursor, vscode, claude, chatgpt.
--urlurlMCP server address

Mode: this computer. Every command also takes the global options.

Examples
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.

hostemi completion zsh|bash|fish
ArgumentRequiredDescription
<shell>yeszsh, bash or fish

Mode: this computer. Every command also takes the global options.

Examples
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.

hostemi update

Mode: 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]
OptionTypeDescription
--allswitchList 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|->]
ArgumentRequiredDescription
<METHOD>yesGET, POST, PUT or DELETE
<path>yes/public/v1/… (the prefix may be left out)
OptionTypeDescription
--querylistQuery string as k=v pairs, comma separated
--datajsonJSON body inline
--inputfileJSON body from a file, or - for stdin

Mode: changes. Every command also takes the global options.

Examples
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.

hostemi onboarding import <url> [--apply] [--property <id>]
ArgumentRequiredDescription
<url>yesThe listing’s public address
OptionTypeDescription
--applyswitchSave what was read
--propertystringAdd 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>
ArgumentRequiredDescription
<entityType>yesReservation, Unit, Property, ChannelConnection, …
<entityId>yesThe object id
OptionTypeDescription
--takeintAt most this many rows (≤ 200)

Mode: reads · API: GET /public/v1/audit. Every command also takes the global options.

Examples
hostemi history Reservation res_123
Something missing from this page? Write to [email protected], or use the form on the Help page.