π‘ OpenClaw Web Scraper: AI Agent Structured β Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for OpenClaw Web Scraper: AI Agent Structured.
Docs
Installation
bash
curl -fsSL https://openclaw.ai/install.sh | bash
# openclaw port: http://localhost:18789/
# ollama port: http://localhost:11434/
References and Guidelines (NOTE)
Settings that appear below can be modified in ~/.openclaw/openclaw.json (restart: ollama launch openclaw)
Samples:
bash
{
"agents": {
"defaults": {
"compaction": {
"reserveTokensFloor": 4096
},
"model": {
"primary": "ollama/llama3-extended:latest"
},
"workspace": "/Users/gimmyeonghan/.openclaw/workspace"
}
},
"gateway": {
"auth": {
"mode": "token",
"token": "239b95be7550ffffde7276a981f559b4c059b9290f2540d8"
},
"bind": "loopback",
"controlUi": {
"allowedOrigins": [
"https://claw.fredric18.uk"
]
},
"mode": "local",
"port": 18789,
"tailscale": {
"mode": "off",
"resetOnExit": false
}
},
"meta": {
"lastTouchedAt": "2026-07-02T04:44:20.249Z",
"lastTouchedVersion": "2026.6.11"
},
"models": {
"mode": "merge",
"providers": {
"ollama": {
"api": "ollama",
"apiKey": "ollama-local",
"baseUrl": "http://127.0.0.1:11434",
"models": [
{
"contextWindow": 32768,
"cost": {
"cacheRead": 0,
"cacheWrite": 0,
"input": 0,
"output": 0
},
"id": "llama3-extended:latest",
"input": [
"text"
],
"name": "llama3-extended:latest",
"params": {
"num_ctx": 32768
}
},
{
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true
},
"contextWindow": 131072,
"cost": {
"cacheRead": 0,
"cacheWrite": 0,
"input": 0,
"output": 0
},
"id": "gemma4:latest",
"input": [
"text"
],
"maxTokens": 8192,
"name": "gemma4:latest",
"params": {
"num_ctx": 131072
},
"reasoning": true
}
]
}
}
},
"plugins": {
"entries": {
"ollama": {
"enabled": true
}
}
},
"session": {
"dmScope": "per-channel-peer"
},
"skills": {
"entries": {
"1password": {
"enabled": false
},
"apple-notes": {
"enabled": false
},
"apple-reminders": {
"enabled": false
},
"bear-notes": {
"enabled": false
},
"blogwatcher": {
"enabled": false
},
"blucli": {
"enabled": false
},
"camsnap": {
"enabled": false
},
"clawhub": {
"enabled": false
},
"coding-agent": {
"enabled": false
},
"discord": {
"enabled": false
},
"eightctl": {
"enabled": false
},
"gemini": {
"enabled": false
},
"gh-issues": {
"enabled": false
},
"gifgrep": {
"enabled": false
},
"github": {
"enabled": false
},
"gog": {
"enabled": false
},
"goplaces": {
"enabled": false
},
"himalaya": {
"enabled": false
},
"imsg": {
"enabled": false
},
"mcporter": {
"enabled": false
},
"model-usage": {
"enabled": false
},
"nano-pdf": {
"enabled": false
},
"obsidian": {
"enabled": false
},
"openai-whisper": {
"enabled": false
},
"openai-whisper-api": {
"enabled": false
},
"openhue": {
"enabled": false
},
"oracle": {
"enabled": false
},
"ordercli": {
"enabled": false
},
"peekaboo": {
"enabled": false
},
"sag": {
"enabled": false
},
"session-logs": {
"enabled": false
},
"sherpa-onnx-tts": {
"enabled": false
},
"slack": {
"enabled": false
},
"songsee": {
"enabled": false
},
"sonoscli": {
"enabled": false
},
"spotify-player": {
"enabled": false
},
"summarize": {
"enabled": false
},
"things-mac": {
"enabled": false
},
"tmux": {
"enabled": false
},
"trello": {
"enabled": false
},
"video-frames": {
"enabled": false
},
"voice-call": {
"enabled": false
},
"wacli": {
"enabled": false
},
"xurl": {
"enabled": false
}
}
},
"tools": {
"profile": "coding",
"web": {
"search": {
"enabled": true,
"provider": "ollama"
}
}
},
"wizard": {
"lastRunAt": "2026-07-02T04:02:50.527Z",
"lastRunCommand": "doctor",
"lastRunMode": "local",
"lastRunVersion": "2026.6.11"
}
}
After Cloudflare Setupβ¦
bash
# cloudflare
sudo cloudflared service install eyJhIjoiN2U3ZG...
- Allow new device access
1. Access token
bash
# μλ² μ€ννκ²½μμ 볡μ
β OpenClaw is running
Open the Web UI:
http://127.0.0.1:18789/#token=239b95be7550ffffde7276a981f559b4c059b9290f2540d8
-
Fix origin-related errors that appear when inserting tokens on the screen
- Search for Settings>Infrastructure>
Control UI Allowed Originsin the server’s UI - Enter your domain and save
- Device pairing warning fix
- Search for Settings>Infrastructure>
`bash
openclaw devices list
β
β
π¦ OpenClaw 2026.6.1 (2e08f0f) β The lobster in your shell. π¦
β
β
Pending (1)
ββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββ¬βββββββββββ¬ββββββββββββββ
β Request β Device β Requested β Approved β Age β Status β
ββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββΌβββββββββββΌββββββββββββββ€
β 6c9d38fc-1a90-4ce6-bec1-8b5994befe09 β c8fd6709ea8968190242dec β roles: operator; scopes: operator.admin, operator.approvals, β none β just now β new pairing β
β β fdeecad90e65ade1b7bc6c3 β operator.pairing, operator.read, operator.write β β β β
β β 9458885afe7fdaddb9 β β β β β
ββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββ΄βββββββββββ΄ββββββββββββββ
Paired (3)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββ¬βββββββββββββ
β Device β Roles β Scopes β Tokens β IP β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββΌβββββββββββββ€
β 19ec60ef7576f2cc5f657b510293f50941f31642388b7bc925b4b54eaa β operator β operator.admin, operator.read, operator.write, operator.approvals, operator. β operator β β
β 17712a β β pairing β β β
β e0f7ef281c6cfaa33c65fe7b7fa014ace12f846ab275b5ae6126196c74 β operator β operator.pairing β operator β β
β dd409c β β β β β
β 3e489bccb92978578ee608b423ef56a6a72fe17245c7e20e9cbdafc8f5 β operator β operator.admin, operator.read, operator.write, operator.approvals, operator. β operator β β
β c6d55c β β pairing β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ΄βββββββββββββ
`
openclaw devices approve 6c9d38fc-1a90-4ce6-bec1-8b5994befe09
prompt
β
β
π¦ OpenClaw 2026.6.1 (2e08f0f) β I'll refactor your busywork like it owes me money.
β
β
β
gateway connect failed: GatewayClientRequestError: scope upgrade pending approval (requestId: c4fdd42f-7c5f-49fb-83f6-b76f1ae63711)
β
Direct scope access failed; using local fallback.
Approved c8fd6709ea8968190242decfdeecad90e65ade1b7bc6c39458885afe7fdaddb9 (6c9d38fc-1a90-4ce6-bec1-8b5994befe09)
`
Model Change
bash
openclaw models set ollama/llama3
openclaw models status
Destroy
References and Guidelines (NOTE)
Since openclaw cannot be terminated, only the deletion method is specified.
bash
openclaw uninstall --all --yes
rm -rf ~/.openclaw
- Reference when ollama installed together does not stop
Trouble Shooting
Compaction Reserve Token Floor
Problem: The following appears in the chat window
bash
β οΈ Auto-compaction could not recover this turn. I kept this conversation mapped to the current session. Please try again, use /compact, or use /new to start a fresh session.
To prevent this, increase your compaction buffer by setting agents.defaults.compaction.reserveTokensFloor to 20000 or higher in your config.
Solution
1. In the UI, search for Settings>AI & Agents>Compaction Reserve Token Floor
2. Set to 100000 and save
3. If this does not solve the problem, it is not a problem with Openclaw settings but a limitation of the model (Ollama, etc.)
- Increase the model’s context size:
-
Apply
bash
ollama launch openclaw --model llama3-extended -
In a prompted session
bash
/reset
4. Basically, 20000\~ 30000 is the appropriate range.




Leave a Reply