test-gateway

test-gateway is a skill for Claude Code from experientiallabs/experiential. It costs 70 tokens per session (1,158 once invoked), scanned B, original, Apache-2.0.

An end-to-end test procedure for Experiential’s local gateway, which provides OpenAI-compatible routes for software clients.

In plain words
What is it for?
Use it to test the setup wizard, served routes, usage accounting, restart persistence, and a client such as opencode.
Why use it?
It checks the complete first-run setup and confirms that the gateway keeps working across requests, usage tracking, restarts, and client connections.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions OpenCode.

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/experientiallabs/experiential/test-gateway
Any agent
npx skills add experientiallabs/experiential --skill test-gateway
Clone the repo
git clone --depth 1 https://github.com/experientiallabs/experiential

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/experientiallabs/experiential/test-gateway.svg)](https://agentmods.dev/skills/experientiallabs/experiential/test-gateway)
Your own site
<a href="https://agentmods.dev/skills/experientiallabs/experiential/test-gateway"><img src="https://agentmods.dev/badge/skills/experientiallabs/experiential/test-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.1 $0.00070 $0.01158
Opus 5 $0.00035 $0.00579
Sonnet 5 $0.00014 $0.00232
Haiku 4.5 $0.00007 $0.00116

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

Security

Grade B, and why

test-gateway scanned grade B 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Install opencode with a user-level npm prefix (global install needs no sudo that way):

Makes network callslowCapability

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

curl http://127.0.0.1:8822/v1/models -H "Authorization: Bearer $K" # expect alias "mini"
.claude/skills/test-gateway/SKILL.md · 116 lines

How it starts

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

Test the local gateway end to end

Verified procedure for exercising the gateway happy path from a clean state. Run everything from the repo root with uv run so the project environment is used.

1. Interactive first-run setup (TUI)

exp run on a real TTY with an uninitialized root opens the first-run wizard (exp/cli/gateway/setup.py). Pick a fresh root, then:

uv run exp run --root /path/to/fresh/.exp --port 8822

Known-good prompt answers (OpenAI provider, real key in OPENAI_API_KEY):

Prompt Answer
Provider connection name openai
Provider adapter openai
Credential environment variable name OPENAI_API_KEY
Base URL empty (provider default)
Exact provider model ID gpt-5.4-mini
Exact logical model identity gpt-5.4-mini
Public model alias mini
Default identity accept default
Create this gateway configuration? y

Identifiers must match ^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$ (lowercase, dot/underscore/hyphen separators).

On success it prints "Gateway ready at http://127.0.0.1:8822/v1", the usage URL, and a one-time virtual key (export OPENAI_API_KEY=exp_vk_...), then serves uvicorn. The raw key is shown exactly once: capture it immediately.

Non-TTY contexts (pipes, --json, --non-interactive) never prompt; they exit 2 with gateway_not_initialized plus the exact non-interactive setup commands.

2. Verify the served routes

With K set to the issued virtual key:

curl http://127.0.0.1:8822/v1/models -H "Authorization: Bearer $K"                  # expect alias "mini"
curl http://127.0.0.1:8822/v1/chat/completions -H "Authorization: Bearer $K" \
  -H "Content-Type: application/json" \
  -d '{"model":"mini","messages":[{"role":"user","content":"Reply with exactly: gateway-ok"}]}'
# stream:true returns SSE chunks ending in "data: [DONE]"
curl http://127.0.0.1:8822/v1/responses -H "Authorization: Bearer $K" \
  -H "Content-Type: application/json" -d '{"model":"mini","input":"Say hi"}'
curl -o /dev/null -w '%{http_code}' http://127.0.0.1:8822/v1/models                  # keyless: expect 401

Read the full file on GitHub · 116 lines

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. 6d ago First seen · 116 lines · 70 tokens per session scan B a8e887d4abd5

Subscribe to this mod's changes

test-gateway is a skill published in the GitHub repository experientiallabs/experiential (1,296 stars, last pushed today), licensed Apache-2.0. It adds 70 tokens to every session and 1,158 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). 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

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

run-integration-tests

Build, pack, and run .NET MAUI integration tests locally. Validates templates, samples, and end-to-end scenarios using the local workload.

dotnet/maui · 35 tokens

cli-e2e-testcase-writer

Use when adding or updating Go CLI E2E coverage for one tests/clie2e/{domain} domain of the compiled lark-cli, especially when the work requires live --help or schema exploration, scenario-based clie2e.RunCmd workflows, and per-domain coverage.md maintenance.

larksuite/cli · 78 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

every-app/open-seo · 35 tokens

agent-device-evidence

Records iOS/Android native MP4 evidence for test/repro flows extracted from an Expensify GitHub PR or issue. Use when the user asks to "record the flow for PR.

Expensify/App · 43 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens