飞伙
v1.0.0使用 feihuo 命令行工具配置 API Key 并搜索航班。适用于用户要查询机票、比较航班、查看航班搜索参数、执行 feihuo 搜索-flight 或管理 feihuo config 的场景。
运行时依赖
安装命令
点击复制本土化适配说明
飞伙 安装说明: 安装命令:["openclaw skills install feihuo"]
技能文档
飞伙 命令行工具 — 航班搜索
使用 feihuo 命令行工具搜索航班。命令输出 JSON 到 stdout,错误信息输出到 stderr。
快速开始 安装 命令行工具:npm 安装 -g feihuo-命令行工具 配置 API Key:feihuo config 设置 API-key xxxxxx 查看帮助:feihuo --help 搜索航班:feihuo 搜索-flight --dep "上海" --arr "东京" --dep-date 2026-03-20 配置
首次使用前必须配置 API Key:
feihuo config 设置 API-key xxxxxx
配置文件保存位置:
~/.config/feihuo/config.json
请求服务时 命令行工具 会自动读取配置,并设置:
Authorization: Bearer
命令能力 config
管理本地配置。目前支持:
feihuo config 设置 API-key xxxxxx
搜索-flight
搜索航班,支持单程和往返。
feihuo 搜索-flight --dep "上海" --arr "东京" --dep-date 2026-03-20 feihuo 搜索-flight --dep "上海" --arr "东京" --dep-date 2026-03-20 --back-date 2026-03-25 --berth-type Y
详细参数见 references/搜索-flight.md。
日期规则 --dep-date 格式为 YYYY-MM-DD,且不能早于今天。 --back-date 格式为 YYYY-MM-DD,且不能早于 --dep-date。
需要当前日期时,先运行:
date +%Y-%m-%d
舱位等级 Y:经济舱 C:公务舱 F:头等舱 结果展示要求
当把 搜索-flight 返回结果展示给用户时:
使用中文 Markdown。 优先展示价格、航程、航段、起降时间、航空公司和航班号。 如果结果包含 jumpUrl,使用独立一行展示预订链接:点击预订。 多个方案适合用 Markdown 表格比较。 不要把原始 JSON 原封不动贴给最终用户,除非用户明确要求。