docs: fix faq config snippets
This commit is contained in:
@@ -236,8 +236,10 @@ Example (repo as default cwd):
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agent: {
|
agents: {
|
||||||
workspace: "~/Projects/my-repo"
|
defaults: {
|
||||||
|
workspace: "~/Projects/my-repo"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -303,6 +305,23 @@ The common pattern is **one Gateway** (e.g. Raspberry Pi) plus **nodes** and **a
|
|||||||
|
|
||||||
Docs: [Nodes](/nodes), [Remote access](/gateway/remote), [Multi-Agent Routing](/concepts/multi-agent), [Sub-agents](/tools/subagents), [TUI](/tui).
|
Docs: [Nodes](/nodes), [Remote access](/gateway/remote), [Multi-Agent Routing](/concepts/multi-agent), [Sub-agents](/tools/subagents), [TUI](/tui).
|
||||||
|
|
||||||
|
### Can the Clawdbot browser run headless?
|
||||||
|
|
||||||
|
Yes. It’s a config option:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
browser: { headless: true },
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
sandbox: { browser: { headless: true } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Default is `false` (headful). Headless is more likely to trigger anti‑bot checks on some sites. See [Browser](/tools/browser).
|
||||||
|
|
||||||
## Remote gateways + nodes
|
## Remote gateways + nodes
|
||||||
|
|
||||||
### How do commands propagate between Telegram, the gateway, and nodes?
|
### How do commands propagate between Telegram, the gateway, and nodes?
|
||||||
@@ -329,7 +348,7 @@ Yes. `config.apply` validates + writes the full config and restarts the Gateway
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agent: { workspace: "~/clawd" },
|
agents: { defaults: { workspace: "~/clawd" } },
|
||||||
whatsapp: { allowFrom: ["+15555550123"] }
|
whatsapp: { allowFrom: ["+15555550123"] }
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -508,12 +527,14 @@ Aliases come from `agents.defaults.models.<modelId>.alias`. Example:
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agent: {
|
agents: {
|
||||||
model: { primary: "anthropic/claude-opus-4-5" },
|
defaults: {
|
||||||
models: {
|
model: { primary: "anthropic/claude-opus-4-5" },
|
||||||
"anthropic/claude-opus-4-5": { alias: "opus" },
|
models: {
|
||||||
"anthropic/claude-sonnet-4-5": { alias: "sonnet" },
|
"anthropic/claude-opus-4-5": { alias: "opus" },
|
||||||
"anthropic/claude-haiku-4-5": { alias: "haiku" }
|
"anthropic/claude-sonnet-4-5": { alias: "sonnet" },
|
||||||
|
"anthropic/claude-haiku-4-5": { alias: "haiku" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -527,9 +548,11 @@ OpenRouter (pay‑per‑token; many models):
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agent: {
|
agents: {
|
||||||
model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
|
defaults: {
|
||||||
models: { "openrouter/anthropic/claude-sonnet-4-5": {} }
|
model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
|
||||||
|
models: { "openrouter/anthropic/claude-sonnet-4-5": {} }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
env: { OPENROUTER_API_KEY: "sk-or-..." }
|
env: { OPENROUTER_API_KEY: "sk-or-..." }
|
||||||
}
|
}
|
||||||
@@ -539,9 +562,11 @@ Z.AI (GLM models):
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
agent: {
|
agents: {
|
||||||
model: { primary: "zai/glm-4.7" },
|
defaults: {
|
||||||
models: { "zai/glm-4.7": {} }
|
model: { primary: "zai/glm-4.7" },
|
||||||
|
models: { "zai/glm-4.7": {} }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
env: { ZAI_API_KEY: "..." }
|
env: { ZAI_API_KEY: "..." }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user