durar-ai 2026.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5497 -0
- package/LICENSE +21 -0
- package/README.md +614 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/docs/.i18n/README.md +72 -0
- package/docs/.i18n/ar-navigation.json +18 -0
- package/docs/.i18n/de-navigation.json +18 -0
- package/docs/.i18n/es-navigation.json +18 -0
- package/docs/.i18n/fr-navigation.json +18 -0
- package/docs/.i18n/glossary.ar.json +5 -0
- package/docs/.i18n/glossary.de.json +5 -0
- package/docs/.i18n/glossary.es.json +5 -0
- package/docs/.i18n/glossary.fr.json +5 -0
- package/docs/.i18n/glossary.id.json +5 -0
- package/docs/.i18n/glossary.it.json +5 -0
- package/docs/.i18n/glossary.ja-JP.json +14 -0
- package/docs/.i18n/glossary.ko.json +5 -0
- package/docs/.i18n/glossary.pl.json +5 -0
- package/docs/.i18n/glossary.pt-BR.json +5 -0
- package/docs/.i18n/glossary.tr.json +5 -0
- package/docs/.i18n/glossary.zh-CN.json +358 -0
- package/docs/.i18n/id-navigation.json +18 -0
- package/docs/.i18n/it-navigation.json +18 -0
- package/docs/.i18n/ja-navigation.json +18 -0
- package/docs/.i18n/ko-navigation.json +18 -0
- package/docs/.i18n/pl-navigation.json +18 -0
- package/docs/.i18n/pt-BR-navigation.json +18 -0
- package/docs/.i18n/tr-navigation.json +18 -0
- package/docs/.i18n/zh-Hans-navigation.json +544 -0
- package/docs/assets/install-script.svg +1 -0
- package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
- package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
- package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
- package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
- package/docs/assets/macos-onboarding/05-permissions.png +0 -0
- package/docs/assets/openclaw-logo-text-dark.png +0 -0
- package/docs/assets/openclaw-logo-text-dark.svg +418 -0
- package/docs/assets/openclaw-logo-text.png +0 -0
- package/docs/assets/openclaw-logo-text.svg +418 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/assets/sponsors/blacksmith-light.svg +14 -0
- package/docs/assets/sponsors/blacksmith.svg +14 -0
- package/docs/assets/sponsors/convex-light.svg +16 -0
- package/docs/assets/sponsors/convex.svg +16 -0
- package/docs/assets/sponsors/github-light.svg +3 -0
- package/docs/assets/sponsors/github.svg +3 -0
- package/docs/assets/sponsors/nvidia-dark.svg +9 -0
- package/docs/assets/sponsors/nvidia.svg +9 -0
- package/docs/assets/sponsors/openai-light.svg +3 -0
- package/docs/assets/sponsors/openai.svg +3 -0
- package/docs/assets/sponsors/vercel-light.svg +5 -0
- package/docs/assets/sponsors/vercel.svg +5 -0
- package/docs/auth-credential-semantics.md +80 -0
- package/docs/automation/auth-monitoring.md +8 -0
- package/docs/automation/clawflow.md +8 -0
- package/docs/automation/cron-jobs.md +410 -0
- package/docs/automation/cron-vs-heartbeat.md +8 -0
- package/docs/automation/gmail-pubsub.md +8 -0
- package/docs/automation/hooks.md +303 -0
- package/docs/automation/index.md +115 -0
- package/docs/automation/poll.md +8 -0
- package/docs/automation/standing-orders.md +254 -0
- package/docs/automation/taskflow.md +82 -0
- package/docs/automation/tasks.md +323 -0
- package/docs/automation/troubleshooting.md +8 -0
- package/docs/automation/webhook.md +8 -0
- package/docs/brave-search.md +103 -0
- package/docs/channels/bluebubbles.md +435 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +139 -0
- package/docs/channels/discord.md +1254 -0
- package/docs/channels/feishu.md +793 -0
- package/docs/channels/googlechat.md +270 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +410 -0
- package/docs/channels/imessage.md +427 -0
- package/docs/channels/index.md +50 -0
- package/docs/channels/irc.md +252 -0
- package/docs/channels/line.md +225 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +869 -0
- package/docs/channels/mattermost.md +472 -0
- package/docs/channels/msteams.md +805 -0
- package/docs/channels/nextcloud-talk.md +149 -0
- package/docs/channels/nostr.md +252 -0
- package/docs/channels/pairing.md +129 -0
- package/docs/channels/qqbot.md +193 -0
- package/docs/channels/signal.md +337 -0
- package/docs/channels/slack.md +681 -0
- package/docs/channels/synology-chat.md +185 -0
- package/docs/channels/telegram.md +1072 -0
- package/docs/channels/tlon.md +290 -0
- package/docs/channels/troubleshooting.md +133 -0
- package/docs/channels/twitch.md +394 -0
- package/docs/channels/whatsapp.md +488 -0
- package/docs/channels/zalo.md +254 -0
- package/docs/channels/zalouser.md +195 -0
- package/docs/ci.md +66 -0
- package/docs/cli/acp.md +316 -0
- package/docs/cli/agent.md +57 -0
- package/docs/cli/agents.md +220 -0
- package/docs/cli/approvals.md +136 -0
- package/docs/cli/backup.md +84 -0
- package/docs/cli/browser.md +233 -0
- package/docs/cli/channels.md +131 -0
- package/docs/cli/clawbot.md +21 -0
- package/docs/cli/completion.md +35 -0
- package/docs/cli/config.md +353 -0
- package/docs/cli/configure.md +70 -0
- package/docs/cli/cron.md +167 -0
- package/docs/cli/daemon.md +57 -0
- package/docs/cli/dashboard.md +22 -0
- package/docs/cli/devices.md +171 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +48 -0
- package/docs/cli/docs.md +28 -0
- package/docs/cli/doctor.md +63 -0
- package/docs/cli/flows.md +18 -0
- package/docs/cli/gateway.md +307 -0
- package/docs/cli/health.md +36 -0
- package/docs/cli/hooks.md +337 -0
- package/docs/cli/index.md +1836 -0
- package/docs/cli/logs.md +59 -0
- package/docs/cli/mcp.md +505 -0
- package/docs/cli/memory.md +139 -0
- package/docs/cli/message.md +300 -0
- package/docs/cli/models.md +136 -0
- package/docs/cli/node.md +137 -0
- package/docs/cli/nodes.md +66 -0
- package/docs/cli/onboard.md +171 -0
- package/docs/cli/pairing.md +65 -0
- package/docs/cli/plugins.md +305 -0
- package/docs/cli/qr.md +52 -0
- package/docs/cli/reset.md +35 -0
- package/docs/cli/sandbox.md +197 -0
- package/docs/cli/secrets.md +197 -0
- package/docs/cli/security.md +86 -0
- package/docs/cli/sessions.md +113 -0
- package/docs/cli/setup.md +45 -0
- package/docs/cli/skills.md +59 -0
- package/docs/cli/status.md +35 -0
- package/docs/cli/system.md +71 -0
- package/docs/cli/tui.md +30 -0
- package/docs/cli/uninstall.md +39 -0
- package/docs/cli/update.md +113 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +91 -0
- package/docs/concepts/agent-loop.md +168 -0
- package/docs/concepts/agent-workspace.md +246 -0
- package/docs/concepts/agent.md +129 -0
- package/docs/concepts/architecture.md +156 -0
- package/docs/concepts/compaction.md +122 -0
- package/docs/concepts/context-engine.md +274 -0
- package/docs/concepts/context.md +179 -0
- package/docs/concepts/delegate-architecture.md +307 -0
- package/docs/concepts/dreaming.md +173 -0
- package/docs/concepts/features.md +76 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory-builtin.md +105 -0
- package/docs/concepts/memory-honcho.md +140 -0
- package/docs/concepts/memory-qmd.md +163 -0
- package/docs/concepts/memory-search.md +141 -0
- package/docs/concepts/memory.md +121 -0
- package/docs/concepts/messages.md +161 -0
- package/docs/concepts/model-failover.md +349 -0
- package/docs/concepts/model-providers.md +799 -0
- package/docs/concepts/models.md +255 -0
- package/docs/concepts/multi-agent.md +615 -0
- package/docs/concepts/oauth.md +225 -0
- package/docs/concepts/presence.md +102 -0
- package/docs/concepts/queue.md +89 -0
- package/docs/concepts/retry.md +69 -0
- package/docs/concepts/session-pruning.md +92 -0
- package/docs/concepts/session-tool.md +141 -0
- package/docs/concepts/session.md +116 -0
- package/docs/concepts/soul.md +110 -0
- package/docs/concepts/streaming.md +161 -0
- package/docs/concepts/system-prompt.md +182 -0
- package/docs/concepts/timezone.md +97 -0
- package/docs/concepts/typebox.md +307 -0
- package/docs/concepts/typing-indicators.md +69 -0
- package/docs/concepts/usage-tracking.md +59 -0
- package/docs/date-time.md +128 -0
- package/docs/debug/node-issue.md +85 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +1601 -0
- package/docs/gateway/authentication.md +218 -0
- package/docs/gateway/background-process.md +131 -0
- package/docs/gateway/bonjour.md +179 -0
- package/docs/gateway/bridge-protocol.md +89 -0
- package/docs/gateway/cli-backends.md +310 -0
- package/docs/gateway/configuration-examples.md +631 -0
- package/docs/gateway/configuration-reference.md +3618 -0
- package/docs/gateway/configuration.md +698 -0
- package/docs/gateway/discovery.md +141 -0
- package/docs/gateway/doctor.md +494 -0
- package/docs/gateway/gateway-lock.md +37 -0
- package/docs/gateway/health.md +61 -0
- package/docs/gateway/heartbeat.md +443 -0
- package/docs/gateway/index.md +367 -0
- package/docs/gateway/local-models.md +163 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +120 -0
- package/docs/gateway/network-model.md +25 -0
- package/docs/gateway/openai-http-api.md +280 -0
- package/docs/gateway/openresponses-http-api.md +340 -0
- package/docs/gateway/openshell.md +307 -0
- package/docs/gateway/pairing.md +138 -0
- package/docs/gateway/protocol.md +588 -0
- package/docs/gateway/remote-gateway-readme.md +164 -0
- package/docs/gateway/remote.md +251 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +141 -0
- package/docs/gateway/sandboxing.md +473 -0
- package/docs/gateway/secrets-plan-contract.md +116 -0
- package/docs/gateway/secrets.md +541 -0
- package/docs/gateway/security/index.md +1362 -0
- package/docs/gateway/tailscale.md +136 -0
- package/docs/gateway/tools-invoke-http-api.md +161 -0
- package/docs/gateway/troubleshooting.md +451 -0
- package/docs/gateway/trusted-proxy-auth.md +399 -0
- package/docs/help/debugging.md +168 -0
- package/docs/help/environment.md +165 -0
- package/docs/help/faq.md +3244 -0
- package/docs/help/index.md +28 -0
- package/docs/help/scripts.md +27 -0
- package/docs/help/testing.md +640 -0
- package/docs/help/troubleshooting.md +372 -0
- package/docs/images/configure-model-picker-unsearchable.png +0 -0
- package/docs/images/feishu-step2-create-app.png +0 -0
- package/docs/images/feishu-step3-credentials.png +0 -0
- package/docs/images/feishu-step4-permissions.png +0 -0
- package/docs/images/feishu-step5-bot-capability.png +0 -0
- package/docs/images/feishu-step6-event-subscription.png +0 -0
- package/docs/images/feishu-verification-token.png +0 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +196 -0
- package/docs/install/ansible.md +230 -0
- package/docs/install/azure.md +311 -0
- package/docs/install/bun.md +55 -0
- package/docs/install/clawdock.md +106 -0
- package/docs/install/development-channels.md +131 -0
- package/docs/install/digitalocean.md +129 -0
- package/docs/install/docker-vm-runtime.md +142 -0
- package/docs/install/docker.md +412 -0
- package/docs/install/exe-dev.md +133 -0
- package/docs/install/fly.md +504 -0
- package/docs/install/gcp.md +412 -0
- package/docs/install/hetzner.md +259 -0
- package/docs/install/index.md +212 -0
- package/docs/install/installer.md +443 -0
- package/docs/install/kubernetes.md +192 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating-matrix.md +349 -0
- package/docs/install/migrating.md +112 -0
- package/docs/install/nix.md +89 -0
- package/docs/install/node.md +144 -0
- package/docs/install/northflank.mdx +42 -0
- package/docs/install/oracle.md +158 -0
- package/docs/install/podman.md +210 -0
- package/docs/install/railway.mdx +90 -0
- package/docs/install/raspberry-pi.md +159 -0
- package/docs/install/render.mdx +165 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +142 -0
- package/docs/logging.md +389 -0
- package/docs/nav-tabs-underline.js +100 -0
- package/docs/network.md +69 -0
- package/docs/nodes/audio.md +191 -0
- package/docs/nodes/camera.md +162 -0
- package/docs/nodes/images.md +73 -0
- package/docs/nodes/index.md +408 -0
- package/docs/nodes/location-command.md +98 -0
- package/docs/nodes/media-understanding.md +432 -0
- package/docs/nodes/talk.md +92 -0
- package/docs/nodes/troubleshooting.md +123 -0
- package/docs/nodes/voicewake.md +66 -0
- package/docs/perplexity.md +181 -0
- package/docs/pi-dev.md +80 -0
- package/docs/pi.md +570 -0
- package/docs/platforms/android.md +244 -0
- package/docs/platforms/digitalocean.md +266 -0
- package/docs/platforms/index.md +55 -0
- package/docs/platforms/ios.md +223 -0
- package/docs/platforms/linux.md +100 -0
- package/docs/platforms/mac/bundled-gateway.md +75 -0
- package/docs/platforms/mac/canvas.md +125 -0
- package/docs/platforms/mac/child-process.md +69 -0
- package/docs/platforms/mac/dev-setup.md +107 -0
- package/docs/platforms/mac/health.md +34 -0
- package/docs/platforms/mac/icon.md +31 -0
- package/docs/platforms/mac/logging.md +57 -0
- package/docs/platforms/mac/menu-bar.md +81 -0
- package/docs/platforms/mac/peekaboo.md +65 -0
- package/docs/platforms/mac/permissions.md +50 -0
- package/docs/platforms/mac/remote.md +84 -0
- package/docs/platforms/mac/signing.md +47 -0
- package/docs/platforms/mac/skills.md +40 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +51 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +229 -0
- package/docs/platforms/oracle.md +305 -0
- package/docs/platforms/raspberry-pi.md +420 -0
- package/docs/platforms/windows.md +241 -0
- package/docs/plugins/agent-tools.md +10 -0
- package/docs/plugins/architecture.md +1609 -0
- package/docs/plugins/building-extensions.md +10 -0
- package/docs/plugins/building-plugins.md +319 -0
- package/docs/plugins/bundles.md +292 -0
- package/docs/plugins/community.md +149 -0
- package/docs/plugins/manifest.md +412 -0
- package/docs/plugins/sdk-channel-plugins.md +508 -0
- package/docs/plugins/sdk-entrypoints.md +210 -0
- package/docs/plugins/sdk-migration.md +359 -0
- package/docs/plugins/sdk-overview.md +475 -0
- package/docs/plugins/sdk-provider-plugins.md +712 -0
- package/docs/plugins/sdk-runtime.md +381 -0
- package/docs/plugins/sdk-setup.md +516 -0
- package/docs/plugins/sdk-testing.md +263 -0
- package/docs/plugins/voice-call.md +466 -0
- package/docs/plugins/zalouser.md +78 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +402 -0
- package/docs/providers/bedrock-mantle.md +91 -0
- package/docs/providers/bedrock.md +273 -0
- package/docs/providers/chutes.md +103 -0
- package/docs/providers/claude-max-api-proxy.md +163 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/deepseek.md +53 -0
- package/docs/providers/fireworks.md +69 -0
- package/docs/providers/github-copilot.md +80 -0
- package/docs/providers/glm.md +68 -0
- package/docs/providers/google.md +149 -0
- package/docs/providers/groq.md +105 -0
- package/docs/providers/huggingface.md +193 -0
- package/docs/providers/index.md +81 -0
- package/docs/providers/kilocode.md +89 -0
- package/docs/providers/litellm.md +159 -0
- package/docs/providers/minimax.md +281 -0
- package/docs/providers/mistral.md +68 -0
- package/docs/providers/models.md +56 -0
- package/docs/providers/moonshot.md +224 -0
- package/docs/providers/nvidia.md +58 -0
- package/docs/providers/ollama.md +379 -0
- package/docs/providers/openai.md +472 -0
- package/docs/providers/opencode-go.md +45 -0
- package/docs/providers/opencode.md +68 -0
- package/docs/providers/openrouter.md +59 -0
- package/docs/providers/perplexity-provider.md +62 -0
- package/docs/providers/qianfan.md +90 -0
- package/docs/providers/qwen.md +128 -0
- package/docs/providers/qwen_modelstudio.md +137 -0
- package/docs/providers/sglang.md +115 -0
- package/docs/providers/stepfun.md +152 -0
- package/docs/providers/synthetic.md +101 -0
- package/docs/providers/together.md +70 -0
- package/docs/providers/venice.md +282 -0
- package/docs/providers/vercel-ai-gateway.md +60 -0
- package/docs/providers/vllm.md +103 -0
- package/docs/providers/volcengine.md +94 -0
- package/docs/providers/xai.md +94 -0
- package/docs/providers/xiaomi.md +89 -0
- package/docs/providers/zai.md +75 -0
- package/docs/reference/AGENTS.default.md +126 -0
- package/docs/reference/RELEASING.md +138 -0
- package/docs/reference/api-usage-costs.md +198 -0
- package/docs/reference/credits.md +30 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/memory-config.md +421 -0
- package/docs/reference/prompt-caching.md +344 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/secretref-credential-surface.md +148 -0
- package/docs/reference/secretref-user-supplied-credentials-matrix.json +607 -0
- package/docs/reference/session-management-compaction.md +352 -0
- package/docs/reference/templates/AGENTS.dev.md +84 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +12 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/CLAUDE.md +1 -0
- package/docs/reference/templates/HEARTBEAT.md +14 -0
- package/docs/reference/templates/IDENTITY.dev.md +48 -0
- package/docs/reference/templates/IDENTITY.md +30 -0
- package/docs/reference/templates/SOUL.dev.md +77 -0
- package/docs/reference/templates/SOUL.md +45 -0
- package/docs/reference/templates/TOOLS.dev.md +25 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +19 -0
- package/docs/reference/templates/USER.md +24 -0
- package/docs/reference/test.md +119 -0
- package/docs/reference/token-use.md +197 -0
- package/docs/reference/transcript-hygiene.md +151 -0
- package/docs/reference/wizard.md +245 -0
- package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
- package/docs/security/THREAT-MODEL-ATLAS.md +608 -0
- package/docs/security/formal-verification.md +167 -0
- package/docs/snippets/plugin-publish/minimal-openclaw.plugin.json +9 -0
- package/docs/snippets/plugin-publish/minimal-package.json +16 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +67 -0
- package/docs/start/getting-started.md +148 -0
- package/docs/start/hubs.md +199 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding-overview.md +69 -0
- package/docs/start/onboarding.md +92 -0
- package/docs/start/openclaw.md +225 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +172 -0
- package/docs/start/showcase.md +418 -0
- package/docs/start/wizard-cli-automation.md +233 -0
- package/docs/start/wizard-cli-reference.md +324 -0
- package/docs/start/wizard.md +127 -0
- package/docs/style.css +37 -0
- package/docs/tools/acp-agents.md +837 -0
- package/docs/tools/agent-send.md +100 -0
- package/docs/tools/apply-patch.md +52 -0
- package/docs/tools/brave-search.md +107 -0
- package/docs/tools/browser-linux-troubleshooting.md +145 -0
- package/docs/tools/browser-login.md +73 -0
- package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +221 -0
- package/docs/tools/browser.md +890 -0
- package/docs/tools/btw.md +142 -0
- package/docs/tools/capability-cookbook.md +119 -0
- package/docs/tools/clawhub.md +348 -0
- package/docs/tools/code-execution.md +90 -0
- package/docs/tools/creating-skills.md +119 -0
- package/docs/tools/diffs.md +434 -0
- package/docs/tools/duckduckgo-search.md +102 -0
- package/docs/tools/elevated.md +116 -0
- package/docs/tools/exa-search.md +127 -0
- package/docs/tools/exec-approvals.md +635 -0
- package/docs/tools/exec.md +237 -0
- package/docs/tools/firecrawl.md +147 -0
- package/docs/tools/gemini-search.md +98 -0
- package/docs/tools/grok-search.md +102 -0
- package/docs/tools/image-generation.md +139 -0
- package/docs/tools/index.md +174 -0
- package/docs/tools/kimi-search.md +98 -0
- package/docs/tools/llm-task.md +119 -0
- package/docs/tools/lobster.md +348 -0
- package/docs/tools/loop-detection.md +100 -0
- package/docs/tools/minimax-search.md +99 -0
- package/docs/tools/multi-agent-sandbox-tools.md +373 -0
- package/docs/tools/ollama-search.md +100 -0
- package/docs/tools/pdf.md +176 -0
- package/docs/tools/perplexity-search.md +185 -0
- package/docs/tools/plugin.md +348 -0
- package/docs/tools/reactions.md +78 -0
- package/docs/tools/searxng-search.md +132 -0
- package/docs/tools/skills-config.md +133 -0
- package/docs/tools/skills.md +377 -0
- package/docs/tools/slash-commands.md +322 -0
- package/docs/tools/subagents.md +341 -0
- package/docs/tools/tavily.md +129 -0
- package/docs/tools/thinking.md +102 -0
- package/docs/tools/tts.md +452 -0
- package/docs/tools/web-fetch.md +159 -0
- package/docs/tools/web.md +417 -0
- package/docs/tts.md +452 -0
- package/docs/vps.md +115 -0
- package/docs/web/control-ui.md +318 -0
- package/docs/web/dashboard.md +93 -0
- package/docs/web/index.md +126 -0
- package/docs/web/tui.md +176 -0
- package/docs/web/webchat.md +77 -0
- package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
- package/docs/whatsapp-openclaw.jpg +0 -0
- package/durar.mjs +180 -0
- package/package.json +1259 -0
- package/scripts/npm-runner.mjs +111 -0
- package/scripts/postinstall-bundled-plugins.mjs +188 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +118 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +199 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +316 -0
- package/skills/discord/SKILL.md +197 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gh-issues/SKILL.md +885 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +163 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +122 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +320 -0
- package/skills/model-usage/scripts/test_model_usage.py +40 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/node-connect/SKILL.md +142 -0
- package/skills/notion/SKILL.md +174 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +62 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +88 -0
- package/skills/openhue/SKILL.md +112 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +151 -0
- package/skills/sherpa-onnx-tts/SKILL.md +109 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +372 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +139 -0
- package/skills/skill-creator/scripts/quick_validate.py +159 -0
- package/skills/skill-creator/scripts/test_package_skill.py +160 -0
- package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +65 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/taskflow/SKILL.md +149 -0
- package/skills/taskflow/examples/inbox-triage.lobster +33 -0
- package/skills/taskflow/examples/pr-intake.lobster +32 -0
- package/skills/taskflow-inbox-triage/SKILL.md +119 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +170 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +108 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +129 -0
- package/skills/xurl/SKILL.md +461 -0
|
@@ -0,0 +1,890 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Integrated browser control service + action commands"
|
|
3
|
+
read_when:
|
|
4
|
+
- Adding agent-controlled browser automation
|
|
5
|
+
- Debugging why Durar is interfering with your own Chrome
|
|
6
|
+
- Implementing browser settings + lifecycle in the macOS app
|
|
7
|
+
title: "Browser (Durar-managed)"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Browser (Durar-managed)
|
|
11
|
+
|
|
12
|
+
Durar can run a **dedicated Chrome/Brave/Edge/Chromium profile** that the agent controls.
|
|
13
|
+
It is isolated from your personal browser and is managed through a small local
|
|
14
|
+
control service inside the Gateway (loopback only).
|
|
15
|
+
|
|
16
|
+
Beginner view:
|
|
17
|
+
|
|
18
|
+
- Think of it as a **separate, agent-only browser**.
|
|
19
|
+
- The `Durar` profile does **not** touch your personal browser profile.
|
|
20
|
+
- The agent can **open tabs, read pages, click, and type** in a safe lane.
|
|
21
|
+
- The built-in `user` profile attaches to your real signed-in Chrome session via Chrome MCP.
|
|
22
|
+
|
|
23
|
+
## What you get
|
|
24
|
+
|
|
25
|
+
- A separate browser profile named **Durar** (orange accent by default).
|
|
26
|
+
- Deterministic tab control (list/open/focus/close).
|
|
27
|
+
- Agent actions (click/type/drag/select), snapshots, screenshots, PDFs.
|
|
28
|
+
- Optional multi-profile support (`Durar`, `work`, `remote`, ...).
|
|
29
|
+
|
|
30
|
+
This browser is **not** your daily driver. It is a safe, isolated surface for
|
|
31
|
+
agent automation and verification.
|
|
32
|
+
|
|
33
|
+
## Quick start
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
Durar browser --browser-profile Durar status
|
|
37
|
+
Durar browser --browser-profile Durar start
|
|
38
|
+
Durar browser --browser-profile Durar open https://example.com
|
|
39
|
+
Durar browser --browser-profile Durar snapshot
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If you get “Browser disabled”, enable it in config (see below) and restart the
|
|
43
|
+
Gateway.
|
|
44
|
+
|
|
45
|
+
If `Durar browser` is missing entirely, or the agent says the browser tool
|
|
46
|
+
is unavailable, jump to [Missing browser command or tool](/tools/browser#missing-browser-command-or-tool).
|
|
47
|
+
|
|
48
|
+
## Plugin control
|
|
49
|
+
|
|
50
|
+
The default `browser` tool is now a bundled plugin that ships enabled by
|
|
51
|
+
default. That means you can disable or replace it without removing the rest of
|
|
52
|
+
Durar's plugin system:
|
|
53
|
+
|
|
54
|
+
```json5
|
|
55
|
+
{
|
|
56
|
+
plugins: {
|
|
57
|
+
entries: {
|
|
58
|
+
browser: {
|
|
59
|
+
enabled: false,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Disable the bundled plugin before installing another plugin that provides the
|
|
67
|
+
same `browser` tool name. The default browser experience needs both:
|
|
68
|
+
|
|
69
|
+
- `plugins.entries.browser.enabled` not disabled
|
|
70
|
+
- `browser.enabled=true`
|
|
71
|
+
|
|
72
|
+
If you turn off only the plugin, the bundled browser CLI (`Durar browser`),
|
|
73
|
+
gateway method (`browser.request`), agent tool, and default browser control
|
|
74
|
+
service all disappear together. Your `browser.*` config stays intact for a
|
|
75
|
+
replacement plugin to reuse.
|
|
76
|
+
|
|
77
|
+
The bundled browser plugin also owns the browser runtime implementation now.
|
|
78
|
+
Core keeps only shared Plugin SDK helpers plus compatibility re-exports for
|
|
79
|
+
older internal import paths. In practice, removing or replacing the browser
|
|
80
|
+
plugin package removes the browser feature set instead of leaving a second
|
|
81
|
+
core-owned runtime behind.
|
|
82
|
+
|
|
83
|
+
Browser config changes still require a Gateway restart so the bundled plugin
|
|
84
|
+
can re-register its browser service with the new settings.
|
|
85
|
+
|
|
86
|
+
## Missing browser command or tool
|
|
87
|
+
|
|
88
|
+
If `Durar browser` suddenly becomes an unknown command after an upgrade, or
|
|
89
|
+
the agent reports that the browser tool is missing, the most common cause is a
|
|
90
|
+
restrictive `plugins.allow` list that does not include `browser`.
|
|
91
|
+
|
|
92
|
+
Example broken config:
|
|
93
|
+
|
|
94
|
+
```json5
|
|
95
|
+
{
|
|
96
|
+
plugins: {
|
|
97
|
+
allow: ["telegram"],
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Fix it by adding `browser` to the plugin allowlist:
|
|
103
|
+
|
|
104
|
+
```json5
|
|
105
|
+
{
|
|
106
|
+
plugins: {
|
|
107
|
+
allow: ["telegram", "browser"],
|
|
108
|
+
},
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Important notes:
|
|
113
|
+
|
|
114
|
+
- `browser.enabled=true` is not enough by itself when `plugins.allow` is set.
|
|
115
|
+
- `plugins.entries.browser.enabled=true` is also not enough by itself when `plugins.allow` is set.
|
|
116
|
+
- `tools.alsoAllow: ["browser"]` does **not** load the bundled browser plugin. It only adjusts tool policy after the plugin is already loaded.
|
|
117
|
+
- If you do not need a restrictive plugin allowlist, removing `plugins.allow` also restores the default bundled browser behavior.
|
|
118
|
+
|
|
119
|
+
Typical symptoms:
|
|
120
|
+
|
|
121
|
+
- `Durar browser` is an unknown command.
|
|
122
|
+
- `browser.request` is missing.
|
|
123
|
+
- The agent reports the browser tool as unavailable or missing.
|
|
124
|
+
|
|
125
|
+
## Profiles: `Durar` vs `user`
|
|
126
|
+
|
|
127
|
+
- `Durar`: managed, isolated browser (no extension required).
|
|
128
|
+
- `user`: built-in Chrome MCP attach profile for your **real signed-in Chrome**
|
|
129
|
+
session.
|
|
130
|
+
|
|
131
|
+
For agent browser tool calls:
|
|
132
|
+
|
|
133
|
+
- Default: use the isolated `Durar` browser.
|
|
134
|
+
- Prefer `profile="user"` when existing logged-in sessions matter and the user
|
|
135
|
+
is at the computer to click/approve any attach prompt.
|
|
136
|
+
- `profile` is the explicit override when you want a specific browser mode.
|
|
137
|
+
|
|
138
|
+
Set `browser.defaultProfile: "Durar"` if you want managed mode by default.
|
|
139
|
+
|
|
140
|
+
## Configuration
|
|
141
|
+
|
|
142
|
+
Browser settings live in `~/.Durar/Durar.json`.
|
|
143
|
+
|
|
144
|
+
```json5
|
|
145
|
+
{
|
|
146
|
+
browser: {
|
|
147
|
+
enabled: true, // default: true
|
|
148
|
+
ssrfPolicy: {
|
|
149
|
+
dangerouslyAllowPrivateNetwork: true, // default trusted-network mode
|
|
150
|
+
// allowPrivateNetwork: true, // legacy alias
|
|
151
|
+
// hostnameAllowlist: ["*.example.com", "example.com"],
|
|
152
|
+
// allowedHostnames: ["localhost"],
|
|
153
|
+
},
|
|
154
|
+
// cdpUrl: "http://127.0.0.1:18792", // legacy single-profile override
|
|
155
|
+
remoteCdpTimeoutMs: 1500, // remote CDP HTTP timeout (ms)
|
|
156
|
+
remoteCdpHandshakeTimeoutMs: 3000, // remote CDP WebSocket handshake timeout (ms)
|
|
157
|
+
defaultProfile: "Durar",
|
|
158
|
+
color: "#FF4500",
|
|
159
|
+
headless: false,
|
|
160
|
+
noSandbox: false,
|
|
161
|
+
attachOnly: false,
|
|
162
|
+
executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
|
|
163
|
+
profiles: {
|
|
164
|
+
Durar: { cdpPort: 18800, color: "#FF4500" },
|
|
165
|
+
work: { cdpPort: 18801, color: "#0066CC" },
|
|
166
|
+
user: {
|
|
167
|
+
driver: "existing-session",
|
|
168
|
+
attachOnly: true,
|
|
169
|
+
color: "#00AA00",
|
|
170
|
+
},
|
|
171
|
+
brave: {
|
|
172
|
+
driver: "existing-session",
|
|
173
|
+
attachOnly: true,
|
|
174
|
+
userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser",
|
|
175
|
+
color: "#FB542B",
|
|
176
|
+
},
|
|
177
|
+
remote: { cdpUrl: "http://10.0.0.42:9222", color: "#00AA00" },
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Notes:
|
|
184
|
+
|
|
185
|
+
- The browser control service binds to loopback on a port derived from `gateway.port`
|
|
186
|
+
(default: `18791`, which is gateway + 2).
|
|
187
|
+
- If you override the Gateway port (`gateway.port` or `Durar_GATEWAY_PORT`),
|
|
188
|
+
the derived browser ports shift to stay in the same “family”.
|
|
189
|
+
- `cdpUrl` defaults to the managed local CDP port when unset.
|
|
190
|
+
- `remoteCdpTimeoutMs` applies to remote (non-loopback) CDP reachability checks.
|
|
191
|
+
- `remoteCdpHandshakeTimeoutMs` applies to remote CDP WebSocket reachability checks.
|
|
192
|
+
- Browser navigation/open-tab is SSRF-guarded before navigation and best-effort re-checked on final `http(s)` URL after navigation.
|
|
193
|
+
- In strict SSRF mode, remote CDP endpoint discovery/probes (`cdpUrl`, including `/json/version` lookups) are checked too.
|
|
194
|
+
- `browser.ssrfPolicy.dangerouslyAllowPrivateNetwork` defaults to `true` (trusted-network model). Set it to `false` for strict public-only browsing.
|
|
195
|
+
- `browser.ssrfPolicy.allowPrivateNetwork` remains supported as a legacy alias for compatibility.
|
|
196
|
+
- `attachOnly: true` means “never launch a local browser; only attach if it is already running.”
|
|
197
|
+
- `color` + per-profile `color` tint the browser UI so you can see which profile is active.
|
|
198
|
+
- Default profile is `Durar` (Durar-managed standalone browser). Use `defaultProfile: "user"` to opt into the signed-in user browser.
|
|
199
|
+
- Auto-detect order: system default browser if Chromium-based; otherwise Chrome → Brave → Edge → Chromium → Chrome Canary.
|
|
200
|
+
- Local `Durar` profiles auto-assign `cdpPort`/`cdpUrl` — set those only for remote CDP.
|
|
201
|
+
- `driver: "existing-session"` uses Chrome DevTools MCP instead of raw CDP. Do
|
|
202
|
+
not set `cdpUrl` for that driver.
|
|
203
|
+
- Set `browser.profiles.<name>.userDataDir` when an existing-session profile
|
|
204
|
+
should attach to a non-default Chromium user profile such as Brave or Edge.
|
|
205
|
+
|
|
206
|
+
## Use Brave (or another Chromium-based browser)
|
|
207
|
+
|
|
208
|
+
If your **system default** browser is Chromium-based (Chrome/Brave/Edge/etc),
|
|
209
|
+
Durar uses it automatically. Set `browser.executablePath` to override
|
|
210
|
+
auto-detection:
|
|
211
|
+
|
|
212
|
+
CLI example:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
Durar config set browser.executablePath "/usr/bin/google-chrome"
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
```json5
|
|
219
|
+
// macOS
|
|
220
|
+
{
|
|
221
|
+
browser: {
|
|
222
|
+
executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Windows
|
|
227
|
+
{
|
|
228
|
+
browser: {
|
|
229
|
+
executablePath: "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Linux
|
|
234
|
+
{
|
|
235
|
+
browser: {
|
|
236
|
+
executablePath: "/usr/bin/brave-browser"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Local vs remote control
|
|
242
|
+
|
|
243
|
+
- **Local control (default):** the Gateway starts the loopback control service and can launch a local browser.
|
|
244
|
+
- **Remote control (node host):** run a node host on the machine that has the browser; the Gateway proxies browser actions to it.
|
|
245
|
+
- **Remote CDP:** set `browser.profiles.<name>.cdpUrl` (or `browser.cdpUrl`) to
|
|
246
|
+
attach to a remote Chromium-based browser. In this case, Durar will not launch a local browser.
|
|
247
|
+
|
|
248
|
+
Stopping behavior differs by profile mode:
|
|
249
|
+
|
|
250
|
+
- local managed profiles: `Durar browser stop` stops the browser process that
|
|
251
|
+
Durar launched
|
|
252
|
+
- attach-only and remote CDP profiles: `Durar browser stop` closes the active
|
|
253
|
+
control session and releases Playwright/CDP emulation overrides (viewport,
|
|
254
|
+
color scheme, locale, timezone, offline mode, and similar state), even
|
|
255
|
+
though no browser process was launched by Durar
|
|
256
|
+
|
|
257
|
+
Remote CDP URLs can include auth:
|
|
258
|
+
|
|
259
|
+
- Query tokens (e.g., `https://provider.example?token=<token>`)
|
|
260
|
+
- HTTP Basic auth (e.g., `https://user:pass@provider.example`)
|
|
261
|
+
|
|
262
|
+
Durar preserves the auth when calling `/json/*` endpoints and when connecting
|
|
263
|
+
to the CDP WebSocket. Prefer environment variables or secrets managers for
|
|
264
|
+
tokens instead of committing them to config files.
|
|
265
|
+
|
|
266
|
+
## Node browser proxy (zero-config default)
|
|
267
|
+
|
|
268
|
+
If you run a **node host** on the machine that has your browser, Durar can
|
|
269
|
+
auto-route browser tool calls to that node without any extra browser config.
|
|
270
|
+
This is the default path for remote gateways.
|
|
271
|
+
|
|
272
|
+
Notes:
|
|
273
|
+
|
|
274
|
+
- The node host exposes its local browser control server via a **proxy command**.
|
|
275
|
+
- Profiles come from the node’s own `browser.profiles` config (same as local).
|
|
276
|
+
- `nodeHost.browserProxy.allowProfiles` is optional. Leave it empty for the legacy/default behavior: all configured profiles remain reachable through the proxy, including profile create/delete routes.
|
|
277
|
+
- If you set `nodeHost.browserProxy.allowProfiles`, Durar treats it as a least-privilege boundary: only allowlisted profiles can be targeted, and persistent profile create/delete routes are blocked on the proxy surface.
|
|
278
|
+
- Disable if you don’t want it:
|
|
279
|
+
- On the node: `nodeHost.browserProxy.enabled=false`
|
|
280
|
+
- On the gateway: `gateway.nodes.browser.mode="off"`
|
|
281
|
+
|
|
282
|
+
## Browserless (hosted remote CDP)
|
|
283
|
+
|
|
284
|
+
[Browserless](https://browserless.io) is a hosted Chromium service that exposes
|
|
285
|
+
CDP connection URLs over HTTPS and WebSocket. Durar can use either form, but
|
|
286
|
+
for a remote browser profile the simplest option is the direct WebSocket URL
|
|
287
|
+
from Browserless' connection docs.
|
|
288
|
+
|
|
289
|
+
Example:
|
|
290
|
+
|
|
291
|
+
```json5
|
|
292
|
+
{
|
|
293
|
+
browser: {
|
|
294
|
+
enabled: true,
|
|
295
|
+
defaultProfile: "browserless",
|
|
296
|
+
remoteCdpTimeoutMs: 2000,
|
|
297
|
+
remoteCdpHandshakeTimeoutMs: 4000,
|
|
298
|
+
profiles: {
|
|
299
|
+
browserless: {
|
|
300
|
+
cdpUrl: "wss://production-sfo.browserless.io?token=<BROWSERLESS_API_KEY>",
|
|
301
|
+
color: "#00AA00",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Notes:
|
|
309
|
+
|
|
310
|
+
- Replace `<BROWSERLESS_API_KEY>` with your real Browserless token.
|
|
311
|
+
- Choose the region endpoint that matches your Browserless account (see their docs).
|
|
312
|
+
- If Browserless gives you an HTTPS base URL, you can either convert it to
|
|
313
|
+
`wss://` for a direct CDP connection or keep the HTTPS URL and let Durar
|
|
314
|
+
discover `/json/version`.
|
|
315
|
+
|
|
316
|
+
## Direct WebSocket CDP providers
|
|
317
|
+
|
|
318
|
+
Some hosted browser services expose a **direct WebSocket** endpoint rather than
|
|
319
|
+
the standard HTTP-based CDP discovery (`/json/version`). Durar supports both:
|
|
320
|
+
|
|
321
|
+
- **HTTP(S) endpoints** — Durar calls `/json/version` to discover the
|
|
322
|
+
WebSocket debugger URL, then connects.
|
|
323
|
+
- **WebSocket endpoints** (`ws://` / `wss://`) — Durar connects directly,
|
|
324
|
+
skipping `/json/version`. Use this for services like
|
|
325
|
+
[Browserless](https://browserless.io),
|
|
326
|
+
[Browserbase](https://www.browserbase.com), or any provider that hands you a
|
|
327
|
+
WebSocket URL.
|
|
328
|
+
|
|
329
|
+
### Browserbase
|
|
330
|
+
|
|
331
|
+
[Browserbase](https://www.browserbase.com) is a cloud platform for running
|
|
332
|
+
headless browsers with built-in CAPTCHA solving, stealth mode, and residential
|
|
333
|
+
proxies.
|
|
334
|
+
|
|
335
|
+
```json5
|
|
336
|
+
{
|
|
337
|
+
browser: {
|
|
338
|
+
enabled: true,
|
|
339
|
+
defaultProfile: "browserbase",
|
|
340
|
+
remoteCdpTimeoutMs: 3000,
|
|
341
|
+
remoteCdpHandshakeTimeoutMs: 5000,
|
|
342
|
+
profiles: {
|
|
343
|
+
browserbase: {
|
|
344
|
+
cdpUrl: "wss://connect.browserbase.com?apiKey=<BROWSERBASE_API_KEY>",
|
|
345
|
+
color: "#F97316",
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
}
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Notes:
|
|
353
|
+
|
|
354
|
+
- [Sign up](https://www.browserbase.com/sign-up) and copy your **API Key**
|
|
355
|
+
from the [Overview dashboard](https://www.browserbase.com/overview).
|
|
356
|
+
- Replace `<BROWSERBASE_API_KEY>` with your real Browserbase API key.
|
|
357
|
+
- Browserbase auto-creates a browser session on WebSocket connect, so no
|
|
358
|
+
manual session creation step is needed.
|
|
359
|
+
- The free tier allows one concurrent session and one browser hour per month.
|
|
360
|
+
See [pricing](https://www.browserbase.com/pricing) for paid plan limits.
|
|
361
|
+
- See the [Browserbase docs](https://docs.browserbase.com) for full API
|
|
362
|
+
reference, SDK guides, and integration examples.
|
|
363
|
+
|
|
364
|
+
## Security
|
|
365
|
+
|
|
366
|
+
Key ideas:
|
|
367
|
+
|
|
368
|
+
- Browser control is loopback-only; access flows through the Gateway’s auth or node pairing.
|
|
369
|
+
- The standalone loopback browser HTTP API uses **shared-secret auth only**:
|
|
370
|
+
gateway token bearer auth, `x-Durar-password`, or HTTP Basic auth with the
|
|
371
|
+
configured gateway password.
|
|
372
|
+
- Tailscale Serve identity headers and `gateway.auth.mode: "trusted-proxy"` do
|
|
373
|
+
**not** authenticate this standalone loopback browser API.
|
|
374
|
+
- If browser control is enabled and no shared-secret auth is configured, Durar
|
|
375
|
+
auto-generates `gateway.auth.token` on startup and persists it to config.
|
|
376
|
+
- Durar does **not** auto-generate that token when `gateway.auth.mode` is
|
|
377
|
+
already `password`, `none`, or `trusted-proxy`.
|
|
378
|
+
- Keep the Gateway and any node hosts on a private network (Tailscale); avoid public exposure.
|
|
379
|
+
- Treat remote CDP URLs/tokens as secrets; prefer env vars or a secrets manager.
|
|
380
|
+
|
|
381
|
+
Remote CDP tips:
|
|
382
|
+
|
|
383
|
+
- Prefer encrypted endpoints (HTTPS or WSS) and short-lived tokens where possible.
|
|
384
|
+
- Avoid embedding long-lived tokens directly in config files.
|
|
385
|
+
|
|
386
|
+
## Profiles (multi-browser)
|
|
387
|
+
|
|
388
|
+
Durar supports multiple named profiles (routing configs). Profiles can be:
|
|
389
|
+
|
|
390
|
+
- **Durar-managed**: a dedicated Chromium-based browser instance with its own user data directory + CDP port
|
|
391
|
+
- **remote**: an explicit CDP URL (Chromium-based browser running elsewhere)
|
|
392
|
+
- **existing session**: your existing Chrome profile via Chrome DevTools MCP auto-connect
|
|
393
|
+
|
|
394
|
+
Defaults:
|
|
395
|
+
|
|
396
|
+
- The `Durar` profile is auto-created if missing.
|
|
397
|
+
- The `user` profile is built-in for Chrome MCP existing-session attach.
|
|
398
|
+
- Existing-session profiles are opt-in beyond `user`; create them with `--driver existing-session`.
|
|
399
|
+
- Local CDP ports allocate from **18800–18899** by default.
|
|
400
|
+
- Deleting a profile moves its local data directory to Trash.
|
|
401
|
+
|
|
402
|
+
All control endpoints accept `?profile=<name>`; the CLI uses `--browser-profile`.
|
|
403
|
+
|
|
404
|
+
## Existing-session via Chrome DevTools MCP
|
|
405
|
+
|
|
406
|
+
Durar can also attach to a running Chromium-based browser profile through the
|
|
407
|
+
official Chrome DevTools MCP server. This reuses the tabs and login state
|
|
408
|
+
already open in that browser profile.
|
|
409
|
+
|
|
410
|
+
Official background and setup references:
|
|
411
|
+
|
|
412
|
+
- [Chrome for Developers: Use Chrome DevTools MCP with your browser session](https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session)
|
|
413
|
+
- [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp)
|
|
414
|
+
|
|
415
|
+
Built-in profile:
|
|
416
|
+
|
|
417
|
+
- `user`
|
|
418
|
+
|
|
419
|
+
Optional: create your own custom existing-session profile if you want a
|
|
420
|
+
different name, color, or browser data directory.
|
|
421
|
+
|
|
422
|
+
Default behavior:
|
|
423
|
+
|
|
424
|
+
- The built-in `user` profile uses Chrome MCP auto-connect, which targets the
|
|
425
|
+
default local Google Chrome profile.
|
|
426
|
+
|
|
427
|
+
Use `userDataDir` for Brave, Edge, Chromium, or a non-default Chrome profile:
|
|
428
|
+
|
|
429
|
+
```json5
|
|
430
|
+
{
|
|
431
|
+
browser: {
|
|
432
|
+
profiles: {
|
|
433
|
+
brave: {
|
|
434
|
+
driver: "existing-session",
|
|
435
|
+
attachOnly: true,
|
|
436
|
+
userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser",
|
|
437
|
+
color: "#FB542B",
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
}
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
Then in the matching browser:
|
|
445
|
+
|
|
446
|
+
1. Open that browser's inspect page for remote debugging.
|
|
447
|
+
2. Enable remote debugging.
|
|
448
|
+
3. Keep the browser running and approve the connection prompt when Durar attaches.
|
|
449
|
+
|
|
450
|
+
Common inspect pages:
|
|
451
|
+
|
|
452
|
+
- Chrome: `chrome://inspect/#remote-debugging`
|
|
453
|
+
- Brave: `brave://inspect/#remote-debugging`
|
|
454
|
+
- Edge: `edge://inspect/#remote-debugging`
|
|
455
|
+
|
|
456
|
+
Live attach smoke test:
|
|
457
|
+
|
|
458
|
+
```bash
|
|
459
|
+
Durar browser --browser-profile user start
|
|
460
|
+
Durar browser --browser-profile user status
|
|
461
|
+
Durar browser --browser-profile user tabs
|
|
462
|
+
Durar browser --browser-profile user snapshot --format ai
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
What success looks like:
|
|
466
|
+
|
|
467
|
+
- `status` shows `driver: existing-session`
|
|
468
|
+
- `status` shows `transport: chrome-mcp`
|
|
469
|
+
- `status` shows `running: true`
|
|
470
|
+
- `tabs` lists your already-open browser tabs
|
|
471
|
+
- `snapshot` returns refs from the selected live tab
|
|
472
|
+
|
|
473
|
+
What to check if attach does not work:
|
|
474
|
+
|
|
475
|
+
- the target Chromium-based browser is version `144+`
|
|
476
|
+
- remote debugging is enabled in that browser's inspect page
|
|
477
|
+
- the browser showed and you accepted the attach consent prompt
|
|
478
|
+
- `Durar doctor` migrates old extension-based browser config and checks that
|
|
479
|
+
Chrome is installed locally for default auto-connect profiles, but it cannot
|
|
480
|
+
enable browser-side remote debugging for you
|
|
481
|
+
|
|
482
|
+
Agent use:
|
|
483
|
+
|
|
484
|
+
- Use `profile="user"` when you need the user’s logged-in browser state.
|
|
485
|
+
- If you use a custom existing-session profile, pass that explicit profile name.
|
|
486
|
+
- Only choose this mode when the user is at the computer to approve the attach
|
|
487
|
+
prompt.
|
|
488
|
+
- the Gateway or node host can spawn `npx chrome-devtools-mcp@latest --autoConnect`
|
|
489
|
+
|
|
490
|
+
Notes:
|
|
491
|
+
|
|
492
|
+
- This path is higher-risk than the isolated `Durar` profile because it can
|
|
493
|
+
act inside your signed-in browser session.
|
|
494
|
+
- Durar does not launch the browser for this driver; it attaches to an
|
|
495
|
+
existing session only.
|
|
496
|
+
- Durar uses the official Chrome DevTools MCP `--autoConnect` flow here. If
|
|
497
|
+
`userDataDir` is set, Durar passes it through to target that explicit
|
|
498
|
+
Chromium user data directory.
|
|
499
|
+
- Existing-session screenshots support page captures and `--ref` element
|
|
500
|
+
captures from snapshots, but not CSS `--element` selectors.
|
|
501
|
+
- Existing-session page screenshots work without Playwright through Chrome MCP.
|
|
502
|
+
Ref-based element screenshots (`--ref`) also work there, but `--full-page`
|
|
503
|
+
cannot be combined with `--ref` or `--element`.
|
|
504
|
+
- Existing-session actions are still more limited than the managed browser
|
|
505
|
+
path:
|
|
506
|
+
- `click`, `type`, `hover`, `scrollIntoView`, `drag`, and `select` require
|
|
507
|
+
snapshot refs instead of CSS selectors
|
|
508
|
+
- `click` is left-button only (no button overrides or modifiers)
|
|
509
|
+
- `type` does not support `slowly=true`; use `fill` or `press`
|
|
510
|
+
- `press` does not support `delayMs`
|
|
511
|
+
- `hover`, `scrollIntoView`, `drag`, `select`, `fill`, and `evaluate` do not
|
|
512
|
+
support per-call timeout overrides
|
|
513
|
+
- `select` currently supports a single value only
|
|
514
|
+
- Existing-session `wait --url` supports exact, substring, and glob patterns
|
|
515
|
+
like other browser drivers. `wait --load networkidle` is not supported yet.
|
|
516
|
+
- Existing-session upload hooks require `ref` or `inputRef`, support one file
|
|
517
|
+
at a time, and do not support CSS `element` targeting.
|
|
518
|
+
- Existing-session dialog hooks do not support timeout overrides.
|
|
519
|
+
- Some features still require the managed browser path, including batch
|
|
520
|
+
actions, PDF export, download interception, and `responsebody`.
|
|
521
|
+
- Existing-session is host-local. If Chrome lives on a different machine or a
|
|
522
|
+
different network namespace, use remote CDP or a node host instead.
|
|
523
|
+
|
|
524
|
+
## Isolation guarantees
|
|
525
|
+
|
|
526
|
+
- **Dedicated user data dir**: never touches your personal browser profile.
|
|
527
|
+
- **Dedicated ports**: avoids `9222` to prevent collisions with dev workflows.
|
|
528
|
+
- **Deterministic tab control**: target tabs by `targetId`, not “last tab”.
|
|
529
|
+
|
|
530
|
+
## Browser selection
|
|
531
|
+
|
|
532
|
+
When launching locally, Durar picks the first available:
|
|
533
|
+
|
|
534
|
+
1. Chrome
|
|
535
|
+
2. Brave
|
|
536
|
+
3. Edge
|
|
537
|
+
4. Chromium
|
|
538
|
+
5. Chrome Canary
|
|
539
|
+
|
|
540
|
+
You can override with `browser.executablePath`.
|
|
541
|
+
|
|
542
|
+
Platforms:
|
|
543
|
+
|
|
544
|
+
- macOS: checks `/Applications` and `~/Applications`.
|
|
545
|
+
- Linux: looks for `google-chrome`, `brave`, `microsoft-edge`, `chromium`, etc.
|
|
546
|
+
- Windows: checks common install locations.
|
|
547
|
+
|
|
548
|
+
## Control API (optional)
|
|
549
|
+
|
|
550
|
+
For local integrations only, the Gateway exposes a small loopback HTTP API:
|
|
551
|
+
|
|
552
|
+
- Status/start/stop: `GET /`, `POST /start`, `POST /stop`
|
|
553
|
+
- Tabs: `GET /tabs`, `POST /tabs/open`, `POST /tabs/focus`, `DELETE /tabs/:targetId`
|
|
554
|
+
- Snapshot/screenshot: `GET /snapshot`, `POST /screenshot`
|
|
555
|
+
- Actions: `POST /navigate`, `POST /act`
|
|
556
|
+
- Hooks: `POST /hooks/file-chooser`, `POST /hooks/dialog`
|
|
557
|
+
- Downloads: `POST /download`, `POST /wait/download`
|
|
558
|
+
- Debugging: `GET /console`, `POST /pdf`
|
|
559
|
+
- Debugging: `GET /errors`, `GET /requests`, `POST /trace/start`, `POST /trace/stop`, `POST /highlight`
|
|
560
|
+
- Network: `POST /response/body`
|
|
561
|
+
- State: `GET /cookies`, `POST /cookies/set`, `POST /cookies/clear`
|
|
562
|
+
- State: `GET /storage/:kind`, `POST /storage/:kind/set`, `POST /storage/:kind/clear`
|
|
563
|
+
- Settings: `POST /set/offline`, `POST /set/headers`, `POST /set/credentials`, `POST /set/geolocation`, `POST /set/media`, `POST /set/timezone`, `POST /set/locale`, `POST /set/device`
|
|
564
|
+
|
|
565
|
+
All endpoints accept `?profile=<name>`.
|
|
566
|
+
|
|
567
|
+
If shared-secret gateway auth is configured, browser HTTP routes require auth too:
|
|
568
|
+
|
|
569
|
+
- `Authorization: Bearer <gateway token>`
|
|
570
|
+
- `x-Durar-password: <gateway password>` or HTTP Basic auth with that password
|
|
571
|
+
|
|
572
|
+
Notes:
|
|
573
|
+
|
|
574
|
+
- This standalone loopback browser API does **not** consume trusted-proxy or
|
|
575
|
+
Tailscale Serve identity headers.
|
|
576
|
+
- If `gateway.auth.mode` is `none` or `trusted-proxy`, these loopback browser
|
|
577
|
+
routes do not inherit those identity-bearing modes; keep them loopback-only.
|
|
578
|
+
|
|
579
|
+
### Playwright requirement
|
|
580
|
+
|
|
581
|
+
Some features (navigate/act/AI snapshot/role snapshot, element screenshots,
|
|
582
|
+
PDF) require Playwright. If Playwright isn’t installed, those endpoints return
|
|
583
|
+
a clear 501 error.
|
|
584
|
+
|
|
585
|
+
What still works without Playwright:
|
|
586
|
+
|
|
587
|
+
- ARIA snapshots
|
|
588
|
+
- Page screenshots for the managed `Durar` browser when a per-tab CDP
|
|
589
|
+
WebSocket is available
|
|
590
|
+
- Page screenshots for `existing-session` / Chrome MCP profiles
|
|
591
|
+
- `existing-session` ref-based screenshots (`--ref`) from snapshot output
|
|
592
|
+
|
|
593
|
+
What still needs Playwright:
|
|
594
|
+
|
|
595
|
+
- `navigate`
|
|
596
|
+
- `act`
|
|
597
|
+
- AI snapshots / role snapshots
|
|
598
|
+
- CSS-selector element screenshots (`--element`)
|
|
599
|
+
- full browser PDF export
|
|
600
|
+
|
|
601
|
+
Element screenshots also reject `--full-page`; the route returns `fullPage is
|
|
602
|
+
not supported for element screenshots`.
|
|
603
|
+
|
|
604
|
+
If you see `Playwright is not available in this gateway build`, install the full
|
|
605
|
+
Playwright package (not `playwright-core`) and restart the gateway, or reinstall
|
|
606
|
+
Durar with browser support.
|
|
607
|
+
|
|
608
|
+
#### Docker Playwright install
|
|
609
|
+
|
|
610
|
+
If your Gateway runs in Docker, avoid `npx playwright` (npm override conflicts).
|
|
611
|
+
Use the bundled CLI instead:
|
|
612
|
+
|
|
613
|
+
```bash
|
|
614
|
+
docker compose run --rm Durar-cli \
|
|
615
|
+
node /app/node_modules/playwright-core/cli.js install chromium
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
To persist browser downloads, set `PLAYWRIGHT_BROWSERS_PATH` (for example,
|
|
619
|
+
`/home/node/.cache/ms-playwright`) and make sure `/home/node` is persisted via
|
|
620
|
+
`Durar_HOME_VOLUME` or a bind mount. See [Docker](/install/docker).
|
|
621
|
+
|
|
622
|
+
## How it works (internal)
|
|
623
|
+
|
|
624
|
+
High-level flow:
|
|
625
|
+
|
|
626
|
+
- A small **control server** accepts HTTP requests.
|
|
627
|
+
- It connects to Chromium-based browsers (Chrome/Brave/Edge/Chromium) via **CDP**.
|
|
628
|
+
- For advanced actions (click/type/snapshot/PDF), it uses **Playwright** on top
|
|
629
|
+
of CDP.
|
|
630
|
+
- When Playwright is missing, only non-Playwright operations are available.
|
|
631
|
+
|
|
632
|
+
This design keeps the agent on a stable, deterministic interface while letting
|
|
633
|
+
you swap local/remote browsers and profiles.
|
|
634
|
+
|
|
635
|
+
## CLI quick reference
|
|
636
|
+
|
|
637
|
+
All commands accept `--browser-profile <name>` to target a specific profile.
|
|
638
|
+
All commands also accept `--json` for machine-readable output (stable payloads).
|
|
639
|
+
|
|
640
|
+
Basics:
|
|
641
|
+
|
|
642
|
+
- `Durar browser status`
|
|
643
|
+
- `Durar browser start`
|
|
644
|
+
- `Durar browser stop`
|
|
645
|
+
- `Durar browser tabs`
|
|
646
|
+
- `Durar browser tab`
|
|
647
|
+
- `Durar browser tab new`
|
|
648
|
+
- `Durar browser tab select 2`
|
|
649
|
+
- `Durar browser tab close 2`
|
|
650
|
+
- `Durar browser open https://example.com`
|
|
651
|
+
- `Durar browser focus abcd1234`
|
|
652
|
+
- `Durar browser close abcd1234`
|
|
653
|
+
|
|
654
|
+
Inspection:
|
|
655
|
+
|
|
656
|
+
- `Durar browser screenshot`
|
|
657
|
+
- `Durar browser screenshot --full-page`
|
|
658
|
+
- `Durar browser screenshot --ref 12`
|
|
659
|
+
- `Durar browser screenshot --ref e12`
|
|
660
|
+
- `Durar browser snapshot`
|
|
661
|
+
- `Durar browser snapshot --format aria --limit 200`
|
|
662
|
+
- `Durar browser snapshot --interactive --compact --depth 6`
|
|
663
|
+
- `Durar browser snapshot --efficient`
|
|
664
|
+
- `Durar browser snapshot --labels`
|
|
665
|
+
- `Durar browser snapshot --selector "#main" --interactive`
|
|
666
|
+
- `Durar browser snapshot --frame "iframe#main" --interactive`
|
|
667
|
+
- `Durar browser console --level error`
|
|
668
|
+
|
|
669
|
+
Lifecycle note:
|
|
670
|
+
|
|
671
|
+
- For attach-only and remote CDP profiles, `Durar browser stop` is still the
|
|
672
|
+
right cleanup command after tests. It closes the active control session and
|
|
673
|
+
clears temporary emulation overrides instead of killing the underlying
|
|
674
|
+
browser.
|
|
675
|
+
- `Durar browser errors --clear`
|
|
676
|
+
- `Durar browser requests --filter api --clear`
|
|
677
|
+
- `Durar browser pdf`
|
|
678
|
+
- `Durar browser responsebody "**/api" --max-chars 5000`
|
|
679
|
+
|
|
680
|
+
Actions:
|
|
681
|
+
|
|
682
|
+
- `Durar browser navigate https://example.com`
|
|
683
|
+
- `Durar browser resize 1280 720`
|
|
684
|
+
- `Durar browser click 12 --double`
|
|
685
|
+
- `Durar browser click e12 --double`
|
|
686
|
+
- `Durar browser type 23 "hello" --submit`
|
|
687
|
+
- `Durar browser press Enter`
|
|
688
|
+
- `Durar browser hover 44`
|
|
689
|
+
- `Durar browser scrollintoview e12`
|
|
690
|
+
- `Durar browser drag 10 11`
|
|
691
|
+
- `Durar browser select 9 OptionA OptionB`
|
|
692
|
+
- `Durar browser download e12 report.pdf`
|
|
693
|
+
- `Durar browser waitfordownload report.pdf`
|
|
694
|
+
- `Durar browser upload /tmp/Durar/uploads/file.pdf`
|
|
695
|
+
- `Durar browser fill --fields '[{"ref":"1","type":"text","value":"Ada"}]'`
|
|
696
|
+
- `Durar browser dialog --accept`
|
|
697
|
+
- `Durar browser wait --text "Done"`
|
|
698
|
+
- `Durar browser wait "#main" --url "**/dash" --load networkidle --fn "window.ready===true"`
|
|
699
|
+
- `Durar browser evaluate --fn '(el) => el.textContent' --ref 7`
|
|
700
|
+
- `Durar browser highlight e12`
|
|
701
|
+
- `Durar browser trace start`
|
|
702
|
+
- `Durar browser trace stop`
|
|
703
|
+
|
|
704
|
+
State:
|
|
705
|
+
|
|
706
|
+
- `Durar browser cookies`
|
|
707
|
+
- `Durar browser cookies set session abc123 --url "https://example.com"`
|
|
708
|
+
- `Durar browser cookies clear`
|
|
709
|
+
- `Durar browser storage local get`
|
|
710
|
+
- `Durar browser storage local set theme dark`
|
|
711
|
+
- `Durar browser storage session clear`
|
|
712
|
+
- `Durar browser set offline on`
|
|
713
|
+
- `Durar browser set headers --headers-json '{"X-Debug":"1"}'`
|
|
714
|
+
- `Durar browser set credentials user pass`
|
|
715
|
+
- `Durar browser set credentials --clear`
|
|
716
|
+
- `Durar browser set geo 37.7749 -122.4194 --origin "https://example.com"`
|
|
717
|
+
- `Durar browser set geo --clear`
|
|
718
|
+
- `Durar browser set media dark`
|
|
719
|
+
- `Durar browser set timezone America/New_York`
|
|
720
|
+
- `Durar browser set locale en-US`
|
|
721
|
+
- `Durar browser set device "iPhone 14"`
|
|
722
|
+
|
|
723
|
+
Notes:
|
|
724
|
+
|
|
725
|
+
- `upload` and `dialog` are **arming** calls; run them before the click/press
|
|
726
|
+
that triggers the chooser/dialog.
|
|
727
|
+
- Download and trace output paths are constrained to Durar temp roots:
|
|
728
|
+
- traces: `/tmp/Durar` (fallback: `${os.tmpdir()}/Durar`)
|
|
729
|
+
- downloads: `/tmp/Durar/downloads` (fallback: `${os.tmpdir()}/Durar/downloads`)
|
|
730
|
+
- Upload paths are constrained to an Durar temp uploads root:
|
|
731
|
+
- uploads: `/tmp/Durar/uploads` (fallback: `${os.tmpdir()}/Durar/uploads`)
|
|
732
|
+
- `upload` can also set file inputs directly via `--input-ref` or `--element`.
|
|
733
|
+
- `snapshot`:
|
|
734
|
+
- `--format ai` (default when Playwright is installed): returns an AI snapshot with numeric refs (`aria-ref="<n>"`).
|
|
735
|
+
- `--format aria`: returns the accessibility tree (no refs; inspection only).
|
|
736
|
+
- `--efficient` (or `--mode efficient`): compact role snapshot preset (interactive + compact + depth + lower maxChars).
|
|
737
|
+
- Config default (tool/CLI only): set `browser.snapshotDefaults.mode: "efficient"` to use efficient snapshots when the caller does not pass a mode (see [Gateway configuration](/gateway/configuration-reference#browser)).
|
|
738
|
+
- Role snapshot options (`--interactive`, `--compact`, `--depth`, `--selector`) force a role-based snapshot with refs like `ref=e12`.
|
|
739
|
+
- `--frame "<iframe selector>"` scopes role snapshots to an iframe (pairs with role refs like `e12`).
|
|
740
|
+
- `--interactive` outputs a flat, easy-to-pick list of interactive elements (best for driving actions).
|
|
741
|
+
- `--labels` adds a viewport-only screenshot with overlayed ref labels (prints `MEDIA:<path>`).
|
|
742
|
+
- `click`/`type`/etc require a `ref` from `snapshot` (either numeric `12` or role ref `e12`).
|
|
743
|
+
CSS selectors are intentionally not supported for actions.
|
|
744
|
+
|
|
745
|
+
## Snapshots and refs
|
|
746
|
+
|
|
747
|
+
Durar supports two “snapshot” styles:
|
|
748
|
+
|
|
749
|
+
- **AI snapshot (numeric refs)**: `Durar browser snapshot` (default; `--format ai`)
|
|
750
|
+
- Output: a text snapshot that includes numeric refs.
|
|
751
|
+
- Actions: `Durar browser click 12`, `Durar browser type 23 "hello"`.
|
|
752
|
+
- Internally, the ref is resolved via Playwright’s `aria-ref`.
|
|
753
|
+
|
|
754
|
+
- **Role snapshot (role refs like `e12`)**: `Durar browser snapshot --interactive` (or `--compact`, `--depth`, `--selector`, `--frame`)
|
|
755
|
+
- Output: a role-based list/tree with `[ref=e12]` (and optional `[nth=1]`).
|
|
756
|
+
- Actions: `Durar browser click e12`, `Durar browser highlight e12`.
|
|
757
|
+
- Internally, the ref is resolved via `getByRole(...)` (plus `nth()` for duplicates).
|
|
758
|
+
- Add `--labels` to include a viewport screenshot with overlayed `e12` labels.
|
|
759
|
+
|
|
760
|
+
Ref behavior:
|
|
761
|
+
|
|
762
|
+
- Refs are **not stable across navigations**; if something fails, re-run `snapshot` and use a fresh ref.
|
|
763
|
+
- If the role snapshot was taken with `--frame`, role refs are scoped to that iframe until the next role snapshot.
|
|
764
|
+
|
|
765
|
+
## Wait power-ups
|
|
766
|
+
|
|
767
|
+
You can wait on more than just time/text:
|
|
768
|
+
|
|
769
|
+
- Wait for URL (globs supported by Playwright):
|
|
770
|
+
- `Durar browser wait --url "**/dash"`
|
|
771
|
+
- Wait for load state:
|
|
772
|
+
- `Durar browser wait --load networkidle`
|
|
773
|
+
- Wait for a JS predicate:
|
|
774
|
+
- `Durar browser wait --fn "window.ready===true"`
|
|
775
|
+
- Wait for a selector to become visible:
|
|
776
|
+
- `Durar browser wait "#main"`
|
|
777
|
+
|
|
778
|
+
These can be combined:
|
|
779
|
+
|
|
780
|
+
```bash
|
|
781
|
+
Durar browser wait "#main" \
|
|
782
|
+
--url "**/dash" \
|
|
783
|
+
--load networkidle \
|
|
784
|
+
--fn "window.ready===true" \
|
|
785
|
+
--timeout-ms 15000
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
## Debug workflows
|
|
789
|
+
|
|
790
|
+
When an action fails (e.g. “not visible”, “strict mode violation”, “covered”):
|
|
791
|
+
|
|
792
|
+
1. `Durar browser snapshot --interactive`
|
|
793
|
+
2. Use `click <ref>` / `type <ref>` (prefer role refs in interactive mode)
|
|
794
|
+
3. If it still fails: `Durar browser highlight <ref>` to see what Playwright is targeting
|
|
795
|
+
4. If the page behaves oddly:
|
|
796
|
+
- `Durar browser errors --clear`
|
|
797
|
+
- `Durar browser requests --filter api --clear`
|
|
798
|
+
5. For deep debugging: record a trace:
|
|
799
|
+
- `Durar browser trace start`
|
|
800
|
+
- reproduce the issue
|
|
801
|
+
- `Durar browser trace stop` (prints `TRACE:<path>`)
|
|
802
|
+
|
|
803
|
+
## JSON output
|
|
804
|
+
|
|
805
|
+
`--json` is for scripting and structured tooling.
|
|
806
|
+
|
|
807
|
+
Examples:
|
|
808
|
+
|
|
809
|
+
```bash
|
|
810
|
+
Durar browser status --json
|
|
811
|
+
Durar browser snapshot --interactive --json
|
|
812
|
+
Durar browser requests --filter api --json
|
|
813
|
+
Durar browser cookies --json
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
Role snapshots in JSON include `refs` plus a small `stats` block (lines/chars/refs/interactive) so tools can reason about payload size and density.
|
|
817
|
+
|
|
818
|
+
## State and environment knobs
|
|
819
|
+
|
|
820
|
+
These are useful for “make the site behave like X” workflows:
|
|
821
|
+
|
|
822
|
+
- Cookies: `cookies`, `cookies set`, `cookies clear`
|
|
823
|
+
- Storage: `storage local|session get|set|clear`
|
|
824
|
+
- Offline: `set offline on|off`
|
|
825
|
+
- Headers: `set headers --headers-json '{"X-Debug":"1"}'` (legacy `set headers --json '{"X-Debug":"1"}'` remains supported)
|
|
826
|
+
- HTTP basic auth: `set credentials user pass` (or `--clear`)
|
|
827
|
+
- Geolocation: `set geo <lat> <lon> --origin "https://example.com"` (or `--clear`)
|
|
828
|
+
- Media: `set media dark|light|no-preference|none`
|
|
829
|
+
- Timezone / locale: `set timezone ...`, `set locale ...`
|
|
830
|
+
- Device / viewport:
|
|
831
|
+
- `set device "iPhone 14"` (Playwright device presets)
|
|
832
|
+
- `set viewport 1280 720`
|
|
833
|
+
|
|
834
|
+
## Security & privacy
|
|
835
|
+
|
|
836
|
+
- The Durar browser profile may contain logged-in sessions; treat it as sensitive.
|
|
837
|
+
- `browser act kind=evaluate` / `Durar browser evaluate` and `wait --fn`
|
|
838
|
+
execute arbitrary JavaScript in the page context. Prompt injection can steer
|
|
839
|
+
this. Disable it with `browser.evaluateEnabled=false` if you do not need it.
|
|
840
|
+
- For logins and anti-bot notes (X/Twitter, etc.), see [Browser login + X/Twitter posting](/tools/browser-login).
|
|
841
|
+
- Keep the Gateway/node host private (loopback or tailnet-only).
|
|
842
|
+
- Remote CDP endpoints are powerful; tunnel and protect them.
|
|
843
|
+
|
|
844
|
+
Strict-mode example (block private/internal destinations by default):
|
|
845
|
+
|
|
846
|
+
```json5
|
|
847
|
+
{
|
|
848
|
+
browser: {
|
|
849
|
+
ssrfPolicy: {
|
|
850
|
+
dangerouslyAllowPrivateNetwork: false,
|
|
851
|
+
hostnameAllowlist: ["*.example.com", "example.com"],
|
|
852
|
+
allowedHostnames: ["localhost"], // optional exact allow
|
|
853
|
+
},
|
|
854
|
+
},
|
|
855
|
+
}
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
## Troubleshooting
|
|
859
|
+
|
|
860
|
+
For Linux-specific issues (especially snap Chromium), see
|
|
861
|
+
[Browser troubleshooting](/tools/browser-linux-troubleshooting).
|
|
862
|
+
|
|
863
|
+
For WSL2 Gateway + Windows Chrome split-host setups, see
|
|
864
|
+
[WSL2 + Windows + remote Chrome CDP troubleshooting](/tools/browser-wsl2-windows-remote-cdp-troubleshooting).
|
|
865
|
+
|
|
866
|
+
## Agent tools + how control works
|
|
867
|
+
|
|
868
|
+
The agent gets **one tool** for browser automation:
|
|
869
|
+
|
|
870
|
+
- `browser` — status/start/stop/tabs/open/focus/close/snapshot/screenshot/navigate/act
|
|
871
|
+
|
|
872
|
+
How it maps:
|
|
873
|
+
|
|
874
|
+
- `browser snapshot` returns a stable UI tree (AI or ARIA).
|
|
875
|
+
- `browser act` uses the snapshot `ref` IDs to click/type/drag/select.
|
|
876
|
+
- `browser screenshot` captures pixels (full page or element).
|
|
877
|
+
- `browser` accepts:
|
|
878
|
+
- `profile` to choose a named browser profile (Durar, chrome, or remote CDP).
|
|
879
|
+
- `target` (`sandbox` | `host` | `node`) to select where the browser lives.
|
|
880
|
+
- In sandboxed sessions, `target: "host"` requires `agents.defaults.sandbox.browser.allowHostControl=true`.
|
|
881
|
+
- If `target` is omitted: sandboxed sessions default to `sandbox`, non-sandbox sessions default to `host`.
|
|
882
|
+
- If a browser-capable node is connected, the tool may auto-route to it unless you pin `target="host"` or `target="node"`.
|
|
883
|
+
|
|
884
|
+
This keeps the agent deterministic and avoids brittle selectors.
|
|
885
|
+
|
|
886
|
+
## Related
|
|
887
|
+
|
|
888
|
+
- [Tools Overview](/tools) — all available agent tools
|
|
889
|
+
- [Sandboxing](/gateway/sandboxing) — browser control in sandboxed environments
|
|
890
|
+
- [Security](/gateway/security) — browser control risks and hardening
|