# X-Hub Passkeys: Approve Risky Changes

> For AI tools: this is the Markdown copy of https://xproxy.io/document/xproxy-hub-passkeys. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Add a passkey so settings changes, updates and reboots need your approval. Learn what needs a passkey, time windows and what to do if you lose one.

A passkey is your fingerprint or Face ID used as a key. Once you add one, changes that could hurt your boxes wait until you approve them on your phone or laptop.

**You need:** [X-Hub on a VPS](https://xproxy.io/document/xproxy-hub-setup) with an https domain, and an **owner** login. Passkeys do not work on X-Hub on your box.

## What needs a passkey?

| Needs your approval (risky) | Never needs it (everyday) |
| --- | --- |
| Changing box settings Software updates Rebooting a whole box Selling settings IMEI and MAC changes Restarting VPS forwarding Anything not on the everyday list | Reading anything Rotating IPs and rotation schedules Rebooting a modem, USB reset, connect and disconnect Labels and notes Diagnostics and speed tests VPS doctor and public reach check |

## How do I set up passkeys?

**Step 1: Open X-Hub at its https address**

Passkeys are tied to your X-Hub's address. Open X-Hub at your domain, for example `https://hub.example.com`, and sign in as an **owner**. Open **Passkeys** under **Admin**.

On an IP address or plain `http`, the page says **Passkeys need the hub opened at its real address over https (or at localhost)**.

> X-Hub on your box (LAN address) runs without passkeys. Risky changes there ask for a confirmation instead.

**Step 2: Add your first passkey**

Type a name such as **My iPhone** and click **Add passkey**. Your phone or computer asks for Face ID, a fingerprint or the device PIN. The passkey appears in **Owner passkeys** marked **yours**.

**Step 3: Add a second passkey**

The page asks you to add a second one: another phone, a laptop or a security key. A lost device then does not lock you out.

> X-Hub will not let you remove the last passkey your boxes trust.

**Step 4: Press Update servers**

A new passkey shows **Not on servers yet - press Update servers**. Click **Update servers**. The approve page opens: it lists the passkeys the boxes will trust. Approve it with a passkey marked **Trusted by servers**. When it finishes, each passkey says **Trusted by servers**.

From now on, every risky change needs your approval.

**Step 5: Approve a risky change**

When you, a script or an AI assistant asks for a risky change, X-Hub opens **Approve with your passkey**. It shows **Requested by**, the server names and the exact request (for example `POST /v2/...` with its body). Read it. Click **Approve with passkey** only if you started it.

The result table then lists each server as **Done** or with the error. The approval works once and expires in 5 minutes. If you did not ask for it, close the page.

> From Telegram or an AI assistant, the approve link arrives in your private Telegram chat from the bot.

**Step 6: Let it work for a while (optional)**

For a long job, use **Work without asking for a while**: choose **1, 4, 8 or 24 hours** and click **Allow with passkey**. Risky changes then run without asking on all servers until the time is up, from X-Hub, scripts, AI assistants or your Telegram. A banner shows the end time. Click **Stop now** to end it, or send `/stop` in Telegram. Each box checks the time itself.

> In Telegram, owners can ask for a window with `/allow 4`. You still approve it in the browser.

## Why bother?

Each box checks your approval itself. A stolen API key, a misled AI assistant or someone who got into your X-Hub's data cannot do a risky change, because they do not have your passkey. Adding a server still needs only its pairing code.

## What happens before I add a passkey?

Owners can make risky changes after a confirmation, from the places you allow. The page **Passkeys** then shows **Risky changes without a passkey** with four switches: **The hub in a browser**, **Scripts with an API key**, **AI assistants (MCP)** and **Your Telegram (owner accounts)**. All are on by default. Once you add a passkey, these switches no longer apply.

## FAQ

### I lost every passkey

X-Hub cannot undo the rule, on purpose. Log in to the box as root and run `sudo xtool hub reset-owner`. The box forgets the passkeys and trusts the next set your X-Hub sends. This is the only way, so add a second passkey early.

### Can I remove a passkey or an owner?

You can remove only your own passkeys. Removing a passkey, or deleting, disabling or demoting a user, is refused if no enabled owner would keep a passkey your boxes trust.

### Why not on X-Hub on my box?

Passkeys need an https address on a domain. X-Hub on your box has none. For passkeys, install X-Hub on a VPS.

## What next?

Add the people who need access, and connect an AI assistant.

[Users and API keys →](https://xproxy.io/document/xproxy-hub-users) [AI assistants →](https://xproxy.io/document/xproxy-hub-ai-assistants)

---

Source: https://xproxy.io/document/xproxy-hub-passkeys
