/install feihuo
飞伙
使用 feihuo 命令行工具搜索航班。命令输出 JSON 到 stdout,错误信息输出到 stderr。
快速开始
- 安装 CLI:
npm install -g feihuo-cli - 配置 API Key:
feihuo config set api-key xxxxxx - 查看帮助:
feihuo --help - 搜索航班:
feihuo search-flight --dep "上海" --arr "东京" --dep-date 2026-03-20
配置
首次使用前必须配置 API Key:
feihuo config set api-key xxxxxx
配置文件保存位置:
~/.config/feihuo/config.json
请求服务时 CLI 会自动读取配置,并设置:
Authorization: Bearer \x3Capi-key>
命令能力
config
管理本地配置。目前支持:
feihuo config set api-key xxxxxx
search-flight
搜索航班,支持单程和往返。
feihuo search-flight --dep "上海" --arr "东京" --dep-date 2026-03-20
feihuo search-flight --dep "上海" --arr "东京" --dep-date 2026-03-20 --back-date 2026-03-25 --berth-type Y
详细参数见 references/search-flight.md。
日期规则
--dep-date格式为YYYY-MM-DD,且不能早于今天。--back-date格式为YYYY-MM-DD,且不能早于--dep-date。
需要当前日期时,先运行:
date +%Y-%m-%d
舱位等级
Y:经济舱C:公务舱F:头等舱
结果展示要求
当把 search-flight 返回结果展示给用户时:
- 使用中文 Markdown。
- 优先展示价格、航程、航段、起降时间、航空公司和航班号。
- 如果结果包含
jumpUrl,使用独立一行展示预订链接:[点击预订]({jumpUrl})。 - 多个方案适合用 Markdown 表格比较。
- 不要把原始 JSON 原封不动贴给最终用户,除非用户明确要求。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install feihuo - After installation, invoke the skill by name or use
/feihuo - Provide required inputs per the skill's parameter spec and get structured output
What is 飞伙?
使用 feihuo 命令行工具配置 API Key 并搜索航班。适用于用户要查询机票、比较航班、查看航班搜索参数、执行 feihuo search-flight 或管理 feihuo config 的场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.
How do I install 飞伙?
Run "/install feihuo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 飞伙 free?
Yes, 飞伙 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 飞伙 support?
飞伙 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 飞伙?
It is built and maintained by 扭币的大妈 (@bitbrewing); the current version is v1.0.1.