API Gateway for Openclaw

A secure passthrough proxy that simplifies connecting AI agents to over 100 native third-party APIs using managed OAuth token injection.

kdegeek
v1.0.0
Feb 23, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install api-gateway-1

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 api-gateway-1 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 API Gateway?

The API Gateway skill acts as a unified bridge between your AI agent and a vast ecosystem of over 100 third-party services. By utilizing this skill within Openclaw Skills, developers can bypass the complex overhead of managing individual OAuth flows, token refreshes, and credential storage for every service they integrate. It provides a consistent interface to interact with native endpoints for popular tools like Google Workspace, Microsoft 365, Notion, Slack, and Salesforce.

Built by Maton.ai, the gateway ensures that security is paramount; while the MATON_API_KEY authenticates the agent with the proxy, each third-party service requires explicit user authorization through a secure connect flow. This architecture allows AI agents to perform complex, cross-platform tasks using native API logic while maintaining a clean and standardized authentication layer.

API Gateway Use Cases

  • Automating message delivery and channel management across Slack and Microsoft Teams.
  • Synchronizing CRM data between HubSpot, Salesforce, and Pipedrive through direct native API calls.
  • Managing document lifecycles in Notion, Google Docs, and Coda based on AI-driven workflows.
  • Orchestrating complex file operations and permission updates in Google Drive, Dropbox, and Box.
  • Automating transactional communications using SendGrid, Twilio, or Mailgun within an Openclaw Skills environment.

How API Gateway Works

  1. The user authenticates with Maton.ai and retrieves a MATON_API_KEY to authorize the agent.
  2. A connection is initiated for a specific third-party application (e.g., Airtable) via the Maton control API.
  3. The user completes the native OAuth authorization flow through the provided secure URL.
  4. The agent sends HTTP requests to the gateway URL using the specific service prefix (e.g., /airtable/v0/...)..
  5. The API Gateway automatically injects the authorized OAuth token and forwards the request to the native service, returning the raw response to the agent.

API Gateway Setup

To get started with this skill for Openclaw Skills, follow these installation steps:

  1. Sign in to your account at maton.ai and navigate to the settings page to copy your API Key.
  2. Configure your environment by setting the MATON_API_KEY variable:
export MATON_API_KEY="YOUR_API_KEY"
  1. Create a connection for your target service (e.g., Slack):
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'slack'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
  1. Visit the URL returned in the JSON response to complete the OAuth authorization flow.

API Gateway Data Schema & Taxonomy

The skill utilizes a structured routing system to map requests to native APIs. Data is organized by service prefixes as detailed below:

Component Type Description
Gateway Base URL https://gateway.maton.ai/{app}/{native-api-path}
Control Base URL https://ctrl.maton.ai/connections
App Name Path Param The unique identifier for the service (e.g., google-sheets, stripe)
Auth Header Header Bearer token using your MATON_API_KEY
Connection ID Header Optional Maton-Connection header to specify a specific account instance

API Gateway Advanced Features

  • Support for 100+ native service integrations with full passthrough of custom headers and query parameters.
  • Multi-account management allowing agents to toggle between different authorized connections for the same service.
  • Automatic OAuth token refresh cycles managed entirely by the Maton infrastructure.
  • Native API status code passthrough, ensuring error handling logic remains consistent with original service documentation.
  • Specialized handling for GraphQL-based services like Jobber, Linear, and Monday.com.
  • High-performance rate limiting (10 requests/second) designed for AI-driven automation within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*