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
{{ message }}
Repository navigation
Commit 636a4bb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/tui.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,10 @@ Aliases: `openclaw chat` and `openclaw terminal` invoke this command with
69
69
- With no URL/host target or explicit `--url`, `tui` resolves configured Gateway
70
70
auth SecretRefs for token/password auth when possible (`env`/`file`/`exec`/`store`
71
71
providers).
72
+
- When the configured remote Gateway is behind an identity-aware proxy, `tui`
73
+
resolves `gateway.remote.edgeAuth` SecretInputs and sends those headers only
74
+
to that configured Gateway scope. URL or host targets for other origins never
75
+
inherit them.
72
76
- With no explicit URL or port, `tui` follows the active local Gateway port
73
77
recorded by the running Gateway. Explicit `--url`, `OPENCLAW_GATEWAY_URL`,
74
78
`OPENCLAW_GATEWAY_PORT`, and remote Gateway config keep precedence.
@@ -94,6 +98,7 @@ Aliases: `openclaw chat` and `openclaw terminal` invoke this command with
94
98
| The Gateway predates short-link resolution | Copy the full session key from that Gateway's Control UI. |
95
99
| Session missing or short ref ambiguous | For the configured/local Gateway, run `openclaw sessions list`; for a URL/host target, choose a longer or full key in that Gateway's Control UI. |
96
100
| Gateway unreachable | The error names the selected origin. For a `*.ts.net` host, connect Tailscale and confirm the Gateway is reachable on the tailnet. |
101
+
| Identity-aware proxy rejected the upgrade | Configure `gateway.remote.edgeAuth` for the configured remote Gateway; the error includes the relevant remote-access docs link. |
97
102
| Stored device token revoked or rotated | Rotate it with `openclaw devices rotate --device <deviceId> --role operator`, then reconnect. |
98
103
| TLS certificate pin mismatch | The original TLS fingerprint error passes through unchanged; verify the configured or explicit pin before retrying. |
`secrets.providers.*.command` must be an absolute path; replace
134
+
`/usr/local/bin/cloudflared` with the real, non-symlink install location on your
135
+
host, such as the resolved executable under a Homebrew prefix.
136
+
137
+
For a Cloudflare Access service token, provide the two fixed headers from any
138
+
supported secret provider. This example reads them from environment-backed
139
+
SecretRefs:
140
+
141
+
```json5
142
+
{
143
+
secrets: {
144
+
providers: {
145
+
default: { source:"env" },
146
+
},
147
+
},
148
+
gateway: {
149
+
mode:"remote",
150
+
remote: {
151
+
url:"wss://gateway.example",
152
+
edgeAuth: {
153
+
"CF-Access-Client-Id": {
154
+
source:"env",
155
+
provider:"default",
156
+
id:"CF_ACCESS_CLIENT_ID",
157
+
},
158
+
"CF-Access-Client-Secret": {
159
+
source:"env",
160
+
provider:"default",
161
+
id:"CF_ACCESS_CLIENT_SECRET",
162
+
},
163
+
},
164
+
},
165
+
},
166
+
}
167
+
```
168
+
169
+
OpenClaw's Gateway connection code never runs `cloudflared` itself and has no
170
+
Cloudflare dependency or login flow. Only the generic exec secret provider
171
+
invokes the exact command an operator configures. Resolved edge-auth headers are
172
+
sent only when the target matches the configured `gateway.remote.url` scope,
173
+
only over `wss://`, and never across redirects.
174
+
94
175
## Credential precedence
95
176
96
177
Gateway credential resolution follows one shared contract across call/probe/status paths and Discord exec-approval monitoring. Node-host uses the same contract with one local-mode exception (it ignores `gateway.remote.*`).
0 commit comments