HTTP Requests for Openclaw

A Python-powered skill for executing complex HTTP requests without the escaping and quoting issues common in traditional curl commands.

pumpkinttl
v1.0.0
Apr 6, 2026
0
665
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install httprequests

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install httprequests using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is HTTP Requests?

The HTTP Requests skill provides a robust interface for AI agents to interact with external APIs and web services. By leveraging the Python requests library instead of standard curl, it eliminates the common pitfalls of shell quoting and character escaping, especially when dealing with complex JSON payloads or nested query parameters.

As a core component of the Openclaw Skills ecosystem, this tool ensures that your agent can reliably perform GET, POST, PUT, and DELETE operations. It focuses on developer ergonomics by providing a structured way to handle headers, form data, and timeouts while maintaining a secure, lightweight logging footprint.

HTTP Requests Use Cases

  • Replacing fragile curl commands in automated workflows to prevent shell injection or escaping errors.
  • Testing webhooks and RESTful API endpoints during the development lifecycle.
  • Integrating multi-step API interactions that require specific headers, such as Authorization or Content-Type.
  • Monitoring API responsiveness and status codes through structured JSONL logs.

How HTTP Requests Works

  1. The agent identifies a need to communicate with a remote server based on user intent (e.g., "call this API" or "test this webhook").
  2. The skill collects necessary parameters including the HTTP method, target URL, and optional payloads like JSON bodies or headers.
  3. The scripts/request_http.py script is executed, processing the inputs through the Python requests engine.
  4. The request is dispatched with specified timeout controls to prevent hanging processes.
  5. A success or failure response is captured, and a sanitized summary is recorded in the daily log file.

HTTP Requests Setup

To use this within the Openclaw Skills framework, ensure your environment has Python 3.x and the requests library installed:

pip install requests

Place the request_http.py script into your scripts/ directory and ensure the agent has execution permissions for the Python interpreter.

HTTP Requests Data Schema & Taxonomy

The skill maintains a structured logging system to track activity without compromising security. Logs are organized by date.

Attribute Description
Path logs/YYYY-MM-DD.jsonl
Format JSON Lines (one JSON object per request)
Fields Recorded timestamp, method, url, status, ok, duration_ms, response_bytes, error
Security Sensitive data like Auth tokens, cookies, and full bodies are excluded from logs.

HTTP Requests Advanced Features

  • Intelligent timeout control to ensure agent reliability and prevent blocked threads.
  • Usage pattern references in references/usage-patterns.md for complex multi-header configurations.
  • Automated discrimination between JSON body payloads and standard form-encoded data.
  • Optimized for Openclaw Skills integration, allowing seamless handoffs between data processing and external API reporting.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*