natbox.io

Blog / The natbox API and command-line tool

Control your natbox servers from code: the natbox API and command-line tool

6 December 2026 · Announcement · By Mohammad AlSaraf

Until now, managing a natbox server meant opening the client area: Manage to restart it, Snapshots before an update, Reinstall for a fresh start. All of that now also works from a script, a CI job or an AI agent, with the natbox API and the natbox command-line tool. It's included on every plan, from the free trial to Box Max.

A terminal using the natbox command-line tool: natbox list shows a Nano server, natbox snapshot takes a snapshot, natbox restart restarts the server.

What it can do

Get started in a minute

In the client area, open the account menu and pick API keys. Create a key with Full access, or Read only for dashboards and monitoring. Then, on Linux or macOS:

mkdir -p ~/.local/bin
curl -fsSL https://natbox.io/assets/downloads/natbox -o ~/.local/bin/natbox
chmod +x ~/.local/bin/natbox
natbox login
natbox list

The tool is a single Python file with nothing else to install. natbox ssh vps123 connects you without looking up the port, and natbox reinstall vps123 debian13 gives you a clean server and waits until it's ready. Prefer plain HTTP? Everything is a JSON API at https://my.natbox.io/api/natbox/v1:

curl -X POST -H "Authorization: Bearer $NATBOX_API_KEY" \
  https://my.natbox.io/api/natbox/v1/servers/123/restart

A few ideas

Built to be safe

The full reference, with every endpoint and error, is on the API page. Missing something you'd use? Tell us in a ticket or on Telegram.

Get new tutorials in Telegram. Follow @natboxio: every new post, plus short server tips.

More from the blog: Is your server ready for quantum computers? We checked every natbox image, Ten operating systems on every natbox server, free trial included, November 2026 uptime report: 21 problems, and what caused them. RSS feed.