api-gateway

api-gateway is a skill for Claude Code, Codex from maton-ai/api-gateway-skill. It costs 173 tokens per session (16,635 once invoked), scanned A, original, MIT.

A gateway for calling third-party services through Maton after the user has connected an app. It handles the app credential so the coding agent can make supported API requests.

In plain words
What is it for?
Use it to read or update data in a connected app when the requested action is supported by that app's API.
Why use it?
It avoids manually passing long-lived API keys to commands and provides a consistent route to connected services.

Skill for Claude CodeCodex

Part of the api-gateway plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/maton-ai/api-gateway-skill/api-gateway
Any agent
npx skills add maton-ai/api-gateway-skill --skill api-gateway
Clone the repo
git clone --depth 1 https://github.com/maton-ai/api-gateway-skill

Made for: Claude Code, Codex.

Or install api-gateway, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/maton-ai/api-gateway-skill/api-gateway.svg)](https://agentmods.dev/skills/maton-ai/api-gateway-skill/api-gateway)
Your own site
<a href="https://agentmods.dev/skills/maton-ai/api-gateway-skill/api-gateway"><img src="https://agentmods.dev/badge/skills/maton-ai/api-gateway-skill/api-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00173 $0.16635
Opus 5 $0.00086 $0.08317
Sonnet 5 $0.00035 $0.03327
Haiku 4.5 $0.00017 $0.01664

Measured yesterday against content hash ec267b48026a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-gateway scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import urllib.request, os, json, urllib.parse

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(
providers/claude/plugin/skills/api-gateway/SKILL.md · 1,392 lines

How it starts

The opening of the file, as written. The whole thing — 1,392 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maton API Gateway

Managed API routing for third-party apps, provided by Maton.

Installation

NPM

npm install -g @maton/cli

Homebrew

brew install maton-ai/cli/maton

Authentication

OAuth (Recommended)

maton login --oauth

Opens the OAuth login page in the browser and waits for authorization. Once complete, it creates a profile in config.toml (eg. $HOME/.config/maton/config.toml) and stores the access and refresh tokens in the operating system's credential store (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux), auto-renewed on expiry. The CLI reads them when it needs them; nothing else should.

API Key

maton login --interactive

Requires manually copying an API key from Settings, which is error prone. Once complete, it also creates a profile in config.toml and stores the key in the same credential store. It is preferred over export MATON_API_KEY=..., which exposes a long-lived credential to every child process. When MATON_API_KEY is set, it overrides the active profile. If the CLI cannot be installed at all, see Appendix: Environments Without the CLI for the raw HTTP form and the rules for handling the key.

Verify

maton whoami --json
{
  "authenticated": true,
  "profile_name": "[email protected]",
  "auth_type": "oauth"
}
  • If authenticated is false, stop and login again via maton login --oauth.
  • If auth_type is api_key, it is recommended to login via maton login --oauth and avoid keeping a long-lived credential.

Connections

List Connections

maton connection list slack --status ACTIVE
{
  "connections": [
    {
      "connection_id": "{connection_id}",
      "status": "ACTIVE",
      "creation_time": "2025-12-08T07:20:53.488460Z",
      "last_updated_time": "2026-01-31T20:03:32.593153Z",
      "url": "https://connect.maton.ai/?session_token=5e9...",
      "app": "slack",
      "method": "OAUTH2",
      "metadata": {}
    }
  ]
}

Read the full file on GitHub · 1,392 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +377 lines ec267b48026a
  2. 5d ago First seen · 1,015 lines · 173 tokens per session scan A bbf41dfc7fb7

Subscribe to this mod's changes

api-gateway is a skill published in the GitHub repository maton-ai/api-gateway-skill (28 stars, last pushed 2d ago), licensed MIT. It adds 173 tokens to every session and 16,635 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mckinsey-consultant

McKinsey顾问式问题解决系统。从商业问题出发,通过假设驱动的结构化分析方法,生成McKinsey风格研究报告和PPT。融合Problem Solving方法论、MECE原则、Issue Tree拆解、Hypotheses形成、Dummy Page设计、智能数据收集和专业PPT生成能力。.

Mann1988/awesome-claude-skills · 82 tokens

mimeng-writing

咪蒙爆款文章写作技巧。适用于需要创作10万+阅读量爆款文章、情感共鸣类内容、故事叙事或社会议题评论时使用。掌握标题制造、开篇设计、情绪调动、金句提炼、故事叙事等核心技巧。.

Mann1988/awesome-claude-skills · 0 tokens

us-gov-shutdown-tracker

Track and analyze US government shutdown liquidity impacts by monitoring TGA (Treasury General Account), bank reserves, EFFR, and SOFR data from FRED API. Use when user wants to (1) analyze current or past government shutdown effects on financial markets, (2) track liquidity conditions during fiscal policy…

Mann1988/awesome-claude-skills · 126 tokens

remotion-upgrade

Upgrade Remotion, and related packages.

guanyang/open-agent-hub · 12 tokens

sync-cliproxy-core

Use when asked to 同步、更新、升级或审计 CLIProxyAPI、cliproxy、translator core、provider adapters、Antigravity 请求/响应转换、internal/protocol/cliproxy 转换快照,刷新上游 commit,或审查一次核心与渠道适配器的原子同步结果。.

caidaoli/ccLoad · 75 tokens

remotion-create

Creating a new Remotion video.

guanyang/open-agent-hub · 10 tokens