You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sandbox.commands.run("openclaw config set agents.defaults.model.primary openai/gpt-5.3-codex")
61
+
sandbox.commands.run("openclaw config set agents.defaults.model.primary openai/gpt-5.2")
62
62
63
63
# 3. Start the gateway with token auth
64
64
sandbox.commands.run(
@@ -158,6 +158,73 @@ Once approved, the browser connects and the gateway UI loads.
158
158
|`--token <value>`| The auth token (passed as `?token=` in the URL) |
159
159
|`--port <number>`| Gateway listen port (default: `18789`) |
160
160
161
+
## How to restart the gateway
162
+
163
+
Use this when the gateway is already running and you want a clean restart (for example, after changing model or env settings).
164
+
165
+
<Info>
166
+
We can't use the `openclaw gateway restart` command here. Some SDK environments cannot target a specific Unix user in `commands.run`. The commands below use the default command user context.
`bash -lc 'for p in "[o]penclaw gateway" "[o]penclaw-gateway"; do for pid in $(pgrep -f "$p" || true); do kill "$pid" >/dev/null 2>&1 || true; done; done'`
0 commit comments