---
title: "Comandos Gateway — Servidor OpenClaw"
url: "https://openclaw.ia.br/comandos/gateway/"
markdown_url: "https://openclaw.ia.br/comandos/gateway.MD"
description: "Comandos para gerenciar o servidor OpenClaw. Start, stop, restart, status, configuração."
date: ""
author: ""
---

# Comandos Gateway — Servidor OpenClaw

Comandos para gerenciar o servidor OpenClaw. Start, stop, restart, status, configuração.


# Comandos Gateway

O gateway é o servidor central do OpenClaw.

## Iniciar/Parar

```bash
# Iniciar
openclaw gateway start

# Parar
openclaw gateway stop

# Reiniciar
openclaw gateway restart

# Status
openclaw gateway status
```

## Modos

```bash
# Modo foreground (debug)
openclaw gateway --verbose

# Com porta específica
openclaw gateway --port 18789

# Bind em LAN (acesso remoto)
openclaw gateway --bind lan
```

## Logs

```bash
# Ver logs
journalctl --user -u openclaw-gateway -f

# Últimas 100 linhas
journalctl --user -u openclaw-gateway -n 100
```

## Configuração

```bash
# Ver configuração atual
openclaw config get

# Editar
nano ~/.openclaw/config.yaml
```

## Diagnóstico

```bash
# Verificar problemas
openclaw doctor

# Reparar
openclaw doctor --repair

# Health check
openclaw health
```
