httpie

A readable command-line client for HTTP, the protocol used by web browsers and APIs to exchange requests and responses.

In plain words
What is it for?
Use it to test REST endpoints, send GET or POST requests, upload or download files, try authentication, keep cookies between requests, inspect responses, or prepare reusable request commands.
Why use it?
It makes API requests easier to write and inspect than raw command-line requests, with built-in JSON handling, formatted output, authentication, and session cookies.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cn-big-cabbage/github-skill-distiller/httpie
Any agent
npx skills add CN-big-cabbage/github-skill-distiller --skill httpie
Clone the repo
git clone --depth 1 https://github.com/CN-big-cabbage/github-skill-distiller

Made for: Claude Code, Codex.

Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,131 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.01131
Opus 5 $0.00008 $0.00566
Sonnet 5 $0.00003 $0.00226
Haiku 4.5 $0.00002 $0.00113

Measured 2d ago against content hash cdf5fb037ac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

httpie scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**主要特点**: 语法简洁、自动格式化、彩色输出、内置 JSON 支持、比 curl 更易读写
cases/httpie/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTTPie 人性化 HTTP 命令行客户端

技能概述

本技能帮助用户通过命令行发送 HTTP 请求,调试 API 接口,适用于以下场景:

  • REST API 调试: 发送 GET/POST/PUT/DELETE 等各类 HTTP 请求
  • 接口测试: 快速验证 API 端点的请求与响应
  • 文件上传下载: 通过命令行进行文件传输
  • 身份认证: 支持 Basic、Bearer Token、Digest 等多种认证方式
  • 会话管理: 跨请求保持 Cookie 与认证状态
  • 格式化输出: 自动语法高亮显示 JSON、XML 响应体

主要特点: 语法简洁、自动格式化、彩色输出、内置 JSON 支持、比 curl 更易读写

使用流程

AI 助手将引导你完成以下步骤:

  1. 安装 HTTPie(如未安装)
  2. 构建 HTTP 请求(方法、URL、请求头、请求体)
  3. 执行请求并查看格式化响应
  4. 根据响应调整请求参数
  5. 将成功的命令保存为可复用脚本

关键章节导航

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 <token>"

# Digest 认证
http --auth-type=digest -a user:pass https://api.example.com/secure

Read the full file on GitHub · 154 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 154 lines · 16 tokens per session scan A cdf5fb037ac7

Subscribe to this mod's changes

httpie is a skill published in the GitHub repository CN-big-cabbage/github-skill-distiller (4 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 1,131 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.