CLI ยท Reseller
buyproxy customers
Manage your reseller customers: create, fund, inspect, suspend and generate for them.
Usage
$ buyproxy customers [list|new|show|rename|suspend|activate|usage|allocate|generate] โฆAliases: buyproxy customer, buyproxy c
The reseller commands let you run a proxy business from the terminal. A customer is an isolated sub-account with its own plans and credentials; you fund it from your reseller pool and generate proxies on its behalf.
These commands need a reseller key (bp_live_โฆ, Business plan or higher). With a personal key the CLI tells you so and shows where to create one. Anywhere a command needs a customer and you didn't give one, the CLI shows a picker.
How it works
The typical flow:
buyproxy pool topup residential --gb 500 --cardโ fund your pool.buyproxy customers new "Acme Inc"โ create a customer; note the username.buyproxy customers allocate <username> residential 20โ give them 20 GB.buyproxy customers generate <username> -c DE -n 5โ generate for them.buyproxy customers usage <username>โ see how much they've used.buyproxy customers suspend <username>โ pause them if they stop paying.
list
$ buyproxy customers [list] [--status active|suspended]Lists your customers. ls also works, and list is the default, so plain buyproxy customers works.
| Option | What it does |
|---|---|
| --status <status> | Only show active or suspended customers. |
List
$ buyproxy customersCustomers (2)
Label Username Status Created
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Acme Inc bp_acme_1a2b โ active 10/1/2026
Globex bp_globex_9c3d โ suspended 9/20/2026new
$ buyproxy customers new <labelโฆ>Creates an isolated sub-account with no bandwidth. The label is your own name or reference for them (their company or email); it can be up to 100 characters and spaces are fine. Prints the new username.
Create
$ buyproxy customers new "Acme Inc" Username bp_acme_1a2b
Next: buyproxy customers allocate bp_acme_1a2bshow
$ buyproxy customers show [username]A card with the customer's status plus a usage bar for each plan they hold. GB you've allocated that is still being added shows as arriving shortly.
Show
$ buyproxy customers show bp_acme_1a2bโญโ Acme Inc โโโโโโโโโโโโโโฎ
โ Username bp_acme_1a2b โ
โ Status โ active โ
โ Created 10/1/2026 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Plans
Core Residential โโโโโโโโโโโโโโโโโโโโโโโโ 18.0 GB / 20.0 GB
๏ผ 5.00 GB premium arriving shortlyrename
$ buyproxy customers rename <username> <new labelโฆ>Changes the label. Nothing else about the customer changes.
Rename
$ buyproxy customers rename bp_acme_1a2b "Acme Corporation"suspend / activate
$ buyproxy customers suspend <username>
$ buyproxy customers activate <username>A suspended customer can't generate new proxies (the API returns 403). Proxy lines you've already handed out may keep working until they rotate, so stop distributing them when you suspend. activate reverses it instantly.
Suspend
$ buyproxy customers suspend bp_acme_1a2busage
$ buyproxy customers usage [username]How much each plan has used, with remaining and total GB โ the numbers to bill from. Current snapshot only (the upstream network refreshes it roughly every 30 minutes); there's no per-request history.
Usage
$ buyproxy customers usage bp_acme_1a2bUsage
residential โโโโโโโโโโโโโโโโโโโโโโโโ 2.00 GB used of 20.0 GBallocate
$ buyproxy customers allocate [username] [product] [gb]Moves whole GB of one product from your pool onto a customer. Every call carries an automatically generated idempotency key, so a retry after a network blip can never allocate twice. It fails with a clear message if your pool doesn't hold enough โ top it up first. Allocated GB can't be moved back to the pool.
Allocate
$ buyproxy customers allocate bp_acme_1a2b premium 10โ 10 GB of premium โ bp_acme_1a2b (40.0 GB left in your pool)generate
$ buyproxy customers generate <username> [product] [-c US] [-n 5] [-s 10] [--socks5] [-f format] [--copy]Generates proxies from the customer's plans, with exactly the same options as `buyproxy generate`. A suspended customer gets a clear 403.
Generate for a customer
$ buyproxy customers generate bp_acme_1a2b -c DE -n 5 -f plainJSON output
All subcommands accept --json and print the same objects the reseller API returns.
Troubleshooting
| You see | How to fix it |
|---|---|
| This needs a reseller API key (bp_live_โฆ). | Create one under Dashboard โ Reseller โ API keys (Business plan or higher), then buyproxy login. |
| Not enough Core Residential in your reseller pool | Top up the pool: buyproxy pool topup residential --gb 100 --card. |
| This customer is suspended โ reactivate it to generate proxies. | buyproxy customers activate <username>. |
| Customer not found | Usernames are scoped to your account; copy it from buyproxy customers. |
Tips
Allocate in the same unit you bill in โ allocations are final.
Script the whole flow with
--jsonand your own order ids as the idempotency source via the API.
Related commands
Was this page helpful?