← 返回 Skills 市场
HTTPie
作者
CN-big-cabbage
· GitHub ↗
· v0.1.0
· MIT-0
91
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install httpie
功能描述
HTTPie - 人性化的 HTTP 命令行客户端
使用说明 (SKILL.md)
HTTPie 人性化 HTTP 命令行客户端
技能概述
本技能帮助用户通过命令行发送 HTTP 请求,调试 API 接口,适用于以下场景:
- REST API 调试: 发送 GET/POST/PUT/DELETE 等各类 HTTP 请求
- 接口测试: 快速验证 API 端点的请求与响应
- 文件上传下载: 通过命令行进行文件传输
- 身份认证: 支持 Basic、Bearer Token、Digest 等多种认证方式
- 会话管理: 跨请求保持 Cookie 与认证状态
- 格式化输出: 自动语法高亮显示 JSON、XML 响应体
主要特点: 语法简洁、自动格式化、彩色输出、内置 JSON 支持、比 curl 更易读写
使用流程
AI 助手将引导你完成以下步骤:
- 安装 HTTPie(如未安装)
- 构建 HTTP 请求(方法、URL、请求头、请求体)
- 执行请求并查看格式化响应
- 根据响应调整请求参数
- 将成功的命令保存为可复用脚本
关键章节导航
AI 助手能力
当你向 AI 描述请求需求时,AI 会:
- 自动识别请求类型(GET/POST/PUT/PATCH/DELETE)
- 根据描述构建正确的请求头和请求体
- 执行请求命令并解析响应
- 识别常见 HTTP 错误状态码并给出建议
- 自动处理 JSON 数据序列化
- 管理认证令牌和会话 Cookie
- 将复杂请求转换为可读的 HTTPie 命令
核心功能
- 支持全部 HTTP 方法(GET、POST、PUT、PATCH、DELETE、HEAD、OPTIONS)
- 自动 JSON 请求体序列化与响应格式化
- 彩色语法高亮(请求头、响应头、响应体)
- 内置多种认证方式(Basic、Digest、Bearer)
- 持久化 Session 管理(跨请求 Cookie)
- 文件上传与二进制下载支持
- HTTPS 与 SSL 证书验证
- 代理支持(HTTP/HTTPS/SOCKS)
- 离线模式(仅打印请求不发送)
- 与 curl 命令互转
命令速查表
基础请求
# GET 请求
http GET https://api.example.com/users
# 简写(默认 GET)
http https://api.example.com/users
# POST JSON(自动推断 Content-Type: application/json)
http POST https://api.example.com/users name="张三" age:=25
# PUT 更新
http PUT https://api.example.com/users/1 name="李四"
# PATCH 部分更新
http PATCH https://api.example.com/users/1 email="[email protected]"
# DELETE 删除
http DELETE https://api.example.com/users/1
请求参数与请求头
# URL 查询参数(== 语法)
http https://api.example.com/search q=="hello world" page==2
# 自定义请求头(: 语法)
http https://api.example.com/users "Authorization: Bearer mytoken123"
# 多个请求头
http https://api.example.com/data "X-API-Key: abc123" "Accept: application/json"
认证
# Basic 认证
http -a username:password https://api.example.com/protected
# Bearer Token
http https://api.example.com/me "Authorization: Bearer \x3Ctoken>"
# Digest 认证
http --auth-type=digest -a user:pass https://api.example.com/secure
输出控制
# 仅显示响应体
http --body https://api.example.com/users
# 仅显示响应头
http --headers https://api.example.com/users
# 显示请求+响应(调试用)
http --verbose https://api.example.com/users
# 安静模式(无输出,只看退出码)
http --quiet https://api.example.com/health
# 保存响应到文件
http https://api.example.com/file.pdf > file.pdf
安装要求
- Python 3.7+ 或直接使用独立二进制包
- 无其他强制依赖
许可证
BSD-3-Clause License
项目链接
- GitHub: https://github.com/httpie/cli
- 官网: https://httpie.io
- 文档: https://httpie.io/docs/cli
安全使用建议
This skill is a documentation/instruction package for installing and using the HTTPie CLI and appears coherent. Before allowing the agent to run commands: (1) Inspect any concrete install commands the agent will execute (curl | sh scripts, downloads to /usr/local/bin, sudo operations). Prefer user-local installs (pipx or --user) if you want to avoid system-wide changes. (2) Be cautious about exposing credentials or tokens — examples show Authorization headers; never store real secrets in shared session files without understanding where they are saved (~/.config/httpie/sessions). (3) If you don't want the agent to perform installs or edit shell rc files, ask it to provide commands only and run them yourself. (4) If you plan to allow autonomous execution, require explicit confirmation for actions that download or write files to system locations.
功能分析
Type: OpenClaw Skill
Name: httpie
Version: 0.1.0
The skill bundle provides legitimate documentation and instructions for using HTTPie, a popular open-source command-line HTTP client. The files (SKILL.md, guides, and troubleshooting.md) contain standard usage examples, installation procedures via official package managers (brew, pip, apt), and debugging tips. While the installation guide includes commands to fetch scripts and binaries from external sources (e.g., raw.githubusercontent.com and packages.httpie.io), these are the official distribution channels for the respective tools. There is no evidence of malicious intent, data exfiltration, or prompt injection designed to subvert the agent's behavior.
能力标签
能力评估
Purpose & Capability
Name, description, and all guides consistently describe a CLI client (HTTPie). The instructions, examples, and file paths (sessions, config) are appropriate for a tool that installs and runs an HTTP client.
Instruction Scope
The SKILL.md and guides include explicit AI-run command snippets for installing, testing, and troubleshooting (brew/pip/pipx/curl installs, PATH edits, reading ~/.config/httpie sessions). Those actions are relevant to installing/using HTTPie, but they ask the agent to execute shell commands and read local session files (which may contain cookies/tokens). Review/approval of such commands is recommended before execution.
Install Mechanism
This is an instruction-only skill (no install spec). The guides instruct downloading installers and binaries from official sources (GitHub raw Homebrew installer, packages.httpie.io, PyPI via pip). These are expected for installing HTTPie, but downloading/executing remote install scripts and writing to /usr/local/bin is high-impact—users should vet commands before running.
Credentials
The skill requests no environment variables or credentials in its metadata. The documentation shows optional use of environment variables (HTTP_PROXY, REQUESTS_CA_BUNDLE, HTTPIE_CONFIG_DIR) and example tokens/usernames in examples; these are typical examples for an HTTP client and not required by the skill itself.
Persistence & Privilege
The skill is not always-enabled and does not declare persistent privileges. The guides do suggest modifying shell rc files and writing session files under ~/.config/httpie, which are standard for an installed CLI but should be performed with user consent.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install httpie - 安装完成后,直接呼叫该 Skill 的名称或使用
/httpie触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release - HTTPie CLI skill for human-friendly API testing
元数据
常见问题
HTTPie 是什么?
HTTPie - 人性化的 HTTP 命令行客户端. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。
如何安装 HTTPie?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install httpie」即可一键安装,无需额外配置。
HTTPie 是免费的吗?
是的,HTTPie 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
HTTPie 支持哪些平台?
HTTPie 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 HTTPie?
由 CN-big-cabbage(@cn-big-cabbage)开发并维护,当前版本 v0.1.0。
推荐 Skills