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

# OpenClaw Commands

> A quick reference for gateway, dashboard, health, config, update, and troubleshooting commands.

<div className="not-prose my-4 rounded-md border border-gray-200 bg-gray-50 p-2 text-sm dark:border-gray-800 dark:bg-gray-900/40">
  <div className="mb-2 px-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">Need help?</div>

  <div className="flex flex-wrap gap-2">
    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://discord.gg/sDE2HhGTg4" target="_blank" rel="noreferrer">
      <Icon icon="discord" iconType="brands" size={14} />

      <span>Ask in Discord</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/issues/new/choose" target="_blank" rel="noreferrer">
      <Icon icon="github" iconType="brands" size={14} />

      <span>Open a GitHub issue</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/blob/main/SUPPORT.md" target="_blank" rel="noreferrer">
      <Icon icon="life-ring" size={14} />

      <span>Support guide</span>
    </a>
  </div>
</div>

<Note>
  Replace placeholders like `<GATEWAY_HOST>` and `<DASHBOARD_URL>` with your
  actual values.
</Note>

## Start And Stop Gateway

```bash theme={null}
# Start. Recommended: run this in a tmux session.
openclaw gateway start

# Start with a config file.
openclaw gateway start --config ./config/gateway.yaml

# Stop.
openclaw gateway stop

# Restart.
openclaw gateway restart

# Check status.
openclaw gateway status

# Follow logs, if supported.
openclaw gateway logs --follow
```

## Dashboard

```bash theme={null}
# Start dashboard.
openclaw dashboard

# Stop dashboard.
openclaw dashboard stop

# Open dashboard in browser, if supported.
openclaw dashboard open

# Print dashboard URL or status.
openclaw dashboard status
```

## Health Checks

```bash theme={null}
# Ping gateway.
openclaw gateway ping

# Check system health.
openclaw health
```

## Configuration

```bash theme={null}
# Show current config.
openclaw config show

# Validate a config file.
openclaw config validate --config ./config/gateway.yaml
```

## Updates And Version

```bash theme={null}
# Check version.
openclaw --version

# Self update, if supported.
openclaw update
```

## Troubleshooting

```bash theme={null}
# Show environment diagnostics.
openclaw doctor

# Increase logging.
openclaw gateway start --log-level debug

# Show running processes, if supported.
openclaw ps

# Follow logs.
openclaw logs --follow
```

## Model Configuration

```bash theme={null}
# Change to a Codex-backed model profile.
openclaw models set openai-codex/gpt-5.3-codex

# Set the primary default model in config.
openclaw config set agents.defaults.model.primary openai/gpt-5.5
```
