HTTP Retry Skill for Openclaw

A robust networking utility that implements exponential backoff and timeout controls to prevent agent failures due to transient network errors.

2233admin
v1.0.0
Feb 24, 2026
0
1k
7

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install http-retry

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 http-retry 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 Retry Skill?

The HTTP Retry Skill is a fundamental technical capability designed to ensure the reliability of automated network requests within the Openclaw Skills ecosystem. It addresses common points of failure in AI agent workflows, such as connection resets, server-side errors, and API rate limiting, by wrapping standard fetch requests in a resilient retry logic.

By leveraging this skill, developers can build more stable integrations that gracefully handle intermittent connectivity issues. The skill utilizes modern JavaScript features like the AbortController for precise timeout management and an exponential backoff algorithm to avoid overwhelming target servers during recovery attempts.

HTTP Retry Skill Use Cases

  • Managing API rate limits (HTTP 429) by automatically pausing and retrying requests.
  • Mitigating transient network errors like ECONNRESET and ECONNREFUSED.
  • Improving the reliability of web scraping or data mining tasks under unstable proxy conditions.
  • Implementing strict execution deadlines for network calls to prevent agent hangs.

How HTTP Retry Skill Works

  1. The skill initiates a network request with an attached AbortController to monitor execution time.
  2. If a request exceeds the defined timeout, the signal is aborted and the attempt is logged as a failure.
  3. Upon receiving specific error codes (like 429 Rate Limited or 5xx Server Errors), the skill calculates a delay based on the current attempt count.
  4. It pauses execution using an exponential backoff formula (retryDelay * 2^attempt) to give the remote service time to recover.
  5. The process repeats until the request succeeds or the maximum number of retry attempts is exhausted.

HTTP Retry Skill Setup

To integrate this logic into your project, you can implement the helper function directly in your utility folder. Ensure your environment supports the Fetch API and AbortController.

# This skill is a logic-based utility and does not require external npm packages.
# Simply incorporate the fetchWithRetry logic into your Openclaw Skills workflow.

HTTP Retry Skill Data Schema & Taxonomy

The skill operates as a functional wrapper and uses the following configuration schema to manage request lifecycles:

Attribute Type Description
url string The endpoint to be requested.
maxRetries number Total number of attempts allowed before failure (default: 3).
retryDelay number The base millisecond delay used for exponential backoff calculations.
timeout number The maximum time in milliseconds to wait for a single request attempt.
signal AbortSignal Managed internally to handle request cancellation.

HTTP Retry Skill Advanced Features

  • Exponential backoff strategy to intelligently space out retries and reduce server pressure.
  • Integrated timeout control using AbortController for high-performance execution.
  • Configurable retry conditions focusing on 429 (Rate Limit) and 5xx (Server) status codes.
  • Zero-dependency implementation compatible with standard Openclaw Skills environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*