setup-xray-vless-vpn-using-3x-ui-on-your-vps — плагин для Claude Code
Разворачивает Xray VLESS VPN на вашем VPS через панель 3X-UI: установка, доступ к панели, инбаунд и клиенты.
/plugin marketplace add anthropics/claude-plugins-community
/plugin install setup-xray-vless-vpn-using-3x-ui-on-your-vps@claude-communityЧто делает setup-xray-vless-vpn-using-3x-ui-on-your-vps
Плагин ставит на сервер панель 3X-UI и настраивает Xray VLESS. Внутри пять сценариев: развёртывание с нуля с установкой зависимостей и закрытием портов, SSH-туннель до панели, быстрый инбаунд VLESS на порту 443 за nginx, добавление ещё одного клиента в существующий инбаунд и обновление системы с 3X-UI.
Нужен VPS на Ubuntu 24 или новее, 1 vCPU, 512 MB памяти и 10 GB на диске. Скилл спросит SSH-доступ в формате [email protected] и пароль root (при авторизации по ключу пароль не нужен), домен или поддомен, логин и пароль панели, а также email для сертификата Let's Encrypt — последний необязателен. Пользователь root обязателен, потому что без него не поставить зависимости.
Изменения на удалённом сервере идут только через скрипты из skills/3x-ui-vps/scripts/. Панель и сервер подписок остаются на loopback, публичный край — nginx на 80/443, а клиентский транспорт — VLESS + XHTTP за nginx. Скилл помечен как manual-first: он трогает чужую инфраструктуру, поэтому запуск подтверждаете вы. Путь 3x-ui-vps в корне репозитория — временный шим на один релиз, для новых интеграций его брать не стоит.
Какие задачи решает
- развернуть панель 3X-UI на чистом VPS
- открыть доступ к панели через SSH-туннель
- поднять инбаунд VLESS на порту 443 за nginx
- подключить ещё одно устройство к существующему инбаунду
- обновить систему и панель 3X-UI
Примеры запросов агенту
- /3x-ui-vpn-skills:3x-ui-vps настрой мне VPN
- /3x-ui-vpn-skills:3x-ui-vps добавь ещё одного клиента в инбаунд
- /3x-ui-vpn-skills:3x-ui-vps обнови систему и 3X-UI
Как установить setup-xray-vless-vpn-using-3x-ui-on-your-vps
Через маркетплейс плагинов
/plugin marketplace add anthropics/claude-plugins-community/plugin install setup-xray-vless-vpn-using-3x-ui-on-your-vps@claude-communityПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о setup-xray-vless-vpn-using-3x-ui-on-your-vps
Как установить setup-xray-vless-vpn-using-3x-ui-on-your-vps в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add anthropics/claude-plugins-community, затем поставьте плагин: /plugin install setup-xray-vless-vpn-using-3x-ui-on-your-vps@claude-community.
Что делает setup-xray-vless-vpn-using-3x-ui-on-your-vps?
Разворачивает Xray VLESS VPN на вашем VPS через панель 3X-UI: ставит зависимости, настраивает nginx и сертификат, создаёт инбаунд и добавляет клиентов.
Что нужно подготовить до запуска?
VPS на Ubuntu 24 или новее с 1 vCPU, 512 MB памяти и 10 GB диска, SSH-доступ под root и домен или поддомен. Email для Let's Encrypt можно не указывать.
Исходный текст
SKILL.md · MIT
[English](README.md) | [Русский](README_RU.md) # Run your own Xray VPN in 10 minutes using AI agent Set up an Xray VLESS VPN on your own server or VPS with one command, using the 3X-UI panel for installation and management. You need: - a VPS running Ubuntu 24 or newer at any hosting provider - `1 vCPU` - `512 MB` memory - `10 GB` disk space - about `10 minutes` The canonical skill bundle lives in [`skills/3x-ui-vps/`](skills/3x-ui-vps/). Architecture details: [`skills/3x-ui-vps/references/architecture.md`](skills/3x-ui-vps/references/architecture.md) This repository root is also a Claude Code plugin with namespace `3x-ui-vpn-skills`. The `3x-ui-vps` skill inside it is manual-first because it changes remote infrastructure. ## What The Skill Can Do The skill includes 5 workflows: 1. `Fresh deploy` configures your server from scratch, including dependency installation, port hardening, and base setup. 2. `Panel access` opens an SSH tunnel from the server to your computer so you can access the 3X UI panel. 3. `Quick inbound bootstrap` creates an Xray VLESS inbound on port `443` with nginx in front of it. 4. `Add another client to an existing inbound` adds a client to an existing inbound so you can connect one more device. 5. `Updates` updates the system (`apt update` and `apt upgrade`) and 3X UI. ## How To Use It Install the skill using the instructions below and then use it in chat. Examples: - `Codex`: `$3x-ui-vps, set up a VPN for me` - `Claude Code`: `/3x-ui-vpn-skills:3x-ui-vps set up a VPN for me` - `Cursor`: `Set up a VPN for me using the instructions in AGENTS.md` - `OpenClaw`: `Set up a VPN for me using the 3x-ui-vps skill` Example prompt: ```text $3x-ui-vps, set up a VPN for me ``` ## Information You Will Be Asked For After launch, the skill will ask for additional information: - `SSH target`: the SSH user and IP in the format `[email protected]`; the `root` user is required to install all dependencies - `SSH password`: the `root` password; not needed if key-based authentication is already configured - `Domain`: your domain or subdomain where the VPN will be set up; buy any domain from a domain seller - `Panel Username`: the username for the 3X UI panel - `Panel Password`: the password for the 3X UI panel - `ACME Email`: your email for issuing a Let's Encrypt SSL certificate for the domain above; optional ## Included Files - [`skills/3x-ui-vps/SKILL.md`](skills/3x-ui-vps/SKILL.md): canonical Agent Skills bundle - [`skills/3x-ui-vps/scripts/`](skills/3x-ui-vps/scripts/): the only allowed remote mutation interface - [`skills/3x-ui-vps/references/`](skills/3x-ui-vps/references/): on-demand reference docs - [`skills/3x-ui-vps/agents/openai.yaml`](skills/3x-ui-vps/agents/openai.yaml): Codex/OpenAI UI metadata - [`.agents/skills`](.agents/skills): repo-scoped Codex compatibility link to the canonical `skills/` directory - [`3x-ui-vps`](3x-ui-vps): transitional compatibility shim to the canonical `skills/3x-ui-vps/` bundle - [`AGENTS.md`](AGENTS.md): lightweight entry point for Cursor and AGENTS-compatible tools - [`.claude-plugin/plugin.json`](.claude-plugin/plugin.json): Claude plugin manifest - [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json): Claude marketplace manifest ## Install In Any Agent Skills-Compatible System Use the prompt: ```text Please, install this skill: https://github.com/olegtsvetkov/3x-ui-vpn-skill ``` ## Install In Claude Code or Cowork Install it from the Claude plugin UI or with the CLI: ```bash claude plugin marketplace add olegtsvetkov/3x-ui-vpn-skill claude plugin install 3x-ui-vpn-skills@3x-ui-vpn-skills ``` Then invoke the skill with: ```text /3x-ui-vpn-skills:3x-ui-vps ``` ## Install In Codex The simplest path inside Codex is the built-in `$skill-installer`: ```text $skill-installer install https://github.com/olegtsvetkov/3x-ui-vpn-skill/tree/master/skills/3x-ui-vps ``` Manual installation still works through `$CODEX_HOME/skills` (usually `~/.codex/skills`): 1. Copy or clone [`skills/3x-ui-vps/`](skills/3x-ui-vps/) into `$CODEX_HOME/skills/3x-ui-vps`. 2. Restart Codex. Compatibility note: - the built-in `$skill-installer` currently installs into `$CODEX_HOME/skills` by default - this repo also exposes `.agents/skills` for repo-scoped compatibility with AGENTS-style discovery flows ## Install In Cursor Use the `/create-skill` prompt: ```text /create-skill Please, install this skill to Cursor: https://github.com/olegtsvetkov/3x-ui-vpn-skill ``` ## OpenClaw Compatibility Install it with `clawhub`: ```bash clawhub install 3x-ui-vps ``` Or use the prompt: ```text Please, install this skill: https://github.com/olegtsvetkov/3x-ui-vpn-skill ``` ## Usage Notes - The skill is intentionally script-first. Remote server changes must go through the bundled scripts. - The panel and subscription server are intended to stay loopback-only. - nginx remains the public edge on `80/443`. - The client-facing VPN transport is `VLESS + XHTTP` behind nginx. - The repo-root [`3x-ui-vps`](3x-ui-vps) path is a one-release shim for clones of this repository. Do not use the shim as the canonical install source for new integrations. ## License This repository and the bundled skill are released under the MIT License. See [LICENSE](LICENSE) and [`skills/3x-ui-vps/LICENSE.txt`](skills/3x-ui-vps/LICENSE.txt).
© olegtsvetkov · MIT · olegtsvetkov/3x-ui-vpn-skill