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,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Message flow, sessions, queueing, and reasoning visibility"
|
|
3
|
+
read_when:
|
|
4
|
+
- Explaining how inbound messages become replies
|
|
5
|
+
- Clarifying sessions, queueing modes, or streaming behavior
|
|
6
|
+
- Documenting reasoning visibility and usage implications
|
|
7
|
+
title: "Messages"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Messages
|
|
11
|
+
|
|
12
|
+
This page ties together how Durar handles inbound messages, sessions, queueing,
|
|
13
|
+
streaming, and reasoning visibility.
|
|
14
|
+
|
|
15
|
+
## Message flow (high level)
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
Inbound message
|
|
19
|
+
-> routing/bindings -> session key
|
|
20
|
+
-> queue (if a run is active)
|
|
21
|
+
-> agent run (streaming + tools)
|
|
22
|
+
-> outbound replies (channel limits + chunking)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Key knobs live in configuration:
|
|
26
|
+
|
|
27
|
+
- `messages.*` for prefixes, queueing, and group behavior.
|
|
28
|
+
- `agents.defaults.*` for block streaming and chunking defaults.
|
|
29
|
+
- Channel overrides (`channels.whatsapp.*`, `channels.telegram.*`, etc.) for caps and streaming toggles.
|
|
30
|
+
|
|
31
|
+
See [Configuration](/gateway/configuration) for full schema.
|
|
32
|
+
|
|
33
|
+
## Inbound dedupe
|
|
34
|
+
|
|
35
|
+
Channels can redeliver the same message after reconnects. Durar keeps a
|
|
36
|
+
short-lived cache keyed by channel/account/peer/session/message id so duplicate
|
|
37
|
+
deliveries do not trigger another agent run.
|
|
38
|
+
|
|
39
|
+
## Inbound debouncing
|
|
40
|
+
|
|
41
|
+
Rapid consecutive messages from the **same sender** can be batched into a single
|
|
42
|
+
agent turn via `messages.inbound`. Debouncing is scoped per channel + conversation
|
|
43
|
+
and uses the most recent message for reply threading/IDs.
|
|
44
|
+
|
|
45
|
+
Config (global default + per-channel overrides):
|
|
46
|
+
|
|
47
|
+
```json5
|
|
48
|
+
{
|
|
49
|
+
messages: {
|
|
50
|
+
inbound: {
|
|
51
|
+
debounceMs: 2000,
|
|
52
|
+
byChannel: {
|
|
53
|
+
whatsapp: 5000,
|
|
54
|
+
slack: 1500,
|
|
55
|
+
discord: 1500,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Notes:
|
|
63
|
+
|
|
64
|
+
- Debounce applies to **text-only** messages; media/attachments flush immediately.
|
|
65
|
+
- Control commands bypass debouncing so they remain standalone.
|
|
66
|
+
|
|
67
|
+
## Sessions and devices
|
|
68
|
+
|
|
69
|
+
Sessions are owned by the gateway, not by clients.
|
|
70
|
+
|
|
71
|
+
- Direct chats collapse into the agent main session key.
|
|
72
|
+
- Groups/channels get their own session keys.
|
|
73
|
+
- The session store and transcripts live on the gateway host.
|
|
74
|
+
|
|
75
|
+
Multiple devices/channels can map to the same session, but history is not fully
|
|
76
|
+
synced back to every client. Recommendation: use one primary device for long
|
|
77
|
+
conversations to avoid divergent context. The Control UI and TUI always show the
|
|
78
|
+
gateway-backed session transcript, so they are the source of truth.
|
|
79
|
+
|
|
80
|
+
Details: [Session management](/concepts/session).
|
|
81
|
+
|
|
82
|
+
## Inbound bodies and history context
|
|
83
|
+
|
|
84
|
+
Durar separates the **prompt body** from the **command body**:
|
|
85
|
+
|
|
86
|
+
- `Body`: prompt text sent to the agent. This may include channel envelopes and
|
|
87
|
+
optional history wrappers.
|
|
88
|
+
- `CommandBody`: raw user text for directive/command parsing.
|
|
89
|
+
- `RawBody`: legacy alias for `CommandBody` (kept for compatibility).
|
|
90
|
+
|
|
91
|
+
When a channel supplies history, it uses a shared wrapper:
|
|
92
|
+
|
|
93
|
+
- `[Chat messages since your last reply - for context]`
|
|
94
|
+
- `[Current message - respond to this]`
|
|
95
|
+
|
|
96
|
+
For **non-direct chats** (groups/channels/rooms), the **current message body** is prefixed with the
|
|
97
|
+
sender label (same style used for history entries). This keeps real-time and queued/history
|
|
98
|
+
messages consistent in the agent prompt.
|
|
99
|
+
|
|
100
|
+
History buffers are **pending-only**: they include group messages that did _not_
|
|
101
|
+
trigger a run (for example, mention-gated messages) and **exclude** messages
|
|
102
|
+
already in the session transcript.
|
|
103
|
+
|
|
104
|
+
Directive stripping only applies to the **current message** section so history
|
|
105
|
+
remains intact. Channels that wrap history should set `CommandBody` (or
|
|
106
|
+
`RawBody`) to the original message text and keep `Body` as the combined prompt.
|
|
107
|
+
History buffers are configurable via `messages.groupChat.historyLimit` (global
|
|
108
|
+
default) and per-channel overrides like `channels.slack.historyLimit` or
|
|
109
|
+
`channels.telegram.accounts.<id>.historyLimit` (set `0` to disable).
|
|
110
|
+
|
|
111
|
+
## Queueing and followups
|
|
112
|
+
|
|
113
|
+
If a run is already active, inbound messages can be queued, steered into the
|
|
114
|
+
current run, or collected for a followup turn.
|
|
115
|
+
|
|
116
|
+
- Configure via `messages.queue` (and `messages.queue.byChannel`).
|
|
117
|
+
- Modes: `interrupt`, `steer`, `followup`, `collect`, plus backlog variants.
|
|
118
|
+
|
|
119
|
+
Details: [Queueing](/concepts/queue).
|
|
120
|
+
|
|
121
|
+
## Streaming, chunking, and batching
|
|
122
|
+
|
|
123
|
+
Block streaming sends partial replies as the model produces text blocks.
|
|
124
|
+
Chunking respects channel text limits and avoids splitting fenced code.
|
|
125
|
+
|
|
126
|
+
Key settings:
|
|
127
|
+
|
|
128
|
+
- `agents.defaults.blockStreamingDefault` (`on|off`, default off)
|
|
129
|
+
- `agents.defaults.blockStreamingBreak` (`text_end|message_end`)
|
|
130
|
+
- `agents.defaults.blockStreamingChunk` (`minChars|maxChars|breakPreference`)
|
|
131
|
+
- `agents.defaults.blockStreamingCoalesce` (idle-based batching)
|
|
132
|
+
- `agents.defaults.humanDelay` (human-like pause between block replies)
|
|
133
|
+
- Channel overrides: `*.blockStreaming` and `*.blockStreamingCoalesce` (non-Telegram channels require explicit `*.blockStreaming: true`)
|
|
134
|
+
|
|
135
|
+
Details: [Streaming + chunking](/concepts/streaming).
|
|
136
|
+
|
|
137
|
+
## Reasoning visibility and tokens
|
|
138
|
+
|
|
139
|
+
Durar can expose or hide model reasoning:
|
|
140
|
+
|
|
141
|
+
- `/reasoning on|off|stream` controls visibility.
|
|
142
|
+
- Reasoning content still counts toward token usage when produced by the model.
|
|
143
|
+
- Telegram supports reasoning stream into the draft bubble.
|
|
144
|
+
|
|
145
|
+
Details: [Thinking + reasoning directives](/tools/thinking) and [Token use](/reference/token-use).
|
|
146
|
+
|
|
147
|
+
## Prefixes, threading, and replies
|
|
148
|
+
|
|
149
|
+
Outbound message formatting is centralized in `messages`:
|
|
150
|
+
|
|
151
|
+
- `messages.responsePrefix`, `channels.<channel>.responsePrefix`, and `channels.<channel>.accounts.<id>.responsePrefix` (outbound prefix cascade), plus `channels.whatsapp.messagePrefix` (WhatsApp inbound prefix)
|
|
152
|
+
- Reply threading via `replyToMode` and per-channel defaults
|
|
153
|
+
|
|
154
|
+
Details: [Configuration](/gateway/configuration-reference#messages) and channel docs.
|
|
155
|
+
|
|
156
|
+
## Related
|
|
157
|
+
|
|
158
|
+
- [Streaming](/concepts/streaming) — real-time message delivery
|
|
159
|
+
- [Retry](/concepts/retry) — message delivery retry behavior
|
|
160
|
+
- [Queue](/concepts/queue) — message processing queue
|
|
161
|
+
- [Channels](/channels) — messaging platform integrations
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "How Durar rotates auth profiles and falls back across models"
|
|
3
|
+
read_when:
|
|
4
|
+
- Diagnosing auth profile rotation, cooldowns, or model fallback behavior
|
|
5
|
+
- Updating failover rules for auth profiles or models
|
|
6
|
+
- Understanding how session model overrides interact with fallback retries
|
|
7
|
+
title: "Model Failover"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Model failover
|
|
11
|
+
|
|
12
|
+
Durar handles failures in two stages:
|
|
13
|
+
|
|
14
|
+
1. **Auth profile rotation** within the current provider.
|
|
15
|
+
2. **Model fallback** to the next model in `agents.defaults.model.fallbacks`.
|
|
16
|
+
|
|
17
|
+
This doc explains the runtime rules and the data that backs them.
|
|
18
|
+
|
|
19
|
+
## Runtime flow
|
|
20
|
+
|
|
21
|
+
For a normal text run, Durar evaluates candidates in this order:
|
|
22
|
+
|
|
23
|
+
1. The currently selected session model.
|
|
24
|
+
2. Configured `agents.defaults.model.fallbacks` in order.
|
|
25
|
+
3. The configured primary model at the end when the run started from an override.
|
|
26
|
+
|
|
27
|
+
Inside each candidate, Durar tries auth-profile failover before advancing to
|
|
28
|
+
the next model candidate.
|
|
29
|
+
|
|
30
|
+
High-level sequence:
|
|
31
|
+
|
|
32
|
+
1. Resolve the active session model and auth-profile preference.
|
|
33
|
+
2. Build the model candidate chain.
|
|
34
|
+
3. Try the current provider with auth-profile rotation/cooldown rules.
|
|
35
|
+
4. If that provider is exhausted with a failover-worthy error, move to the next
|
|
36
|
+
model candidate.
|
|
37
|
+
5. Persist the selected fallback override before the retry starts so other
|
|
38
|
+
session readers see the same provider/model the runner is about to use.
|
|
39
|
+
6. If the fallback candidate fails, roll back only the fallback-owned session
|
|
40
|
+
override fields when they still match that failed candidate.
|
|
41
|
+
7. If every candidate fails, throw a `FallbackSummaryError` with per-attempt
|
|
42
|
+
detail and the soonest cooldown expiry when one is known.
|
|
43
|
+
|
|
44
|
+
This is intentionally narrower than "save and restore the whole session". The
|
|
45
|
+
reply runner only persists the model-selection fields it owns for fallback:
|
|
46
|
+
|
|
47
|
+
- `providerOverride`
|
|
48
|
+
- `modelOverride`
|
|
49
|
+
- `authProfileOverride`
|
|
50
|
+
- `authProfileOverrideSource`
|
|
51
|
+
- `authProfileOverrideCompactionCount`
|
|
52
|
+
|
|
53
|
+
That prevents a failed fallback retry from overwriting newer unrelated session
|
|
54
|
+
mutations such as manual `/model` changes or session rotation updates that
|
|
55
|
+
happened while the attempt was running.
|
|
56
|
+
|
|
57
|
+
## Auth storage (keys + OAuth)
|
|
58
|
+
|
|
59
|
+
Durar uses **auth profiles** for both API keys and OAuth tokens.
|
|
60
|
+
|
|
61
|
+
- Secrets live in `~/.Durar/agents/<agentId>/agent/auth-profiles.json` (legacy: `~/.Durar/agent/auth-profiles.json`).
|
|
62
|
+
- Config `auth.profiles` / `auth.order` are **metadata + routing only** (no secrets).
|
|
63
|
+
- Legacy import-only OAuth file: `~/.Durar/credentials/oauth.json` (imported into `auth-profiles.json` on first use).
|
|
64
|
+
|
|
65
|
+
More detail: [/concepts/oauth](/concepts/oauth)
|
|
66
|
+
|
|
67
|
+
Credential types:
|
|
68
|
+
|
|
69
|
+
- `type: "api_key"` → `{ provider, key }`
|
|
70
|
+
- `type: "oauth"` → `{ provider, access, refresh, expires, email? }` (+ `projectId`/`enterpriseUrl` for some providers)
|
|
71
|
+
|
|
72
|
+
## Profile IDs
|
|
73
|
+
|
|
74
|
+
OAuth logins create distinct profiles so multiple accounts can coexist.
|
|
75
|
+
|
|
76
|
+
- Default: `provider:default` when no email is available.
|
|
77
|
+
- OAuth with email: `provider:<email>` (for example `google-antigravity:user@gmail.com`).
|
|
78
|
+
|
|
79
|
+
Profiles live in `~/.Durar/agents/<agentId>/agent/auth-profiles.json` under `profiles`.
|
|
80
|
+
|
|
81
|
+
## Rotation order
|
|
82
|
+
|
|
83
|
+
When a provider has multiple profiles, Durar chooses an order like this:
|
|
84
|
+
|
|
85
|
+
1. **Explicit config**: `auth.order[provider]` (if set).
|
|
86
|
+
2. **Configured profiles**: `auth.profiles` filtered by provider.
|
|
87
|
+
3. **Stored profiles**: entries in `auth-profiles.json` for the provider.
|
|
88
|
+
|
|
89
|
+
If no explicit order is configured, Durar uses a round‑robin order:
|
|
90
|
+
|
|
91
|
+
- **Primary key:** profile type (**OAuth before API keys**).
|
|
92
|
+
- **Secondary key:** `usageStats.lastUsed` (oldest first, within each type).
|
|
93
|
+
- **Cooldown/disabled profiles** are moved to the end, ordered by soonest expiry.
|
|
94
|
+
|
|
95
|
+
### Session stickiness (cache-friendly)
|
|
96
|
+
|
|
97
|
+
Durar **pins the chosen auth profile per session** to keep provider caches warm.
|
|
98
|
+
It does **not** rotate on every request. The pinned profile is reused until:
|
|
99
|
+
|
|
100
|
+
- the session is reset (`/new` / `/reset`)
|
|
101
|
+
- a compaction completes (compaction count increments)
|
|
102
|
+
- the profile is in cooldown/disabled
|
|
103
|
+
|
|
104
|
+
Manual selection via `/model …@<profileId>` sets a **user override** for that session
|
|
105
|
+
and is not auto‑rotated until a new session starts.
|
|
106
|
+
|
|
107
|
+
Auto‑pinned profiles (selected by the session router) are treated as a **preference**:
|
|
108
|
+
they are tried first, but Durar may rotate to another profile on rate limits/timeouts.
|
|
109
|
+
User‑pinned profiles stay locked to that profile; if it fails and model fallbacks
|
|
110
|
+
are configured, Durar moves to the next model instead of switching profiles.
|
|
111
|
+
|
|
112
|
+
### Why OAuth can "look lost"
|
|
113
|
+
|
|
114
|
+
If you have both an OAuth profile and an API key profile for the same provider, round‑robin can switch between them across messages unless pinned. To force a single profile:
|
|
115
|
+
|
|
116
|
+
- Pin with `auth.order[provider] = ["provider:profileId"]`, or
|
|
117
|
+
- Use a per-session override via `/model …` with a profile override (when supported by your UI/chat surface).
|
|
118
|
+
|
|
119
|
+
## Cooldowns
|
|
120
|
+
|
|
121
|
+
When a profile fails due to auth/rate‑limit errors (or a timeout that looks
|
|
122
|
+
like rate limiting), Durar marks it in cooldown and moves to the next profile.
|
|
123
|
+
That rate-limit bucket is broader than plain `429`: it also includes provider
|
|
124
|
+
messages such as `Too many concurrent requests`, `ThrottlingException`,
|
|
125
|
+
`concurrency limit reached`, `workers_ai ... quota limit exceeded`,
|
|
126
|
+
`throttled`, `resource exhausted`, and periodic usage-window limits such as
|
|
127
|
+
`weekly/monthly limit reached`.
|
|
128
|
+
Format/invalid‑request errors (for example Cloud Code Assist tool call ID
|
|
129
|
+
validation failures) are treated as failover‑worthy and use the same cooldowns.
|
|
130
|
+
OpenAI-compatible stop-reason errors such as `Unhandled stop reason: error`,
|
|
131
|
+
`stop reason: error`, and `reason: error` are classified as timeout/failover
|
|
132
|
+
signals.
|
|
133
|
+
Provider-scoped generic server text can also land in that timeout bucket when
|
|
134
|
+
the source matches a known transient pattern. For example, Anthropic bare
|
|
135
|
+
`An unknown error occurred` and JSON `api_error` payloads with transient server
|
|
136
|
+
text such as `internal server error`, `unknown error, 520`, `upstream error`,
|
|
137
|
+
or `backend error` are treated as failover-worthy timeouts. OpenRouter-specific
|
|
138
|
+
generic upstream text such as bare `Provider returned error` is also treated as
|
|
139
|
+
timeout only when the provider context is actually OpenRouter. Generic internal
|
|
140
|
+
fallback text such as `LLM request failed with an unknown error.` stays
|
|
141
|
+
conservative and does not trigger failover by itself.
|
|
142
|
+
|
|
143
|
+
Rate-limit cooldowns can also be model-scoped:
|
|
144
|
+
|
|
145
|
+
- Durar records `cooldownModel` for rate-limit failures when the failing
|
|
146
|
+
model id is known.
|
|
147
|
+
- A sibling model on the same provider can still be tried when the cooldown is
|
|
148
|
+
scoped to a different model.
|
|
149
|
+
- Billing/disabled windows still block the whole profile across models.
|
|
150
|
+
|
|
151
|
+
Cooldowns use exponential backoff:
|
|
152
|
+
|
|
153
|
+
- 1 minute
|
|
154
|
+
- 5 minutes
|
|
155
|
+
- 25 minutes
|
|
156
|
+
- 1 hour (cap)
|
|
157
|
+
|
|
158
|
+
State is stored in `auth-profiles.json` under `usageStats`:
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
{
|
|
162
|
+
"usageStats": {
|
|
163
|
+
"provider:profile": {
|
|
164
|
+
"lastUsed": 1736160000000,
|
|
165
|
+
"cooldownUntil": 1736160600000,
|
|
166
|
+
"errorCount": 2
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Billing disables
|
|
173
|
+
|
|
174
|
+
Billing/credit failures (for example “insufficient credits” / “credit balance too low”) are treated as failover‑worthy, but they’re usually not transient. Instead of a short cooldown, Durar marks the profile as **disabled** (with a longer backoff) and rotates to the next profile/provider.
|
|
175
|
+
|
|
176
|
+
Not every billing-shaped response is `402`, and not every HTTP `402` lands
|
|
177
|
+
here. Durar keeps explicit billing text in the billing lane even when a
|
|
178
|
+
provider returns `401` or `403` instead, but provider-specific matchers stay
|
|
179
|
+
scoped to the provider that owns them (for example OpenRouter `403 Key limit
|
|
180
|
+
exceeded`). Meanwhile temporary `402` usage-window and
|
|
181
|
+
organization/workspace spend-limit errors are classified as `rate_limit` when
|
|
182
|
+
the message looks retryable (for example `weekly usage limit exhausted`, `daily
|
|
183
|
+
limit reached, resets tomorrow`, or `organization spending limit exceeded`).
|
|
184
|
+
Those stay on the short cooldown/failover path instead of the long
|
|
185
|
+
billing-disable path.
|
|
186
|
+
|
|
187
|
+
State is stored in `auth-profiles.json`:
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"usageStats": {
|
|
192
|
+
"provider:profile": {
|
|
193
|
+
"disabledUntil": 1736178000000,
|
|
194
|
+
"disabledReason": "billing"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Defaults:
|
|
201
|
+
|
|
202
|
+
- Billing backoff starts at **5 hours**, doubles per billing failure, and caps at **24 hours**.
|
|
203
|
+
- Backoff counters reset if the profile hasn’t failed for **24 hours** (configurable).
|
|
204
|
+
- Overloaded retries allow **1 same-provider profile rotation** before model fallback.
|
|
205
|
+
- Overloaded retries use **0 ms backoff** by default.
|
|
206
|
+
|
|
207
|
+
## Model fallback
|
|
208
|
+
|
|
209
|
+
If all profiles for a provider fail, Durar moves to the next model in
|
|
210
|
+
`agents.defaults.model.fallbacks`. This applies to auth failures, rate limits, and
|
|
211
|
+
timeouts that exhausted profile rotation (other errors do not advance fallback).
|
|
212
|
+
|
|
213
|
+
Overloaded and rate-limit errors are handled more aggressively than billing
|
|
214
|
+
cooldowns. By default, Durar allows one same-provider auth-profile retry,
|
|
215
|
+
then switches to the next configured model fallback without waiting.
|
|
216
|
+
Provider-busy signals such as `ModelNotReadyException` land in that overloaded
|
|
217
|
+
bucket. Tune this with `auth.cooldowns.overloadedProfileRotations`,
|
|
218
|
+
`auth.cooldowns.overloadedBackoffMs`, and
|
|
219
|
+
`auth.cooldowns.rateLimitedProfileRotations`.
|
|
220
|
+
|
|
221
|
+
When a run starts with a model override (hooks or CLI), fallbacks still end at
|
|
222
|
+
`agents.defaults.model.primary` after trying any configured fallbacks.
|
|
223
|
+
|
|
224
|
+
### Candidate chain rules
|
|
225
|
+
|
|
226
|
+
Durar builds the candidate list from the currently requested `provider/model`
|
|
227
|
+
plus configured fallbacks.
|
|
228
|
+
|
|
229
|
+
Rules:
|
|
230
|
+
|
|
231
|
+
- The requested model is always first.
|
|
232
|
+
- Explicit configured fallbacks are deduplicated but not filtered by the model
|
|
233
|
+
allowlist. They are treated as explicit operator intent.
|
|
234
|
+
- If the current run is already on a configured fallback in the same provider
|
|
235
|
+
family, Durar keeps using the full configured chain.
|
|
236
|
+
- If the current run is on a different provider than config and that current
|
|
237
|
+
model is not already part of the configured fallback chain, Durar does not
|
|
238
|
+
append unrelated configured fallbacks from another provider.
|
|
239
|
+
- When the run started from an override, the configured primary is appended at
|
|
240
|
+
the end so the chain can settle back onto the normal default once earlier
|
|
241
|
+
candidates are exhausted.
|
|
242
|
+
|
|
243
|
+
### Which errors advance fallback
|
|
244
|
+
|
|
245
|
+
Model fallback continues on:
|
|
246
|
+
|
|
247
|
+
- auth failures
|
|
248
|
+
- rate limits and cooldown exhaustion
|
|
249
|
+
- overloaded/provider-busy errors
|
|
250
|
+
- timeout-shaped failover errors
|
|
251
|
+
- billing disables
|
|
252
|
+
- `LiveSessionModelSwitchError`, which is normalized into a failover path so a
|
|
253
|
+
stale persisted model does not create an outer retry loop
|
|
254
|
+
- other unrecognized errors when there are still remaining candidates
|
|
255
|
+
|
|
256
|
+
Model fallback does not continue on:
|
|
257
|
+
|
|
258
|
+
- explicit aborts that are not timeout/failover-shaped
|
|
259
|
+
- context overflow errors that should stay inside compaction/retry logic
|
|
260
|
+
(for example `request_too_large`, `INVALID_ARGUMENT: input exceeds the maximum
|
|
261
|
+
number of tokens`, `input token count exceeds the maximum number of input
|
|
262
|
+
tokens`, `The input is too long for the model`, or `ollama error: context
|
|
263
|
+
length exceeded`)
|
|
264
|
+
- a final unknown error when there are no candidates left
|
|
265
|
+
|
|
266
|
+
### Cooldown skip vs probe behavior
|
|
267
|
+
|
|
268
|
+
When every auth profile for a provider is already in cooldown, Durar does
|
|
269
|
+
not automatically skip that provider forever. It makes a per-candidate decision:
|
|
270
|
+
|
|
271
|
+
- Persistent auth failures skip the whole provider immediately.
|
|
272
|
+
- Billing disables usually skip, but the primary candidate can still be probed
|
|
273
|
+
on a throttle so recovery is possible without restarting.
|
|
274
|
+
- The primary candidate may be probed near cooldown expiry, with a per-provider
|
|
275
|
+
throttle.
|
|
276
|
+
- Same-provider fallback siblings can be attempted despite cooldown when the
|
|
277
|
+
failure looks transient (`rate_limit`, `overloaded`, or unknown). This is
|
|
278
|
+
especially relevant when a rate limit is model-scoped and a sibling model may
|
|
279
|
+
still recover immediately.
|
|
280
|
+
- Transient cooldown probes are limited to one per provider per fallback run so
|
|
281
|
+
a single provider does not stall cross-provider fallback.
|
|
282
|
+
|
|
283
|
+
## Session overrides and live model switching
|
|
284
|
+
|
|
285
|
+
Session model changes are shared state. The active runner, `/model` command,
|
|
286
|
+
compaction/session updates, and live-session reconciliation all read or write
|
|
287
|
+
parts of the same session entry.
|
|
288
|
+
|
|
289
|
+
That means fallback retries have to coordinate with live model switching:
|
|
290
|
+
|
|
291
|
+
- Only explicit user-driven model changes mark a pending live switch. That
|
|
292
|
+
includes `/model`, `session_status(model=...)`, and `sessions.patch`.
|
|
293
|
+
- System-driven model changes such as fallback rotation, heartbeat overrides,
|
|
294
|
+
or compaction never mark a pending live switch on their own.
|
|
295
|
+
- Before a fallback retry starts, the reply runner persists the selected
|
|
296
|
+
fallback override fields to the session entry.
|
|
297
|
+
- Live-session reconciliation prefers persisted session overrides over stale
|
|
298
|
+
runtime model fields.
|
|
299
|
+
- If the fallback attempt fails, the runner rolls back only the override fields
|
|
300
|
+
it wrote, and only if they still match that failed candidate.
|
|
301
|
+
|
|
302
|
+
This prevents the classic race:
|
|
303
|
+
|
|
304
|
+
1. Primary fails.
|
|
305
|
+
2. Fallback candidate is chosen in memory.
|
|
306
|
+
3. Session store still says the old primary.
|
|
307
|
+
4. Live-session reconciliation reads the stale session state.
|
|
308
|
+
5. The retry gets snapped back to the old model before the fallback attempt
|
|
309
|
+
starts.
|
|
310
|
+
|
|
311
|
+
The persisted fallback override closes that window, and the narrow rollback
|
|
312
|
+
keeps newer manual or runtime session changes intact.
|
|
313
|
+
|
|
314
|
+
## Observability and failure summaries
|
|
315
|
+
|
|
316
|
+
`runWithModelFallback(...)` records per-attempt details that feed logs and
|
|
317
|
+
user-facing cooldown messaging:
|
|
318
|
+
|
|
319
|
+
- provider/model attempted
|
|
320
|
+
- reason (`rate_limit`, `overloaded`, `billing`, `auth`, `model_not_found`, and
|
|
321
|
+
similar failover reasons)
|
|
322
|
+
- optional status/code
|
|
323
|
+
- human-readable error summary
|
|
324
|
+
|
|
325
|
+
When every candidate fails, Durar throws `FallbackSummaryError`. The outer
|
|
326
|
+
reply runner can use that to build a more specific message such as "all models
|
|
327
|
+
are temporarily rate-limited" and include the soonest cooldown expiry when one
|
|
328
|
+
is known.
|
|
329
|
+
|
|
330
|
+
That cooldown summary is model-aware:
|
|
331
|
+
|
|
332
|
+
- unrelated model-scoped rate limits are ignored for the attempted
|
|
333
|
+
provider/model chain
|
|
334
|
+
- if the remaining block is a matching model-scoped rate limit, Durar
|
|
335
|
+
reports the last matching expiry that still blocks that model
|
|
336
|
+
|
|
337
|
+
## Related config
|
|
338
|
+
|
|
339
|
+
See [Gateway configuration](/gateway/configuration) for:
|
|
340
|
+
|
|
341
|
+
- `auth.profiles` / `auth.order`
|
|
342
|
+
- `auth.cooldowns.billingBackoffHours` / `auth.cooldowns.billingBackoffHoursByProvider`
|
|
343
|
+
- `auth.cooldowns.billingMaxHours` / `auth.cooldowns.failureWindowHours`
|
|
344
|
+
- `auth.cooldowns.overloadedProfileRotations` / `auth.cooldowns.overloadedBackoffMs`
|
|
345
|
+
- `auth.cooldowns.rateLimitedProfileRotations`
|
|
346
|
+
- `agents.defaults.model.primary` / `agents.defaults.model.fallbacks`
|
|
347
|
+
- `agents.defaults.imageModel` routing
|
|
348
|
+
|
|
349
|
+
See [Models](/concepts/models) for the broader model selection and fallback overview.
|