styx-gateway

styx-gateway is a skill for Claude Code from timmx7/styx. It costs 38 tokens per session (512 once invoked), scanned A, original, Apache-2.0.

Guidance for using Styx, an AI API gateway that sits between an application and providers such as OpenAI, Anthropic, Google, and Mistral. It presents one compatible endpoint for sending model requests.

In plain words
What is it for?
Managing AI provider connections, checking gateway health, configuring keys and limits, routing requests, and reviewing model usage.
Why use it?
It centralizes API keys, provider routing, rate limits, caching, health checks, usage tracking, costs, and response times.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the styx plugin — 1 skill, 2 commands, 1 agent shipped together

Good fit Managing AI provider connections, checking gateway health, configuring keys and limits, routing requests, and reviewing model usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timmx7/styx/styx-gateway
View source ↗ timmx7/styx
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.

Any agent
npx skills add timmx7/styx --skill styx-gateway
Clone the repo
git clone --depth 1 https://github.com/timmx7/styx

Made for: Claude Code.

Or install styx, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent.

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 styx-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/timmx7/styx/styx-gateway/github.svg)](https://agentmods.dev/skills/timmx7/styx/styx-gateway)
Your own site
<a href="https://agentmods.dev/skills/timmx7/styx/styx-gateway"><img src="https://agentmods.dev/badge/skills/timmx7/styx/styx-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for styx-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/timmx7/styx/styx-gateway"><img src="https://agentmods.dev/badge/skills/timmx7/styx/styx-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.00512
Opus 5 $0.00019 $0.00256
Sonnet 5 $0.00008 $0.00102
Haiku 4.5 $0.00004 $0.00051

Measured 11d ago against content hash 3262142868bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

styx-gateway scanned grade A with 0 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 11d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code-plugin/skills/styx-gateway/SKILL.md · 55 lines

What it actually says

Styx — MCP-Native AI API Gateway

You have access to a running Styx gateway that proxies and manages LLM API traffic across multiple providers.

What Styx Does

Styx is a unified gateway that sits between your application and AI providers (OpenAI, Anthropic, Google, Mistral, etc.). It provides:

  • Unified endpoint: Send requests to http://localhost:8080/v1/chat/completions using OpenAI-compatible format
  • Key management: Store and rotate API keys for all providers in one place
  • Rate limiting: Per-key and per-model rate limits to control costs
  • Caching: Semantic caching to reduce duplicate API calls
  • Analytics: Real-time usage tracking, cost monitoring, and latency metrics
  • MCP server: Native Model Context Protocol server at /mcp

Available MCP Tools

  • list_providers — List all configured AI providers and their status
  • list_models — List available models across all providers
  • get_usage — Get usage statistics for a time range
  • get_health — Check gateway health and provider connectivity
  • create_api_key — Generate a new API key with optional rate limits
  • revoke_api_key — Revoke an existing API key
  • list_api_keys — List all API keys and their status
  • get_cache_stats — View cache hit rates and savings
  • route_request — Send a chat completion through the gateway

Common Workflows

Check gateway status

Use get_health to verify Styx is running and all providers are reachable.

View costs and usage

Use get_usage with a date range to see token consumption and costs by provider and model.

Create a scoped API key

Use create_api_key with rate limit parameters to generate keys for specific applications or team members.

Setup

If Styx is not yet running:

git clone https://github.com/styx-hq/styx.git
cd styx && ./setup.sh && docker compose up -d

Gateway: http://localhost:8080 | Dashboard: http://localhost:3000

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. 11d ago First seen · 55 lines · 38 tokens per session scan A 3262142868bd

Subscribe to this mod's changes

styx-gateway is a skill published in the GitHub repository timmx7/styx (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 512 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

gemini-api-dev

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best…

google-gemini/gemini-skills · 73 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building agentic retrieval with knowledge bases.

microsoft/skills · 48 tokens