360 Secure SkillHub
360 安全技能中心

Easypost

这是一款基于EasyPost的Python CLI工具,兼容Python3.10+且无额外依赖,需配置EASYPOST_API_KEY使用。核心功能涵盖运单创建/管理、运费比价、标签购买、包裹追踪、地址验证、投保、退单等。适用于电商发货、物流管理等场景,通过CLI命令传参调用,默认输出JSON格式结果。

aiwithabidi
aiwithabidi
热度 57.17
最近更新 2026-05-10 17:40:54
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add easypost
Metadata
name
easypost
description
EasyPost — shipping labels, rate comparison, package tracking, address verification, and insurance.
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"🚚","requires":{"env":["EASYPOST_API_KEY"]},"primaryEnv":"EASYPOST_API_KEY","homepage":"https://www.agxntsix.ai"}}

🚚 EasyPost

EasyPost — shipping labels, rate comparison, package tracking, address verification, and insurance.

Requirements

Variable Required Description
EASYPOST_API_KEY ✅ EasyPost API key

Quick Start

# Create shipment & get rates
python3 {{baseDir}}/scripts/easypost.py create-shipment --from "JSON address" --to "JSON address" --parcel "JSON"

# Get shipment details
python3 {{baseDir}}/scripts/easypost.py get-shipment <id>

# List shipments
python3 {{baseDir}}/scripts/easypost.py list-shipments --page-size "20"

# Buy label for shipment
python3 {{baseDir}}/scripts/easypost.py buy-shipment <id> --rate-id <value>

# Create a tracker
python3 {{baseDir}}/scripts/easypost.py create-tracker --tracking-code <value> --carrier <value>

# Get tracker details
python3 {{baseDir}}/scripts/easypost.py get-tracker <id>

# List trackers
python3 {{baseDir}}/scripts/easypost.py list-trackers --page-size "20"

# Verify/create address
python3 {{baseDir}}/scripts/easypost.py verify-address --street1 <value> --city <value> --state <value> --zip <value> --country "US"

# Insure a shipment
python3 {{baseDir}}/scripts/easypost.py create-insurance --shipment-id <value> --amount <value>

# Refund a label
python3 {{baseDir}}/scripts/easypost.py create-refund --carrier <value> --tracking-codes "comma-separated"

# List rates for shipment
python3 {{baseDir}}/scripts/easypost.py list-rates <id>

# Create return shipment
python3 {{baseDir}}/scripts/easypost.py create-return --from "JSON" --to "JSON" --parcel "JSON" --is-return "true"

Output Format

All commands output JSON by default.

Script Reference

Script Description
{baseDir}/scripts/easypost.py Main CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation