---
title: Authentication & permissions
description: Sign-in, consent, scopes, refresh and revoking AI tool access to Hostino
sidebar:
  order: 17
  badge:
    text: Alpha
    variant: success
---

AI tools connect to Hostino with **OAuth 2.1**. You never copy a key: the tool opens a browser, you sign in to your Hostino account and approve the permissions.

## Sign-in steps

1. **Sign in** with your Hostino panel email and password. If 2FA is enabled you'll be asked for the 6-digit code.
2. **Consent:** a page shows the app's name and the permissions requested. Approve with "Allow" or cancel with "Deny".
3. **Back to the app:** the app receives a token and renews it automatically from then on.

## Permissions (scopes)

| Scope | On the consent page | Tool |
|---|---|---|
| `services:read` | View services, status and due dates | `list_services`, `service_upgrade_options` |
| `domains:read` | View domains, status and expiry dates | `list_domains` |
| `invoices:read` | View invoices, amounts and payment status | `list_invoices` |
| `billing:read` | View the account credit balance | `get_credit_balance` |
| `orders:read` | View plans, prices and order status | `list_plans`, `prepare_order`, `get_order_status` |
| `orders:write` | Create purchase requests | `request_order`, `service_upgrade` |
| `billing:pay` | Pay an order from credit (after your approval) | `request_order` with `pay_with: credit` |
| `orders:confirm` | Confirm purchases in the chat by typing a confirmation phrase (issue the invoice, pay from credit with the exact amount) | `confirm_order`, `pay_with_credit`, `service_upgrade_confirm` |
| `deploy:read` | View apps, deployment status and logs | `list_deploy_targets`, `list_apps`, `get_deployment_status`, `get_deployment_logs`, `analyze_deployment` |
| `deploy:write` | Deploy, roll back, restart and set env vars on your own Node.js hosting | `create_deployment`, `rollback_deployment`, `set_app_env`, `restart_app` |
| `hosting:login` | Create a short-lived direct cPanel login link (shown with a warning; [AI Deploy](/en/ai-mcp/ai-deploy/)) | `open_cpanel`, `wordpress_login_link` |
| `hosting:read` | View your own hosting: databases, cron jobs, subdomains, redirects, PHP settings and version, email, FTP, SSL, resource usage, error log and files (read-only) | The read-only `hosting_*` tools (e.g. `hosting_overview`, `hosting_site_doctor`, `hosting_error_log`; [list](/en/ai-mcp/hosting/)) |
| `hosting:write` | Change your own hosting: create and delete databases, cron jobs, subdomains, redirects, email, FTP and extra domains, change PHP settings and version, run AutoSSL (shown with a warning) | The `hosting_*` tools that change things (e.g. `hosting_create_database`, `hosting_set_php_settings`, `hosting_manage_email`) |
| `wordpress:read` | View WordPress sites, versions and pending updates | `wordpress_list_sites`, `wordpress_site_info`, `wordpress_debug_log`, `wordpress_users` and the other read-only WordPress tools |
| `wordpress:write` | Update WordPress, plugins and theme; install plugins and fresh WordPress | `wordpress_update`, `wordpress_install_plugin`, `wordpress_install`, `wordpress_manage_user`, `wordpress_staging` and the other WordPress tools that change things |

Read permissions change nothing. Write permissions are separate and you approve each one on the consent screen. No purchase or charge happens without your approval: either with the approval link on `auth.hostino.ai`, or (with `orders:confirm`) by typing a phrase that names the exact amount. Each tool works only with its own scope.

The consent screen shows a separate warning for `hosting:write`: with it an app can delete databases and subdomains and create cron jobs (scheduled commands) on your hosting. Deletes only happen when the exact item name is repeated ([Hosting with AI](/en/ai-mcp/hosting/#security)).

The full scope of every tool is listed in [Remote MCP](/en/ai-mcp/remote-mcp/#tools).

## Terminal and browser on different machines

Tools like Claude Code wait for the sign-in result on `localhost` of their own machine. If the tool runs on a server and your browser is on your laptop:

- After sign-in, Hostino **does not jump to `localhost`**; it shows a "✅ Signed in" page on `auth.hostino.ai`.
- If the app is on the same machine as the browser, click **Continue (same machine)**.
- If it's on another machine, click **Copy command** and run the `curl` command on the app's machine. The code is valid for 5 minutes.

Showing this code is safe: PKCE binds it to the app that started the sign-in, so no other app can use it.

## Lifetime and renewal

- Access tokens last **1 hour** and the client renews them automatically with a refresh token.
- Refresh tokens last **14 days**; after that you sign in again once.
- Connections survive restarts and updates of Hostino's servers.

## Connected apps

At **[auth.hostino.ai/app](https://auth.hostino.ai/app)** → "Connected apps" you see every tool that signed in with your account (Claude, Cursor, ChatGPT…) with its permissions and last use. **Disconnect** revokes all of that app's tokens immediately; it has to sign in again to be used. For security the page asks for a fresh sign-in every time.

## API tokens (personal access tokens)

For scripts, CI (e.g. GitHub Actions) and model APIs such as OpenAI Responses and Anthropic Messages that don't do OAuth themselves, create a token on the same page → "API tokens":

1. Pick a name (e.g. `GitHub Actions`), a lifetime (7, 30, 90 or 365 days) and **only the permissions you need**.
2. The `hst_pat_…` token is shown **once**; store it somewhere safe (e.g. your CI secrets).
3. Send it with every request: `Authorization: Bearer hst_pat_…` on `https://api.hostino.ai` or `https://mcp.hostino.ai/mcp`.

```bash
curl -s https://api.hostino.ai/v1/services -H "Authorization: Bearer $HOSTINO_TOKEN"
```

- `billing:pay`, `orders:confirm` and `hosting:login` are **not allowed** in API tokens: paying and confirming purchases is always the account owner's own action, and direct cPanel login is only granted through OAuth. That is why confirming purchases, domain renewals and [plan upgrades](/en/ai-mcp/upgrades/) is not possible with an API token. `hosting:read` and `hosting:write` are allowed in API tokens.
- **Revoke** a token on the same page whenever needed; it stops working at once. Each token's last use is shown too.
- At most 20 active tokens per account.

## Revoking access

- **From the account page:** revoke [connected apps](#connected-apps) and [API tokens](#api-tokens-personal-access-tokens) at `auth.hostino.ai/app`.
- **From the tool:** remove the MCP server (e.g. `claude mcp remove hostino`). The remaining access token expires within 1 hour.
- **Immediately:** the app can revoke its token at `https://auth.hostino.ai/token/revocation` ([details](/en/api/authentication/#revocation-rfc-7009)).

## Technical details

For endpoints, the `resource` parameter and OAuth flows see [Authentication in the API reference](/en/api/authentication/).
