Skip to main content

ACT Gateway for OpenClaw Integration with one-click installation

Project description

ACT Gateway – Production-Grade Execution Layer for AI Agents

PyPI version License: MIT MCP Compatible OpenClaw Skill Ready CrewAI Ready

ACT Gateway is a lightweight HTTP service that provides timeout, retry, rate limiting, circuit breaking, and unified response format capabilities for AI Agent tool calls. It seamlessly integrates with OpenClaw, CrewAI, MCP, and other Agent frameworks, making tool execution stable, observable, and governable.

Turn unreliable tool calls into deterministic execution.

Why ACT Gateway?

Capability Native Agent Calls Through ACT Gateway
Timeout Control ❌ None, may hang forever ✅ Configurable timeout, auto-interruption
Automatic Retry ❌ None ✅ Configurable retries with backoff
Rate Limiting ❌ None, risk of being overwhelmed ✅ Token bucket rate limiting, protects downstream
Circuit Breaking ❌ None, avalanche risk ✅ Circuit breaker, auto-trip
Unified Response ❌ Each tool has different format ✅ Standard Envelope with metadata
Observability ❌ None ✅ Auto-log latency, retry count, remaining quota

Architecture

graph TD
    A[OpenClaw / CrewAI / MCP Client] --> B[ACT Gateway]
    B --> C{Execution Control Layer}
    C --> D[Timeout]
    C --> E[Retry]
    C --> F[Rate Limiting]
    C --> G[Circuit Breaking]
    C --> H[Quota]
    D & E & F & G & H --> I[Actual Tool<br/>(API / Script / Function)]

One-Click Installation

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/deepseek609609-collab/ACT-OpenClaw-Bridge/main/install.sh | bash

Windows (PowerShell Admin)

powershell -ExecutionPolicy Bypass -Command "& { Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/deepseek609609-collab/ACT-OpenClaw-Bridge/main/install.ps1' -OutFile install.ps1; .\install.ps1 }"

Quick Verification

# Check service health
curl http://localhost:9000/health

# Call example tool
curl -X POST http://localhost:9000/act/dispatch \
  -H "Content-Type: application/json" \
  -d '{"intent": "weather.get_current", "params": {"city": "Beijing"}}'

Response Example (Envelope format):

{
  "version": "1.0",
  "execution": {
    "status": "ok",
    "latency_ms": 203,
    "retries": 0,
    "breaker_state": "closed",
    "quota_remaining": 9
  },
  "payload": {"city": "Beijing", "temperature": 22}
}

Ecosystem Integration

🔌 As MCP Execution Backend

ACT Gateway is fully compatible with the MCP protocol. Any MCP client (like Claude, Cursor) can call through these endpoints:

  • POST /mcp/tools/list — Discover all tools
  • POST /mcp/tools/call — Call specific tool

🦞 As OpenClaw Skill Execution Engine

The installation script automatically generates act-bridge skill for OpenClaw and mirrors all ACT tools as OpenClaw skills. Use directly in OpenClaw conversations:

"Use act-weather-get_current to query Beijing weather"

🚀 Integration with CrewAI

Use crewai_adapter.py to wrap ACT tools as CrewAI tools, giving CrewAI Agents automatic execution control capabilities.

Security & Governance

  • Secure by Default: Timeout, rate limiting, circuit breaking enforced by default, preventing tools from crashing the system
  • Quota Management: Independent rate limits per tool, preventing abuse
  • Parameter Validation: Strictly validates inputs against registered JSON Schema
  • Audit Logging: Records intent, status, latency for each call, easy to trace
  • Dangerous Capabilities Disabled: By default blocks sensitive operations like system.run, node.invoke (can be enabled via config)

Demo (Understand in 30 Seconds)

ACT Gateway Demo

Actual effect: Continuous requests → Rate limit rejection; Slow requests → Timeout; Continuous failures → Circuit breaker opens

Uninstallation

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/deepseek609609-collab/ACT-OpenClaw-Bridge/main/uninstall.sh | bash

Windows

Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/deepseek609609-collab/ACT-OpenClaw-Bridge/main/uninstall.ps1' -OutFile uninstall.ps1; .\uninstall.ps1

Contribution Guidelines

Welcome to submit PRs, Issues, or participate in discussions. Please read CONTRIBUTING.md.

License

MIT © ACT Kernel Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

act_openclaw_bridge-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

act_openclaw_bridge-1.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file act_openclaw_bridge-1.0.2.tar.gz.

File metadata

  • Download URL: act_openclaw_bridge-1.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for act_openclaw_bridge-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a2d873a2b17931f7555b31bef3acbdda5f9c51bb199db24cc08f425430111ecd
MD5 59640fab110fa63a2e8a84ead902757d
BLAKE2b-256 02e2577907aa39aaf5fb55c8ee40b1bf7cef83d8fabd4e7239ad329e4bd7cf31

See more details on using hashes here.

File details

Details for the file act_openclaw_bridge-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for act_openclaw_bridge-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b85e6f008584959ab8785feec379afd20a6d854454a27cb8a2a8799e35d182a
MD5 dc8f3dd8793cfdd105bcbbdd5cec58d5
BLAKE2b-256 dcd2828860a61ca21fd67decc217760149304a972c8988768da9926e80199e33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page