Xsolla AI Toolkit overview
Xsolla AI Toolkit is a set of agent skills that teach an AI agent to work with Xsolla. You describe the task in your own words, and the agent follows a validated Xsolla workflow.
The toolkit is published in the public repository Xsolla AI Toolkit. The installation method depends on the tool:
- Claude Code, Codex, and Gemini CLI: AI Toolkit is installed as a plugin.
- Cursor: the repository is added as a workspace folder.
- Other tools that support
AGENTS.md: theAGENTS.mdfile and theskills/directory are copied to the project.
Two tools are used together with AI Toolkit:
- Xsolla CLI — runs the commands that create and change sites on the Shop Builder platform, the catalog, and promotions. Required only when you create a web shop in Shop Builder.
- Xsolla MCP server — lets the AI agent search Xsolla documentation. Connected automatically if AI Toolkit is installed as a plugin (Claude Code, Codex, Gemini CLI). In Cursor and other tools, the MCP server is connected separately.
Capabilities
| Area | What you can ask the agent to do |
|---|---|
| Web shop in Shop Builder | Build a web shop from ready-made blocks based on a game description or a Figma design, rework an existing one, add pages and blocks, change the theme. |
| Web shop with your own codebase | Create the code for a web shop that you host yourself: catalog pages, cart, user authentication, and embedded payments. |
| Catalog | Create virtual items, virtual currency, virtual currency packages, bundles, game keys, and item groups, and set regional prices. |
| Promotions and LiveOps | Set up discounts, bonuses, coupons, promo codes, reward chains, daily rewards, and offer chains. |
| User authentication | Integrate user authentication into your game or web shop and customize the Login widget. |
| Payments | Embed the Headless checkout payment UI in a web shop with your own codebase and test payments in sandbox mode. In a web shop built on the Shop Builder platform, payments go through Pay Station with no additional integration. |
| Localization | Set up the languages of a web shop in Shop Builder and translate the text on its pages. |
| Quests | Create and launch quests on Xsolla Quest Platform, and add the quests block to a web shop. The project needs access to Quest Platform. |
| Web shop launch | Prepare to switch from sandbox mode to real payments: check the licensing agreement status, prepare the configuration, and get a test plan. |
| XLA Pages | Create a game page and host it on the x.la domain. |
With AI Toolkit, you can create a web shop by using one of two methods:
- Without code (the
nocode-shop-setupskill): the agent builds the site in Shop Builder, the Xsolla web storefront builder. The site is hosted by Xsolla, and payments go through Pay Station. - With code (the
shop-setupskill): the agent creates the web shop code in your project directory. The web shop is hosted and maintained by you, and payments are embedded with Headless checkout.
The AI agent chooses the method based on your request. If the method isn’t clear from the request, the AI agent asks you to clarify it. In both cases, you set up the granting of purchased items in the game yourself by using webhooks.
Environment setup
Before you start, make sure you have:
- an AI coding agent: Claude Code, Codex, Gemini CLI, Cursor, or another tool that supports
AGENTS.md; - a project in Publisher Account.
- an AI coding agent: Claude Code, Codex, Gemini CLI, Cursor, or another tool that supports
AGENTS.md; - a project in your account.
You can set up the environment by using one of two methods:
- Automatically, with a prompt. This method is suitable for creating a web shop in Shop Builder with Claude Code or Codex.
- Manually. This method is suitable for any AI agent and is required for creating a web shop with your own codebase.
Automatic setup
The AI agent installs AI Toolkit and Xsolla CLI and connects your project by itself.
- Copy the prompt below.
- Replace
<PASTE THE LINK HERE>with the link to your project in Publisher Account. - Send the prompt to the AI agent. During setup, approve its permission requests and sign in to Publisher Account when the agent asks you to.
- When the agent reports that it’s done, start a new session in the same directory. AI Toolkit loads only in new sessions.
- Copy the prompt below.
- Replace
<PASTE THE LINK HERE>with the link to your project in your account. - Send the prompt to the AI agent. During setup, approve its permission requests and sign in to your account when the agent asks you to.
- When the agent reports that it’s done, start a new session in the same directory. AI Toolkit loads only in new sessions.
Prompt:
- text
1Set up the Xsolla AI Toolkit for me with the latest versions. I'm not technical: run all commands yourself; I only click Allow and sign in.
2
31. Xsolla AI Toolkit: install it from github.com/xsolla/xsolla-ai-kit for this app, following its README, so it loads in my new sessions. If it's already installed, update it.
42. Xsolla CLI: install it or update it to the latest version, for my user only and without an admin password, following the toolkit's CLI setup instructions for my operating system.
53. My project: <PASTE THE LINK HERE>. Point the CLI at this project's merchant and project IDs with sandbox mode off, and sign me in to Xsolla once. If the sign-in can't finish from your side, tell me exactly what to run in my own terminal. Never ask me for an API key.
64. Check that you can see websites through this app's built-in browser or, if it has none, a browser extension where I'm signed in to publisher.xsolla.com, and Figma if I connected it.
75. Save setup-log.md: steps, time, errors, what I did by hand. Then tell me what's left and to start a new session in this folder.
Manual setup
- Install Xsolla AI Toolkit.
Claude Code
Run in your terminal:
- bash
1claude plugin marketplace add xsolla/xsolla-ai-kit && claude plugin install xsolla-ai-kit@xsolla-ai-kit
Or run inside a Claude Code session:
- text
1/plugin marketplace add xsolla/xsolla-ai-kit
2/plugin install xsolla-ai-kit@xsolla-ai-kit
Codex
- bash
1codex plugin marketplace add xsolla/xsolla-ai-kit
Gemini CLI
- bash
1gemini extensions install https://github.com/xsolla/xsolla-ai-kit
Cursor
Add the xsolla-ai-kit repository as a workspace folder, or open it as a project. Cursor loads the skills from .cursor/skills/.
Other tools (Windsurf, Roo Code, Augment, GitHub Copilot, and others)
Copy AGENTS.md and the skills/ directory to the root of your project:
- bash
1git clone https://github.com/xsolla/xsolla-ai-kit
2cp -r xsolla-ai-kit/AGENTS.md xsolla-ai-kit/skills your-game-project/
AI Toolkit loads only in new sessions. After installation, start a new session in the project directory.
- Install Xsolla CLI.
Xsolla CLI is required only for creating a web shop in Shop Builder. If you create a web shop with your own codebase, skip this step.
macOS or Linux with Homebrew
- bash
1brew install xsolla/xsolla-cli/xsolla
2xsolla --version
The version must be 1.9.4 or later.
Windows
Homebrew isn’t available. Ask the agent to install the CLI: AI Toolkit contains a PowerShell script that downloads the release from the Xsolla CDN and verifies the checksum before installation.
- Sign in and add the CLI skills.
Run these commands in the terminal yourself, not through the AI agent. The xsolla auth login command opens the sign-in page in the browser, so the sign-in can’t be completed from the AI agent’s session.
- bash
1xsolla auth login
2xsolla skills install --global
With the --global option, the CLI skills are installed for all projects. Without it, they are installed only for the directory where you run the command.
If the merchant ID isn’t detected during sign-in, the CLI asks for it and for the project ID. It then creates an API key for this project and stores it in the system keychain. Don’t give the AI agent your password, token, or API key: it doesn’t need them.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in Publisher Account: https://publisher.xsolla.com/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account: https://xsolla.com/for/mobile-games/account/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account: https://xsolla.com/for/premium-pc-games/account/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account: https://xsolla.com/for/free-to-play-pc/account/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account: https://xsolla.com/for/web-games/account/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account: https://xsolla.com/for/payment-providers/account/<merchant_id>/projects/<project_id>/.
- Specify the project.
The merchant ID and project ID are in the URL of any project page in your account.
For a web shop in Shop Builder, set the project in the CLI and turn off sandbox mode:
- bash
1xsolla config set merchant-id <merchant ID>
2xsolla config set project-id <project ID>
3xsolla config set sandbox false
4xsolla config list
The CLI settings apply to all sessions. When sandbox mode is off, xsolla commands run in the live project, including payment and refund operations. To restore the previous state, run xsolla config set sandbox true.
For a web shop with your own codebase, ask the agent to run the merchant-setup skill, or add these lines to the .env file in the project directory:
- text
1XSOLLA_MERCHANT_ID=<merchant ID>
2XSOLLA_PROJECT_ID=<project ID>
3XSOLLA_PROJECT_API_KEY=<project API key>
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to Publisher Account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
- Set up browser access for the AI agent.
This step is required only when you create a web shop in Shop Builder. The AI agent opens the created site in the browser and checks the result. Use the built-in browser of the AI agent app or a Chrome extension, and sign in to your account in this browser.
Using skills
Skills load automatically: the AI agent selects the right skill based on your request. For example, to start creating a web shop, send the request Build a web shop for my game. The nocode-shop-setup and shop-setup skills manage the creation of a web shop from start to finish. As they work, they automatically call skills for individual tasks: setting up the catalog, authentication, payments, and webhooks.
You can call a skill for an individual task directly, without creating a web shop. For example, to embed Headless checkout or customize the Login widget in an existing project.
To call a specific skill:
| Agent | How to call a skill |
|---|---|
| Claude Code | /<skill name>, for example /shop-setup. If another plugin has a skill with the same name, specify the plugin name: /xsolla-ai-kit:shop-setup. |
| Cursor | Describe the task or specify the skill by name with @. |
| Codex | Describe the task. Codex selects the skill through AGENTS.md. |
| Other tools | Describe the task in plain language. |
The set of skills is updated regularly. For the current list with descriptions, see AGENTS.md in the repository.
Next steps
- Connect the Xsolla MCP server separately so that the agent can search for answers in Xsolla documentation.
- Explore the contents of AI Toolkit or report a bug in a skill.
Found a typo or other text error? Select the text and press Ctrl+Enter.