The hostemi command line

Install the hostemi command, sign in, and run your rentals from a terminal, a script or a coding agent.

What it is for

hostemi runs Hostemi from a terminal: the calendar, prices, bookings, guest messages, platforms and your booking website. For you it prints short tables; for a script or a coding agent every command answers --json with stable exit codes. It talks to the REST API with the same rules: what changes something shows you first, and your approval setting applies.

Every route of the API has a command (302 commands, short names included), and hostemi api reaches any route directly. It needs Node 22 or newer and a workspace on Pro or Complete (the free trial counts).

Install

npm i -g hostemi
hostemi --version
Run it with no arguments
hostemi
Output (recorded, exit 0)
Hostemi 0.4.0

  Not signed in yet. Start with:  hostemi login

  hostemi status     what needs you today
  hostemi calendar   free and booked nights, the next two weeks
  hostemi bookings   upcoming bookings

  Connect your AI:   hostemi agent setup
  Everything else:   hostemi help

hostemi update checks for a newer version and prints the command to install it; the CLI also checks by itself now and then (HOSTEMI_NO_UPDATE_CHECK=1 turns that off).

Sign in

hostemi login
hostemi whoami

hostemi login opens your browser, where you approve this computer. For scripts use a key in HOSTEMI_TOKEN. Sign-in in detail.

First commands

hostemi status                                   # what needs you today
hostemi calendar                                 # the next two weeks
hostemi bookings                                 # upcoming bookings
hostemi block "Lake House" 2026-12-24:2026-12-26 --reason "family"
hostemi prices adjust <listing id> 2026-07-01:2026-07-31 +10% --weekdays fri,sat
hostemi inbox
What it looks like
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.
Command
hostemi bookings
Output (recorded in a test workspace, exit 0)
Booking          Dates        Nights  Guest        Listing      Status     Total
HST-2026-000001  Dec 5 → 8         3  Lena Hoffm…  Lake house   Confirmed   €360
HST-2026-000012  Dec 27 → 30       3  Anna Keller  Lake house   Confirmed   €360

One booking: hostemi booking <Booking>   ids: add --json

See also: everyday commands, how changes are made.

The whole help

Command
hostemi --help
Output (recorded, exit 0)
hostemi 0.4.0: run your rentals from a terminal, or let your AI do it.

Usage: hostemi <command> [arguments] [options]

Start here
  login                           Sign in: opens the browser
  status                          What needs you today
  doctor                          Check that everything is set up
  agent setup                     Connect Claude Code, Codex, Cursor, VS Code

Every day
  calendar [listing] [range]      Free, booked and closed nights
  block <listing> <range>         Close nights (unblock opens them again)
  bookings                        Upcoming bookings (booking <id> for one)
  inbox                           Guest conversations (inbox reply <id>)
  prices get|set|adjust|explain   Nightly prices, everywhere or per platform
  rules get|set                   Stay rules: minimum nights, arrival days
  report [--csv]                  Revenue and occupancy

Set up
  platforms                       Connected platforms (connect, sync, pause)
  site get|edit|publish           Your booking website
  automations                     Scheduled messages
  seasons, discounts, fees, taxes, reviews, guests, properties, units

Changes
  apply <changeId>                Make a previewed change real
  approvals [--wait]              Changes waiting for you (approve in the app)

More
  mcp config --client <name>      Print the config for one AI tool
  completion zsh|bash|fish        Shell completion
  api <METHOD> <path>             Call any API route
  update, whoami, logout
  help [command] [--all|--json]   One command, every command, or the tree

Options
  --json                          Machine-readable output, on every command
  --dry-run                       Change nothing; show what would happen
  --yes, -y                       Do not ask before a change
  --wait                          Wait for the host’s decision on a change
  --api <url>                     API address (default https://api.hostemi.com)
  --lang en|hu                    Language of the everyday commands
  --no-color                      Plain text (NO_COLOR=1 does the same)
  --help, -h; --version, -v

Env: HOSTEMI_TOKEN, HOSTEMI_API_URL, HOSTEMI_APP_URL, HOSTEMI_MCP_URL

Exit codes:
  0  done
  1  failed (API, network, not found, plan)
  2  wrong arguments, or a change that needs --yes
  3  not signed in, or the key was refused
  4  waits for the host’s approval; nothing changed
  5  the host declined it, or it expired
  6  only the host can do this, in the app

Prices are whole units of the listing’s currency (120 = €120).
Nights are YYYY-MM-DD; a range is from:to, both nights included.
Weekdays are 1 = Monday … 7 = Sunday.
Without a terminal nothing ever asks: add --yes to change something.
Docs: https://hostemi.com/docs/cli

Connect your AI

One command adds the Hostemi MCP server to Claude Code, Codex, Cursor and VS Code on this computer:

hostemi agent setup --dry-run
hostemi agent setup

See also: coding agents and completion, the MCP server.

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