/xsolla-ai-kit:merchant-setupfrom xsolla-ai-kit
Walks through creating an Xsolla account and obtaining API credentials. Checks for existing .env credentials, then guides manual registration for merchant/project keys and sandbox setup.
Ships in xsolla-ai-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI Agent cannot create an Xsolla account automatically. The user must complete the registration steps manually.
Before anything else, check for a .env file in the project root:
# Check if .env exists and contains Xsolla variables
cat .env 2>/dev/null | grep -E "XSOLLA_MERCHANT_ID|XSOLLA_PROJECT_ID|XSOLLA_PROJECT_API_KEY"
If all three variables are present and non-empty — credentials are already configured. Report them to the user (show names and values, except mask the API key as ****) and proceed directly with the integration. Skip all steps below.
✅ Found in .env:
XSOLLA_MERCHANT_ID=887981
XSOLLA_PROJECT_ID=308077
XSOLLA_PROJECT_API_KEY=**** (set)
If the file is missing or any variable is absent — walk the user through the steps below.
Where the key lives:
shop-setup) has a project directory. Write the merchant id, project id, and project API key to .env (Step 5). That file is for the application.nocode-shop-setup) has nowhere to put .env. Do not create one. Ask the user to generate a separate project API key for this chat, paste it here, and delete that key in Publisher Account when setup is finished. Do not reuse the key a live project already uses. Hold it in the conversation for the calls, and do not write it to a file.xsolla auth login instead of a pasted project key. Never ask the user to paste a session token.xsolla auth login reports that it created a Store API key for the project and saved it to the keychain, CLI commands use that key. Don't ask the user for a key and don't copy it into .env or the chat. Check it with one read-only catalog command for this project. If that read returns 401, auth login made no key for this project (seen after switching projects). Create one project key with xsolla publisher create-api-key (confirm it with xsolla publisher --help): the CLI saves it to the keychain and uses it. Then continue. Don't put it in .env for the CLI: the CLI doesn't read an API key from a .env in the working folder. A key the user made by hand goes into the shell that runs the CLI, as XSOLLA_API_KEY. Create one key per project, not one per run.Direct the user to: https://publisher.xsolla.com/signup
| Individual | Company | |
|---|---|---|
| When to use | Just testing, evaluating Xsolla, quick sandbox setup | Committed to going live, need a contract |
| Registration | Simple — email, Google, or social login | Requires company details for the licensing agreement |
| Contract | Still needed for live payments, but can skip for sandbox | Submit from the Agreements tab once ready |
For pure exploration and sandbox testing, an individual account is the fastest path. The user can always add company details later when submitting the licensing agreement.
Publisher Account uses two-factor authentication. Confirmation code is sent to the registered email.
The user doesn't need to hunt for IDs — they're embedded in every Publisher Account URL. Parse them directly if the user shares a link.
URL pattern:
https://publisher.xsolla.com/{merchant_id}/projects/{project_id}/...
Examples:
https://publisher.xsolla.com/887981/settings/api_key → merchant_id = 887981https://publisher.xsolla.com/887981/projects/308077/edit/api_key → merchant_id = 887981, project_id = 308077If the user doesn't share a URL, tell them:
Company settings → Company⚠️ Critical: The API key is shown only once at creation time. It is never sent by email. The user must copy and save it immediately — it cannot be recovered.
For standard integration, the project-level key is sufficient.
Project settings → API keyhttps://publisher.xsolla.com/{merchant_id}/projects/{project_id}/edit/api_keyAuthorization: Basic Base64({project_id}:{api_key})To generate:
Only needed for Xsolla CLI or API calls where the endpoint URL has no project_id path parameter.
Company settings → API keys → https://publisher.xsolla.com/{merchant_id}/settings/api_keyAuthorization: Basic Base64({merchant_id}:{api_key})Rule of thumb: if the API endpoint URL contains {project_id}, use the project-level key. If it doesn't, use the merchant-level key.
ℹ️ Development can start immediately after account creation — no signed contract required.
A project-level API key is all that's needed to run a full sandbox integration: create tokens, test the payment UI, configure the catalog.
When going live, the only change needed is switching the mode from sandbox to production in the integration. Everything else stays the same.
What requires a signed licensing agreement (submit from the Agreements tab in Publisher Account):
Contract review typically takes a few business days — submit it well before the planned launch date.
Full go-live checklist (utils probe, flip sandbox flags, deploy, live payment tests): production.
| Resource | URL |
|---|---|
| Sign up | https://publisher.xsolla.com/signup |
| Publisher Account | https://publisher.xsolla.com |
| API Reference | https://developers.xsolla.com/api |
| Getting started guide | https://developers.xsolla.com/get-started/work-in-pa/create-first-project/ |
| FAQ — API keys | https://developers.xsolla.com/dev-resources/faq/general/#faq_project_settings |
Once all credentials are confirmed, write them to .env in the project root. Use the XSOLLA_* variable names — other skills depend on these exact names.
If .env already exists, append or update only the Xsolla variables without touching existing content:
# Remove only this skill's own three keys. Deleting every ^XSOLLA_ line also erases
# keys this skill does not own.
sed -i.bak -E '/^XSOLLA_(MERCHANT_ID|PROJECT_ID|PROJECT_API_KEY)=/d' .env && rm .env.bak
cat >> .env << EOF
# Xsolla credentials
XSOLLA_MERCHANT_ID={merchant_id}
XSOLLA_PROJECT_ID={project_id}
XSOLLA_PROJECT_API_KEY={api_key}
EOF
If .env does not exist, create it:
cat > .env << EOF
# Xsolla credentials
XSOLLA_MERCHANT_ID={merchant_id}
XSOLLA_PROJECT_ID={project_id}
XSOLLA_PROJECT_API_KEY={api_key}
EOF
Then make the file readable only by its owner. The Xsolla CLI ignores a .env that
other users can read, with only a warning:
chmod 600 .env
After writing, confirm to the user:
✅ Written to .env:
XSOLLA_MERCHANT_ID={merchant_id}
XSOLLA_PROJECT_ID={project_id}
XSOLLA_PROJECT_API_KEY=****
⚠️ Remind the user to add
.envto.gitignoreif it isn't there already — the API key must not be committed to version control.
grep -q "^\.env" .gitignore 2>/dev/null || echo ".env" >> .gitignore
.env checked for existing credentials (Step 0).env, with mode 600.env added to .gitignoreOnce credentials are in .env, proceed with the integration.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xsolla/xsolla-ai-kit --plugin xsolla-ai-kit15 skills in this plugin
/catalog-designSets up an Xsolla catalog: virtual items, virtual currency and its packages, bundles, game keys, item groups, regional prices and LiveOps offers, plus the client purchase flow (buy by SKU or cart, buy for virtual currency, order status). Use for "set up my Xsolla catalog", "create virtual items", "sell game keys", "regional prices"./description-to-shopTurns a game description or store listing (App Store, Google Play, Steam) into the shop brief that shop-builder-assembly builds from. Reached through nocode-shop-setup; not an entry point. Owns intake and inference only: presets, confirmation, CLI writes and preview belong to shop-builder-assembly./game-web-portalBuilds or resumes an unpublished Game Web Portal for a PC or mobile game: Home, News, Rewards, Web Shop, Community and an optional Launcher, on a site made from the Multi-page web portal template. Reached through nocode-shop-setup. Use for "continue my Game Web Portal" or "add the Community section". Never publishes; that stays with the human. Not for XLA Pages on x.la; use `xla-pages`./headless-checkout-integrationIntegrates Xsolla Headless Checkout — a fully customizable, client-controlled payment UI built on the @xsolla/pay-station-sdk JavaScript SDK, where payment data stays isolated in secure iframes and payments run through Xsolla without the standard Pay Station./login-setupIntegrates Xsolla Login (Xsolla ID, NewID): sign-up and sign-in by password, email or SMS code, social networks, Steam, Xbox, PSN, Epic, device or custom ID; Login Widget, API or SDK; JWT validation, server tokens, account linking, MFA, password reset. Use for "integrate Xsolla Login", "add sign-in", "validate a user JWT", or when a feature needs a signed-in user./login-stylingStyles the Xsolla Login widget (sign-in, sign-up, password reset): upload custom CSS through the API and attach it to the login project, or set colors, logo, background and social order through themeJSON. Use for "style the login", "brand the sign-in screen", "upload login CSS", "dark-mode login". Pairs with login-setup, which wires the auth flow.Other plugins' skills for the same job