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_…, any account, free plan included). 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 buy residential --gb 500: fund your pool from your wallet (add money first withbuyproxy wallet add).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 (refreshed about 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; buy more into it first with buyproxy pool buy. 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 (any account, free plan included), then buyproxy login. |
| Not enough Core Residential in your reseller pool | Buy into the pool: buyproxy pool buy residential --gb 100. |
| 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
Something wrong or missing on this page?
Suggest edits