Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hyperswitch

БесплатноБез исполняемых скриптовНе проверен

Hyperswitch is an open-source payments switch written in Rust that puts one API in front of many payment processors such as Stripe, Adyen and PayPal, with…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Hyperswitch — one payments API in front of many processors

Overview

Hyperswitch (by Juspay) is a payments switch: your backend calls its REST API once, and it routes each payment to a processor you have connected, applies routing rules or traffic splits, and can retry on another processor. The app server (Rust) listens on port 8080 and the Control Center dashboard on port 9000.

An agent's realistic jobs are: start the stack, read the API key from the dashboard, register processor accounts, create routing rules, create and confirm test payments, refund them, and read status. Everything here runs in test mode. Use the built-in dummy processor stripe_test (also listed in the API enum: fauxpay, pretendpay) and documented test cards. Never put real card numbers or live processor credentials into a local stack.

Details were checked against the repository (docker-compose.yml, scripts/setup.sh, the OpenAPI file api-reference/v1/openapi_spec_v1.json) and docs.hyperswitch.io; the stack itself was not started while writing this skill, because it binds fixed ports. Treat the first run as the verification step, and expect to adjust a field if a response rejects it.

Instructions

Start a local stack

scripts/setup.sh is interactive (it asks you to pick a profile by keypress), so for an agent the Compose route is simpler. It builds nothing: it pulls prebuilt images from docker.juspay.io.

git clone --depth 1 --branch latest https://github.com/juspay/hyperswitch.git
cd hyperswitch || exit 1
docker compose up -d hyperswitch-server
curl -s http://localhost:8080/health

hyperswitch-server depends on Postgres, Redis and the migration_runner service (which installs the diesel CLI and just inside a Debian container, so the first start needs internet access and takes minutes); Compose starts them in order. If a service name differs in your checkout, run docker compose config --services. To also get the dashboard, add hyperswitch-control-center and create-default-user; the one-click script (scripts/setup.sh) offers three profiles: Standard (server plus Control Center), Full (adds monitoring and schedulers) and Standalone App Server (API only). It prints a demo login for the dashboard ([email protected] / Hyperswitch@123, a public default, so use it on a local machine only and never on a reachable host) and these URLs: app server http://localhost:8080, Control Center http://localhost:9000, Superposition http://localhost:8081, Grafana http://localhost:3000 on the Full profile.

Notes before you run it:

  • The compose file publishes ports on all interfaces. On a shared machine, edit the ports: entries to 127.0.0.1:....
  • The post-start hook sends an anonymous status ping to hyperswitch.gateway.scarf.sh; read scripts/poststart_hook.sh if that matters in your environment.
  • The Docker config (config/docker_compose.toml) ships admin_api_key = "test_admin", a placeholder jwt_secret and a sample master_enc_key. These are for local testing only; production needs its own values.
  • Stop with docker compose down; add -v only if you want to delete the database volume.

Get a merchant API key

Easiest path: sign in to the Control Center (http://localhost:9000), go to Settings, Developers, and create an API key. Keep it in an environment variable. Merchant endpoints authenticate with the api-key header.

export HYPERSWITCH_URL=http://localhost:8080
export HYPERSWITCH_API_KEY=...        # created in Control Center, Settings > Developers
export HYPERSWITCH_PROFILE_ID=...     # shown on the same page (starts with pro_)

Admin-only endpoints (POST /accounts to create a merchant, POST /api_keys/{merchant_id} to mint a key) use the admin key from the server config. The OpenAPI file declares it as an Authorization: admin-api-key=<key> header, and the server source parses that format, for example -H "Authorization: admin-api-key=$HYPERSWITCH_ADMIN_KEY" with the value of admin_api_key from config/docker_compose.toml. If one of those calls answers 401, compare the header format against the OpenAPI file for your checkout before changing anything else.

Connect a test processor

Register a processor account (a "merchant connector account", MCA). The stripe_test test connector takes a HeaderKey auth block with one api_key field (per the repository's connector config); use a placeholder value here. Create two with different labels if you want to split traffic:

curl -s -X POST "$HYPERSWITCH_URL/account/$HYPERSWITCH_MERCHANT_ID/connectors" \
  -H "api-key: $HYPERSWITCH_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "connector_type": "payment_processor",
    "connector_name": "stripe_test",
    "connector_label": "primary_test",
    "profile_id": "'"$HYPERSWITCH_PROFILE_ID"'",
    "connector_account_details": {"auth_type": "HeaderKey", "api_key": "dummy_key_primary"},
    "test_mode": true,
    "payment_methods_e
Полный SKILL.md на GitHub

Установить hyperswitch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл hyperswitch?

Hyperswitch is an open-source payments switch written in Rust that puts one API in front of many payment processors such as Stripe, Adyen and PayPal, with routing, retries and a dashboard. Use when a user asks to run Hyperswitch locally with Docker Compose, connect a test processor, create and confirm a test payment through the REST API, split traffic between two processors, set routing rules, or refund a payment. Test mode and dummy processors only.

Как установить скилл hyperswitch?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hyperswitch запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hyperswitch с