use-understudy-gateway

use-understudy-gateway is a skill for Claude Code, Codex from understudylabs/understudy-agent-tools. It costs 87 tokens per session (3,566 once invoked), scanned A, original, MIT.

A guide for running application inference or evaluations through the Understudy Gateway, a managed route to model services.

In plain words
What is it for?
Use it to set up gateway access, route workloads, compare or split traffic between models, manage projects and keys, and monitor durable command runs when explicitly using Understudy.
Why use it?
It helps decide between local provider keys and gateway routing while keeping credentials out of the repository and avoiding unsafe key handling.

Skill for Claude CodeCodex

Part of the understudy plugin — 43 skills, 1 command 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/understudylabs/understudy-agent-tools/use-understudy-gateway
Any agent
npx skills add understudylabs/understudy-agent-tools --skill use-understudy-gateway
Clone the repo
git clone --depth 1 https://github.com/understudylabs/understudy-agent-tools

Made for: Claude Code, Codex.

Or install understudy, the plugin that ships this one along with the rest of its 43 skills, 1 command.

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 use-understudy-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/understudylabs/understudy-agent-tools/use-understudy-gateway.svg)](https://agentmods.dev/skills/understudylabs/understudy-agent-tools/use-understudy-gateway)
Your own site
<a href="https://agentmods.dev/skills/understudylabs/understudy-agent-tools/use-understudy-gateway"><img src="https://agentmods.dev/badge/skills/understudylabs/understudy-agent-tools/use-understudy-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00087 $0.03566
Opus 5 $0.00044 $0.01783
Sonnet 5 $0.00017 $0.00713
Haiku 4.5 $0.00009 $0.00357

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

Security

Grade A, and why

use-understudy-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 3d 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.

skills/use-understudy-gateway/SKILL.md · 323 lines

How it starts

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

Use Understudy Gateway

Use this worker when the developer wants to run an application workload through Understudy-managed inference or needs the CLI to execute a durable command while the agent monitors status and artifacts.

The local evidence loop does not require auth. Route here only when the developer explicitly asks for Understudy inference, gateway routing, project/key management, workload route configuration, hosted execution, or authenticated gateway routing.

Choosing frontier access? When an onboarding step, installer, or local-vs-frontier comparison needs a remote frontier model, run the decision in references/frontier-keys.md first. Default to the Understudy managed catalog when the requested model is available there; use BYO shell/.env keys only for unsupported models, provider-specific account needs, or an explicit developer preference. It keeps secrets local, asks before reading .env values, and records the choice without printing keys.

Safety Gates

Do not ask the developer to paste an API key. Use the CLI registration flow and let the CLI store credentials outside the repo.

Do not print, commit, or write sk_* values into artifacts. understudy run injects UNDERSTUDY_API_KEY, UNDERSTUDY_GATEWAY_URL, and the non-secret UNDERSTUDY_ORG_ID when known only into the child process environment.

The developer's action that launches a named bounded workflow authorizes its declared provider calls, uploads, hosted jobs, evaluation, receipts, and cleanup. Do not pause for another confirmation between those phases. Ask again only before expanding the displayed data, destination, spend, retention, download, credential, or production-impact envelope.

Always stream gateway inference

Every inference request sent to the Understudy gateway (/v1/messages or /v1/chat/completions) must set stream: true. This is not a style preference: the gateway sits behind an edge that cuts any origin response producing no first byte within ~125 seconds and returns a 524 to the client. A non-streaming request holds the response open for the model's full generation time, so a slow generation can cross that limit and fail — and a 524 carries no usage block, so the request's tokens cannot be metered. With stream: true the upstream returns headers and SSE framing within seconds, so the first-byte timeout can never fire regardless of generation length.

Read the full file on GitHub · 323 lines

Files

What ships with it

2 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. 3d ago First seen · 323 lines · 87 tokens per session scan A cd9aa796ff02

Subscribe to this mod's changes

use-understudy-gateway is a skill published in the GitHub repository understudylabs/understudy-agent-tools (16 stars, last pushed 4d ago), licensed MIT. It adds 87 tokens to every session and 3,566 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

auditing-subgroup-fairness

Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Use when the user wants per-subgroup recall and leakage, wants to check whether de-identification under-protects a group, wants to…

maziyarpanahi/openmed · 148 tokens

aatmf-t10-confidentiality-breach

AATMF T10 — Integrity & Confidentiality Breach. System prompt extraction, training-data extraction, model-weight leakage, private-key recovery.

PurpleAILAB/Decepticon · 39 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens