← Back to Skills Marketplace
peterlcm

kuaidi100-logistics

by peterlcm · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
391
Downloads
1
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install kuaidi100-logistics
Description
快递100 API 技能,用于查询快递物流相关信息。当用户提到快递单号、物流轨迹、查快递、运费估算、预计到达时间、识别快递公司等需求时,必须使用此技能。支持:查询物流轨迹(query_trace)、识别快递公司(auto_number)、估算运费(estimate_price)、预估寄件送达时间(estimate...
README (SKILL.md)

快递100 API 技能

通过 curl 调用快递100 API 接口,实现快递物流查询相关功能。

环境变量

  • KUAIDI100_API_KEY:快递100 API Key(可选,未设置时使用免费额度)

API 基础地址

https://api.kuaidi100.com/stdio

Key 处理规则

  • 若环境变量 KUAIDI100_API_KEY 已设置且不为空,则使用该值作为 key 参数
  • 否则将 key 参数设为 null(字符串)
KEY="${KUAIDI100_API_KEY:-null}"

额度耗尽处理

若接口返回内容包含"免费调用额度已耗尽"、"今日免费"、"额度不足"等字样,需告知用户:

今日免费调用额度已耗尽。您可前往 快递100 API 开放平台 注册账号并获取专属 API Key,然后将 Key 更新到环境变量 KUAIDI100_API_KEY 中即可继续使用。


工具列表

1. query_trace — 查询快递物流轨迹

触发场景:用户询问某快递单号的物流状态、快递到哪了、轨迹查询等。

参数

  • kuaidiNum(必填):快递单号
  • phone(可选):手机号,顺丰速运、顺丰快运、中通快递必填

curl 调用

KEY="${KUAIDI100_API_KEY:-null}"
RESULT=$(curl -s "https://api.kuaidi100.com/stdio/queryTrace?key=${KEY}&kuaidiNum=${快递单号}&phone=${手机号}")
echo "$RESULT"

若手机号为空则省略 phone 参数:

RESULT=$(curl -s "https://api.kuaidi100.com/stdio/queryTrace?key=${KEY}&kuaidiNum=${快递单号}")

2. auto_number — 识别快递公司

触发场景:用户想知道某快递单号属于哪家快递公司,或需要在调用其他接口前识别快递公司编码。

参数

  • kuaidiNum(必填):快递单号

curl 调用

KEY="${KUAIDI100_API_KEY:-null}"
RESULT=$(curl -s "https://api.kuaidi100.com/stdio/autoNumber?key=${KEY}&kuaidiNum=${快递单号}")
echo "$RESULT"

3. estimate_price — 估算运费

触发场景:用户询问从某地寄快递到某地的费用、运费是多少等。

参数

  • kuaidicom(必填):快递公司编码(小写),支持:
    • 顺丰:shunfeng
    • 京东:jd
    • 德邦快递:debangkuaidi
    • 圆通:yuantong
    • 中通:zhongtong
    • 申通:shentong
    • 韵达:yunda
    • EMS:ems
  • recAddr(必填):收件地址,如 广东深圳南山区
  • sendAddr(必填):寄件地址,如 北京海淀区
  • weight(必填):重量(kg,不带单位),默认 1

curl 调用

KEY="${KUAIDI100_API_KEY:-null}"
RESULT=$(curl -s --get "https://api.kuaidi100.com/stdio/estimatePrice" \
  --data-urlencode "key=${KEY}" \
  --data-urlencode "kuaidicom=${快递公司编码}" \
  --data-urlencode "recAddr=${收件地址}" \
  --data-urlencode "sendAddr=${寄件地址}" \
  --data-urlencode "weight=${重量}")
echo "$RESULT"

4. estimate_time — 预估寄件送达时间

触发场景:用户寄件前询问预计几天到、送达时间等(尚未寄出,无物流轨迹)。

参数

  • kuaidicom(必填):快递公司编码(小写),支持: 圆通yuantong、中通zhongtong、顺丰shunfeng、顺丰快运shunfengkuaiyun、京东jd、极兔速递jtexpress、申通shentong、韵达yunda、EMSems、跨越kuayue、德邦快递debangkuaidi、EMS-国际件emsguoji、邮政国内youzhengguonei、国际包裹youzhengguoji、宅急送zhaijisong、芝麻开门zhimakaimen、联邦快递lianbangkuaidi、天地华宇tiandihuayu、安能快运annengwuliu、京广速递jinguangsudikuaijian、加运美jiayunmeiwuliu
  • from(必填):出发地,如 广东省深圳市南山区
  • to(必填):目的地,如 北京市海淀区
  • orderTime(可选):下单时间,格式 yyyy-MM-dd HH:mm:ss,默认当前时间
  • expType(可选):业务/产品类型,如 标准快递

curl 调用

KEY="${KUAIDI100_API_KEY:-null}"
RESULT=$(curl -s --get "https://api.kuaidi100.com/stdio/estimateTime" \
  --data-urlencode "key=${KEY}" \
  --data-urlencode "kuaidicom=${快递公司编码}" \
  --data-urlencode "from=${出发地}" \
  --data-urlencode "to=${目的地}")
echo "$RESULT"

若需传 orderTimeexpType,追加对应 --data-urlencode 参数即可。


5. estimate_time_with_logistic — 预估在途快递送达时间

触发场景:用户查询了物流轨迹(query_trace)后,询问还需多久到达、预计几号能到等,通常在 query_trace 之后调用。

参数

  • kuaidicom(必填):快递公司编码(同 estimate_time,见上方支持列表)
  • from(必填):出发地,如 广东省深圳市南山区
  • to(必填):目的地,如 北京市海淀区
  • orderTime(必填):取 query_trace 返回的最早物流轨迹时间,格式 yyyy-MM-dd HH:mm:ss
  • logistic(必填):历史物流轨迹 JSON 数组,取自 query_trace 返回数据,格式:
    [{"time":"2025-12-29 12:43:35","context":"您的快件已到达快递驿站,请及时取件","status":"投柜或驿站"},{"time":"2025-12-29 08:48:27","context":"【河北省承德市隆化县】的郭工正在派件","status":"派件"}]
    

curl 调用

KEY="${KUAIDI100_API_KEY:-null}"
RESULT=$(curl -s --get "https://api.kuaidi100.com/stdio/estimateTime" \
  --data-urlencode "key=${KEY}" \
  --data-urlencode "kuaidicom=${快递公司编码}" \
  --data-urlencode "from=${出发地}" \
  --data-urlencode "to=${目的地}" \
  --data-urlencode "orderTime=${下单时间}" \
  --data-urlencode "logistic=${物流轨迹JSON}")
echo "$RESULT"

结果处理

所有接口均直接返回 Markdown 格式内容,无需额外处理,直接将结果返回给用户即可

典型调用流程

用户询问快递还需多久到
  → 1. query_trace 查询物流轨迹(获取快递公司、轨迹数据)
  → 2. estimate_time_with_logistic 预估剩余时间(携带轨迹数据)
  → 返回结果给用户
Usage Guidance
This skill simply issues curl requests to api.kuaidi100.com to look up and estimate logistics info. Before installing, note: - The SKILL.md mentions an optional KUAIDI100_API_KEY (put it in env if you want higher quota); registry metadata did not declare this — that mismatch is harmless but worth knowing. - The skill will send user-supplied tracking numbers, phone numbers and addresses to the external API (these are PII). Do not provide phone numbers or addresses you consider sensitive unless you trust the external service. - If you prefer the agent not to call external services automatically, disable autonomous invocation for skills in your agent settings. - No binaries are installed and no unusual credentials are requested, so the skill appears coherent with its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: kuaidi100-logistics Version: 1.0.5 The skill provides logistics tracking via the Kuaidi100 API (api.kuaidi100.com) but contains shell injection vulnerabilities. In SKILL.md, the instructions for tools like 'query_trace' and 'auto_number' direct the agent to execute curl commands where user-provided variables (e.g., kuaidiNum) are interpolated directly into a bash string, which could lead to arbitrary command execution if the input is not properly sanitized.
Capability Assessment
Purpose & Capability
The name/description match the instructions: the SKILL.md provides curl-based calls to kuaidi100 API endpoints for querying traces, identifying carriers, estimating price and time. Nothing requested (no unusual binaries, no unrelated cloud credentials) appears outside this purpose.
Instruction Scope
Instructions are narrowly scoped to building curl requests to https://api.kuaidi100.com/stdio and returning the responses. They do not instruct reading arbitrary local files or other environment variables. They will send user-provided data (tracking numbers, phone numbers, addresses) to the external API, which is expected for this skill.
Install Mechanism
This is an instruction-only skill with no install spec and no code files; nothing is written to disk or downloaded. That is the lowest-risk install model and consistent with the described functionality.
Credentials
SKILL.md references an optional environment variable KUAIDI100_API_KEY (used for higher quota) but the registry metadata lists no required env vars — a minor metadata mismatch. Apart from that, no other credentials are requested. Be aware the skill will transmit tracking numbers, phone numbers and addresses (PII) to api.kuaidi100.com as part of normal operation.
Persistence & Privilege
The skill is not marked always:true and uses the platform default of being invocable/autonomous. It does not request persistent system-level changes or access to other skills' configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kuaidi100-logistics
  3. After installation, invoke the skill by name or use /kuaidi100-logistics
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
kuaidi100-logistics v1.0.5 changelog - 精简技能结构,移除 reference.md 和 scripts/query_express.py 文件。 - 技能文档大幅简化,突出以 curl 调用快递100 API 为主,详细说明环境变量和免费额度处理。 - 所有接口直接返回 Markdown 格式内容,无需额外处理。 - 工具功能明确:支持物流查询、快递公司识别、运费估算、送达时间预估等。 - 触发条件调整为:用户有快递查询相关需求时必须主动调用本技能。
v1.0.4
No user-facing or functional changes in this version. - No file changes were detected. - Documentation, features, and functionality remain consistent with the previous release.
v1.0.3
- 更新了快递100客服电话为 400-000-0387(原为 400-678-9001) - 其余内容未变,未检测到功能或接口调整
v1.0.2
- 简化并加强了技能文档结构,突出安全合规、标准回答模板与常见出错场景。 - 移除了无用文件:README.md、clawhub.json 及 query_express_playwright.py(Playwright说明与用法已集成至文档)。 - 增加企业用户关键安全提示,优化API密钥管理与环境变量安全说明。 - 明确技能触发场景及语句,设计标准化输出模板与错误回复模板,提升易用性及专业体验。 - 精简实现细节说明和脚本调用指引,突出可信环境优先与隐私合规。
v1.0.1
Version 1.0.1 - 新增查快递 Python API 脚本 `scripts/query_express.py`,支持通过快递100接口实时查单(需配置 key)。 - 新增 Playwright 脚本 `scripts/query_express_playwright.py`,未配置 key 时可自动打开快递100官网进行单号查询。 - SKILL.md 更新,重点突出两种查快递模式(API 及 Playwright),明确使用流程与必需参数,并移除运费与时效预估说明。 - 明确寄快递只能引导官网/APP/小程序下单,不支持工具内下单。 - 增加参数、错误码与脚本使用细节,方便实际操作和排查问题。
v1.0.0
kuaidi100-logistics v1.0.0 - Initial release - Provides logistics tracking, shipping cost estimation, and delivery time prediction via Kuaidi100 MCP - Guides users to place orders through Kuaidi100 official website, app, or WeChat mini-program for package shipping - Includes detailed usage instructions and configuration guidance for Cursor and other MCP-compatible clients - Covers supported query scenarios: tracking by waybill, fee estimation, and delivery time ETA (pre-shipment/in transit)
Metadata
Slug kuaidi100-logistics
Version 1.0.5
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is kuaidi100-logistics?

快递100 API 技能,用于查询快递物流相关信息。当用户提到快递单号、物流轨迹、查快递、运费估算、预计到达时间、识别快递公司等需求时,必须使用此技能。支持:查询物流轨迹(query_trace)、识别快递公司(auto_number)、估算运费(estimate_price)、预估寄件送达时间(estimate... It is an AI Agent Skill for Claude Code / OpenClaw, with 391 downloads so far.

How do I install kuaidi100-logistics?

Run "/install kuaidi100-logistics" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is kuaidi100-logistics free?

Yes, kuaidi100-logistics is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does kuaidi100-logistics support?

kuaidi100-logistics is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created kuaidi100-logistics?

It is built and maintained by peterlcm (@peterlcm); the current version is v1.0.5.

💬 Comments