闲社服务运行正常AI智能体自动化平台
h

Hostex管理

技能标识:hostex

Hostex (hostex.io) OpenAPI v3.0 skill for querying and managing vacation rental properties, room types, reservations, availability, listing calendars, guest messaging, reviews, and webhooks via the Hostex API. Use when you need to integrate with Hostex API using a Hostex PAT (Hostex-Access-Token / HostexAccessToken) or when you need safe, intent-level API calls (read-only by default, optional write operations with explicit confirmation).

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.1
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Hostex管理

Hostex API 技能 (Node)

认证 (PAT)

  • - 设置环境变量:HOSTEXACCESSTOKEN
  • 请求使用请求头:Hostex-Access-Token:
  • OpenAPI 安全方案名称:HostexAccessToken

默认建议: 使用只读 PAT。

日期/时区

  • - 所有日期参数格式为 YYYY-MM-DD
  • 按房源时区解释日期(无 UTC 时间戳)

OpenAPI 权威来源

稳定的 OpenAPI JSON:

  • - https://hostex.io/open_api/v3/config.json

使用 scripts/openapi-sync.mjs 将本地副本缓存到 references/openapi.json。

快速命令(脚本)

所有脚本均需 HOSTEXACCESSTOKEN。

只读(安全)

列出房源:
bash
node skills/hostex/scripts/hostex-read.mjs list-properties --limit 20

列出预订(按入住日期范围):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --start-check-in-date 2026-02-01 --end-check-in-date 2026-02-28 --limit 20

列出预订(按预订代码):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --reservation-code 0-1234567-abcdef

获取可用性:
bash
node skills/hostex/scripts/hostex-read.mjs get-availabilities --start 2026-02-10 --end 2026-02-20 --property-id 123

写入(受保护)

写入操作默认禁用,除非:

  • - HOSTEXALLOWWRITES=true

并且传递 --confirm 参数。

发送消息:
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs send-message --conversation-id 123 --text 你好! --confirm

更新房源价格(单日期范围示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type airbnb \
--listing-id 456 \
--start 2026-02-10 \
--end 2026-02-15 \
--price 199 \
--confirm

更新房源价格(单次请求多日期范围):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type booking_site \
--listing-id 100541-10072 \
--prices 2026-02-03..2026-02-05:599,2026-02-06..2026-02-07:699,2026-02-08..2026-02-09:599 \
--confirm

创建预订(直接预订)(示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs create-reservation \
--property-id 123 \
--custom-channel-id 77 \
--check-in-date 2026-02-10 \
--check-out-date 2026-02-12 \
--guest-name 爱丽丝 \
--currency USD \
--rate-amount 200 \
--commission-amount 0 \
--received-amount 200 \
--income-method-id 3 \
--confirm

更新房源可用性(关闭/开放)(示例):
bash

关闭某房源在日期范围内的可用性


HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-availabilities \
--property-ids 11322075 \
--available false \
--start-date 2026-02-03 \
--end-date 2027-02-02 \
--confirm

操作安全护栏(强制要求)

执行任何写入操作时:
1) 总结变更内容(谁/什么/何时/多少)。
2) 要求用户明确确认(例如 CONFIRM)。
3) 如果可用,优先使用 --dry-run。

备注

  • - 分页:端点通常接受 offset + limit(最大限制为 100)。
  • 切勿在日志中打印令牌;脚本会自动隐藏密钥。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hostex-1776368331 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hostex-1776368331 技能

通过命令行安装

skillhub install hostex-1776368331

下载

⬇ 下载 hostex v0.1.1(免费)

文件大小: 20.23 KB | 发布时间: 2026-4-17 14:47

v0.1.1 最新 2026-4-17 14:47
- Added support and documentation for updating listing prices with multiple date/price ranges in a single request.
- Added support and example for updating property availabilities (close/open) via the script interface.
返回顶部