> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Boîte Upstash

Exécutez un Gateway OpenClaw persistant sur Upstash Box, un environnement Linux managé
avec prise en charge du cycle de vie avec maintien actif.

Utilisez un tunnel SSH pour accéder au tableau de bord. N’exposez pas directement
le port du Gateway à l’internet public.

## Prérequis

* Compte Upstash
* Upstash Box avec maintien actif
* Client SSH sur votre machine locale

## Créer une Box

Créez une Box avec maintien actif dans la console Upstash. Notez l’ID de la Box, par exemple
`right-flamingo-14486`, ainsi que votre clé API Box.

Upstash maintient son guide OpenClaw Box actuel à l’adresse
[Configuration d’OpenClaw](https://upstash.com/docs/box/guides/openclaw-setup).

## Se connecter avec un tunnel SSH

Redirigez le port du tableau de bord OpenClaw vers votre machine locale. Utilisez votre clé API Box
comme mot de passe SSH lorsque vous y êtes invité :

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
ssh -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 18789:127.0.0.1:18789 <box-id>@us-east-1.box.upstash.com
```

Les options de maintien de connexion réduisent les interruptions du tunnel inactif pendant la configuration initiale.

## Installer OpenClaw

Dans la Box :

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
sudo npm install -g openclaw
```

## Exécuter la configuration initiale

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw onboard --install-daemon
```

Suivez les invites. Copiez l’URL et le jeton du tableau de bord lorsque la configuration initiale se termine.

## Démarrer le Gateway

Configurez le Gateway pour le réseau de la Box et démarrez-le en arrière-plan :

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw config set gateway.bind lan
nohup openclaw gateway > gateway.log 2>&1 &
```

Avec le tunnel SSH actif, ouvrez l’URL du tableau de bord localement :

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
http://127.0.0.1:18789/#token=<your-token>
```

## Redémarrage automatique

Définissez cette commande comme script d’initialisation de la Box afin que le Gateway redémarre lorsque la Box
démarre :

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
nohup openclaw gateway > gateway.log 2>&1 &
```

## Dépannage

Si SSH se fige pendant la configuration initiale, reconnectez-vous avec une configuration SSH propre et
des options de maintien de connexion :

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
ssh -F /dev/null -o ControlMaster=no -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 18789:127.0.0.1:18789 <box-id>@us-east-1.box.upstash.com
```

Cela contourne les paramètres locaux obsolètes de `~/.ssh/config` et maintient le tunnel actif
pendant les périodes d’inactivité du réseau.

## Connexe

* [Accès à distance](/fr/gateway/remote)
* [Sécurité du Gateway](/fr/gateway/security)
* [Mettre à jour OpenClaw](/fr/install/updating)
