Automation & integrations

What is Marzban and Remnawave (access panels)

What it is

Open-source web panels for managing users, access keys and Xray nodes: terms, data limits, statistics, and one subscription link per user.

How we use it

We connect them to Telegram bots through the REST API: after a payment the bot creates or extends the user in the panel and returns the link, with no manual work.

What it is in plain words

Marzban and Remnawave are open-source web panels for managing access to servers running Xray. In the panel an administrator creates users, sets their term and data limit, and the panel generates access keys and keeps the Xray configuration on every server up to date. The user gets one subscription link and imports it into a client app.

Where it helps a business

  • Access to an encrypted network is issued to many people, and keys, terms and limits must not be managed by hand in config files.
  • Several servers carry the traffic, and a new user should appear on all of them at once.
  • Issuing and renewing access should be automatic: a bot, a CRM or a payment system calls the panel's API.
  • Access must be revoked at once when a contract or employment ends.

What the panels can do

  • Users. Creation, term, data limit, number of devices, suspension and deletion.
  • Subscription link. One link per user. A client app refreshes it and gets the current list of entry points, so changing servers does not require sending new keys.
  • Nodes. The panel manages several servers (nodes) from one place; each node runs Xray, and the panel pushes users and settings to it.
  • Statistics. Traffic per user and per node, online status.
  • REST API. Everything the administrator does in the interface is available to programs: a Telegram bot can create a user, extend the term and return a link.

Marzban and Remnawave

MarzbanRemnawave
StackPython, FastAPITypeScript, NestJS
Ageolder, widely usednewer, actively developed
NodesMarzban-node on each serverits own node service, user groups by node
Subscriptionstemplates for different clientsflexible templates and settings per client

Both are open source, run in Docker and talk to the outside world over a REST API.

How it connects to a bot

A typical setup: the bot keeps payments, discounts and reports, and the panel keeps the actual access. After a payment the bot calls the panel API, creates or extends the user and sends back the subscription link. We connect panels to Telegram bots this way, so access is issued and renewed without opening the panel.

Common mistakes

  • Two sources of truth. The term is stored in the bot and in the panel and drifts apart. The panel cuts the access, so the bot should take the actual date from the panel's answer.
  • The panel did not answer after a payment. If the API call fails, the request must stay pending and be retried, so that the customer is not left with a payment and no access.
  • The admin page is open to the internet. The panel admin should listen on an internal address or be reachable only through SSH or a tunnel.
  • No database backup. Losing the panel database means losing every user and key. Regular backups go in from day one.
  • Updating the core by hand. Each panel version supports a certain range of Xray versions; a newer core installed by hand can break it.

When you do not need it

For a team's private WireGuard network with a dozen employees, a panel with subscriptions and limits is unnecessary. It pays off when access is issued to many users, with terms, limits and automatic renewal.

โ† All terms

Need a website, a bot or automation?

Terms explained โ€” now let's get to work: tell us about the task and we'll turn it into a clear work plan.