API Gateway for Openclaw

A managed OAuth proxy that enables AI agents to interact with over 100 third-party APIs using a single Maton API key.

ayakolin
v1.0.0
Mar 22, 2026
0
957
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install api-gateway-tmp

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-tmp 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 is a powerful passthrough proxy designed for Openclaw Skills that simplifies the complex world of third-party integrations. It allows developers and AI agents to call native API endpoints directly from services like Google Workspace, Microsoft 365, GitHub, and Slack without manually managing individual OAuth flows or token refreshes.

By routing requests through a standardized base URL, the gateway automatically injects the necessary authorization tokens. This ensures a secure, scoped, and streamlined development experience where the MATON_API_KEY acts as the central authentication mechanism while maintaining strict user-authorized access to external services.

API Gateway Use Cases

  • Automating communication by sending native Slack messages or Gmail replies.
  • Syncing data across platforms such as HubSpot, Salesforce, or Airtable.
  • Managing productivity tools by creating Jira issues, Notion pages, or Google Calendar events.
  • Performing advanced research using Brave Search, Exa, or Tavily native endpoints.
  • Interacting with cloud storage providers like Dropbox, Box, and OneDrive for file management.

How API Gateway Works

  1. The user authenticates with Maton.ai and obtains a MATON_API_KEY.
  2. A connection is established to a specific app (e.g., Slack) via the control plane to trigger the OAuth flow.
  3. The agent sends a request to the gateway using the format [https://gateway.maton.ai/](https://gateway.maton.ai/){app}/{native-api-path}.
  4. The API Gateway identifies the required app and retrieves the active OAuth token for that user.
  5. The gateway forwards the request to the target service's native API with the correct headers and parameters.
  6. The response from the target API is passed back directly to the agent.

API Gateway Setup

To start using this among your Openclaw Skills, set up your environment variable and initialize a connection:

# Set your Maton API Key
export MATON_API_KEY="YOUR_API_KEY"

# Create a new connection for a service (e.g., Slack)
curl -X POST https://ctrl.maton.ai/connections \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app": "slack"}'

After running the create command, open the provided URL in your browser to authorize the service.

API Gateway Data Schema & Taxonomy

The gateway uses a predictable routing schema to map requests to native providers.

Component Description Example
Base URL The gateway entry point [https://gateway.maton.ai](https://gateway.maton.ai)
App Name The unique identifier for the service google-mail
Native Path The endpoint as defined in the target's docs gmail/v1/users/me/messages
Connection ID Optional header to specify a specific account Maton-Connection: <uuid>

All metadata regarding connections, such as status, creation_time, and app type, is managed via the [https://ctrl.maton.ai](https://ctrl.maton.ai) endpoint.

API Gateway Advanced Features

  • Multi-account support via the Maton-Connection header for managing multiple instances of the same app.
  • Automatic OAuth token refreshing and lifecycle management.
  • Passthrough of custom headers and query parameters for full native API parity.
  • GraphQL support for services like Jobber, Linear, and Monday.com.
  • Specialized path replacement for complex integrations like QuickBooks realmId.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*