Skip to content

Package Management

Packages page screenshot

Packages — one card per template: quota, cycle, speed limit, node count, plus edit / delete / publish carpool

4 mock packages; create, edit, delete; each package picks associated nodes / quota / cycle / one-way or two-way counting.

Mock demoPackage grid · create/edit dialog with node multi-select · fully local
Try it: package management4
基础版
18 users
Quota
100 GB
Cycle
30 days
Metering
Two-way
Bound nodes (3)
🇭🇰 香港 GoMami - HKT🇭🇰 香港 GoMami - Trojan🇸🇬 新加坡 LightNode
进阶版
24 users
Quota
300 GB
Cycle
30 days
Metering
Two-way
Bound nodes (5)
🇭🇰 香港 GoMami - HKT🇭🇰 香港 GoMami - Trojan🇺🇸 美国 Megabox - Reality🇯🇵 日本 Pulse - Hy2🇸🇬 新加坡 LightNode
尊享版
7 users
Quota
1024 GB
Cycle
30 days
Metering
Two-way
Bound nodes (6)
🇭🇰 香港 GoMami - HKT🇭🇰 香港 GoMami - Trojan🇺🇸 美国 Megabox - Reality🇯🇵 日本 Pulse - Hy2🇸🇬 新加坡 LightNode🇩🇪 德国 Hetzner - Reality
体验版(7天)
5 users
Quota
20 GB
Cycle
7 days
Metering
Download only
Bound nodes (2)
🇭🇰 香港 GoMami - HKT🇸🇬 新加坡 LightNode

A package defines the traffic quota, validity and node scope a user can use. One user can hold several package instances; each has independent credentials, cycle baseline, quota and expiry.

Attribute Description
Name / description Display name and notes
Traffic quota GB per cycle, 0 = unlimited
Counting mode One-way (×1, default) or two-way (×2)
Clash / Surge / Loon template Templates used when generating subscriptions; empty = system default
Billing cycle Days, default 30; optional monthly reset on a given day
Speed limit (Mbps) Max download per user, 0 = unlimited (PRO, embedded Xray)
Connection limit Max concurrent connections per user, 0 = unlimited (PRO)
Forwarding quota Lets package users create their own forwards on selected entry chains
Associated nodes Node scope; none = all nodes; optional per-package node names
  1. Open “Packages”
  2. Click “Create Package Template”
  3. Enter name, description, quota; choose counting mode and templates as needed
  4. Set the cycle / reset day, speed limit and connection limit
  5. Tick the nodes on the right (none = all nodes)
  6. Click “Save”

Create package dialog (top) screenshot

Create package template: basic parameters on the left, associated nodes on the right

Create package dialog (bottom) screenshot

Scrolled down: billing cycle, monthly reset, speed limit and connection limit (PRO)

If no node is ticked, saving asks for confirmation: empty means “all nodes” and users bound to the package can use every node.

No nodes selected confirmation screenshot

Confirmation when no node is selected

Package Traffic Cycle Speed Nodes For
Trial 20 GB 7 days 50 Mbps 1–2 nodes Trials
Basic 100 GB 30 days 100 Mbps Regular nodes Light use
Advanced 300 GB 30 days Unlimited All nodes (untick) Heavy / family

Then bind them to users in User Management → Bind and manage packages.

“Edit” on the card opens the same form; with many nodes, use “Select all” or the tag filters on the right:

Edit package dialog screenshot

Edit package template: filter nodes by “All / Manual / Remote:server” tags

Quota changes apply immediately; multiplier / counting mode changes only affect later increments.

In the sort selector at the top right, “Default order” is the order the admin arranged. Click “Reorder” next to it to open the ordering dialog: drag the handle, use the buttons on each row, or select a row and press ↑ ↓. After saving, the card and list views follow it, and so do package pickers on other pages; packages created later appear first.

“Publish carpool / Unpublish” lists the package on the carpool market so other users can join with an invite code, see Carpool FAQ.

Packages can set a speed limit (Mbps) and a connection cap; users can also get individual overrides in User Management (user level overrides package level).

Upper bound in Mbps, 0 = unlimited. Enforced by the Agent-side limiter on the user’s connections; the UI shows the conversion (8 Mbps ≈ 1 MB/s, 100 Mbps ≈ 12.5 MB/s).

Caps concurrent connections per user. This is “connections”, not “devices” — one device easily opens dozens of connections; recommended values: Rate Limiting.

Auto-throttle rules are triggered by speed, not by the traffic quota: when a user stays above a speed threshold (sustained), or crosses it several times within a window (burst), they are slowed down for a while and then returned to their normal limit. A package without rules uses the global default rules from system settings; rules set on the package replace the global defaults as a whole. Requires servers running embedded Xray.

Traffic statistics and billing multipliers

Section titled “Traffic statistics and billing multipliers”

The Xray traffic collector counts every user’s traffic in real time. When a package instance’s billable traffic reaches its quota, the panel removes that instance’s credentials from the nodes, so the user can no longer connect through that package’s nodes (usually within 1–2 minutes; the subscription link itself does not change and the user’s other packages are unaffected). Access returns automatically on the reset day, after a quota increase or a manual traffic reset, without re-importing the subscription. The whole process is shown in the carpool walkthrough.

  • Raw up/down are stored per Xray user/email and weighted at collection time
  • Packages choose one-way (oneway, ×1) or two-way (twoway, ×2)
  • Billable = (raw up + raw down) × package direction multiplier × node multiplier
  • Multiplier changes only affect later increments; each instance advances its baseline per its reset settings, admins can reset manually

The admin home shows server billing figures; the user home and the user list show user Xray billing traffic. With multiple packages the list aggregates all credentials while the limit comes from the primary package — check instances in “Manage Packages”.

Per-page scopes and reconciliation: Traffic Accounting.