afhttp CLI Reference

Regenerate with afhttp --help-markdown. See reference.md for field-level response details.

Command-Line Help for afhttp

This document contains the help content for the afhttp command-line program.

Command Overview:

afhttp

Agent-First HTTP — persistent HTTP client for AI agents.

Modes

Output and Exit Codes

Request Body Rules

Streaming and Files

Examples

afhttp GET https://api.example.com/users
afhttp POST https://api.example.com/users --body '{"name":"Alice"}'
afhttp POST https://api.openai.com/v1/files \
 --header "Authorization: Bearer sk-xxx" \
 --body-multipart purpose=assistants \
 --body-multipart file=@/tmp/data.jsonl;filename=data.jsonl;type=application/jsonl
afhttp GET https://api.example.com/stream --chunked-delimiter '\n\n'
afhttp GET https://example.com/large.tar.gz \
 --response-save-file /tmp/large.tar.gz \
 --log progress
afhttp --mode pipe

Usage: afhttp [OPTIONS] [METHOD] [URL]

Arguments:
Options: