Hospitable Ops
/install hospitable-ops
Hospitable Ops
Use Hospitable as the unified operational base. Prefer read-first, then safe write verification, then controlled non-price writes.
Core rules
- Treat Hospitable as the system of operational judgment, especially for unified property UUIDs, calendar state, reservations, and parent/child exclusion logic.
- Never expose tokens in chat, logs, screenshots, or shared files.
- Use Hospitable Public API v2 as the only active execution path for reads and automation in this workspace.
- MCP has been removed from the current Hospitable operating path; do not route or describe Hospitable work through MCP.
- Use persistent config or local scripts; avoid session-only ad hoc setup when building repeatable workflows.
- Default to non-price actions only. Price, currency, and money-related changes must be discussed first and then changed manually by the human.
- Assume write effects may be asynchronous. Do not judge failure from an immediate readback alone.
- In this workspace, do not rely on OpenClaw runtime inheriting shell env automatically; prefer script-level loading from
/Users/admin-ai/.openclaw/workspace-qiang/.env.localfor repeatable Hospitable execution. HOSPITABLE_TOKENmust contain the token body only; never include a leadingBearerprefix in the env value.
Standard workflow
- Verify
HOSPITABLE_TOKENis available in the current execution environment without printing it. - If runtime inheritance is uncertain, use local script loading from
.env.localinstead of re-debugging shell/profile inheritance. - Read data first:
- properties
- reservations
- calendar
- Save JSON with
statusCodeandbodyenvelope. - Build operational judgments from Hospitable first; layer Booking/Airbnb exceptions after.
- For writes, probe safely:
- identify method
- identify minimal body
- test on low-risk future date
- re-read after delay
- Only after semantics are clear, apply controlled non-price changes.
Known API behavior
Read
Use bearer auth plus Accept: application/json.
Current workspace rule:
- default to the current validated token
- treat older/previous Hospitable tokens as deprecated unless the human explicitly restores one
- prefer local env file loading over shell-history fallback or session-only manual export
Common read paths:
propertiesreservations?properties[]=\x3Cuuid>properties/\x3Cuuid>/calendar?start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
Runtime inheritance readback (validated)
Validated facts in this workspace:
- host-side token is valid and can return
statusCode: 200onproperties - OpenClaw agent runtime did not automatically inherit
HOSPITABLE_TOKEN - repeatable workaround: load
/Users/admin-ai/.openclaw/workspace-qiang/.env.localdirectly inside Hospitable scripts - after enabling script-level env loading,
node scripts/hospitable-read.js properties --per-page 1returnedstatusCode: 200
Current script CLI contract
/Users/admin-ai/.openclaw/workspace-qiang/scripts/hospitable-read.js
Supported commands:
properties [--per-page N]reservations --property \x3Cuuid> [--per-page N]calendar --property \x3Cuuid> --start YYYY-MM-DD --end YYYY-MM-DD
Important:
calendaruses--startand--end- do not use
--start-date/--end-datewith this script - keep
#!/usr/bin/env nodeon line 1 if editing the script header
Write
For calendar writes:
- route:
properties/\x3Cuuid>/calendar - supported method:
PUT PATCHis not supported- request body must include
dates - minimal accepted structure:
{
"dates": [
{ "date": "YYYY-MM-DD" }
]
}
Verified non-price semantics
Block a whole date
{
"dates": [
{ "date": "YYYY-MM-DD", "available": false }
]
}
Expected eventual readback:
status.reason = BLOCKEDstatus.source = apistatus.source_type = VENDORstatus.available = false
Restrict check-in / check-out
{
"dates": [
{
"date": "YYYY-MM-DD",
"closed_for_checkin": true,
"closed_for_checkout": true
}
]
}
Expected eventual readback:
closed_for_checkin = trueclosed_for_checkout = true- day may still remain
AVAILABLE
Operational boundaries
Allowed direct actions
- non-price calendar block/unblock
- check-in/check-out restrictions
- non-price operational lock windows
- parent/child exclusion enforcement
- cross-channel conflict prevention using non-price controls
- one-time cleanup of legacy order occupancy when the business rule is already confirmed
Human-only actions
- price
- currency
- money-related changes
- pricing strategy decisions
Long-term operating model
Reduce the property system into three stable forms whenever possible:
- Airbnb-only
- dual-channel managed by Hospitable native mechanisms
- main-house gate open/closed
Treat legacy exceptions as temporary cleanup layers, not permanent structure.
Current NXM cleanup model
mute(booking)is a historical order source only and should not take new sales.206 -> 201is a temporary operational occupancy transfer caused by legacy mute orders.- customer-visible order display can remain original while operational occupancy moves internally for anti-overbooking control.
- after cleanup, return to the three stable forms above.
Recommended local files
scripts/hospitable-read.jsscripts/hospitable-write-probe.js- exported JSON snapshots with
statusCode/body - rule config files for object tiers and lock windows
Delay-aware verification
After a write returns 202 accepted:
- wait before declaring failure
- re-read the same date window
- compare operational fields, not only high-level availability
- check whether the change is semantic (blocked vs closed_for_checkin/checkout)
Good output pattern
Report in this order:
- current status
- exact object/date tested
- request accepted or rejected
- delayed readback result
- operational conclusion
- single biggest remaining gap
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hospitable-ops - 安装完成后,直接呼叫该 Skill 的名称或使用
/hospitable-ops触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hospitable Ops 是什么?
Operate and automate Hospitable properties, reservations, and calendars with safe read-first API workflow, focusing on non-price calendar controls and write... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 54 次。
如何安装 Hospitable Ops?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hospitable-ops」即可一键安装,无需额外配置。
Hospitable Ops 是免费的吗?
是的,Hospitable Ops 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hospitable Ops 支持哪些平台?
Hospitable Ops 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hospitable Ops?
由 jiangwill2023(@jiangwill2023)开发并维护,当前版本 v1.0.0。