@quantumclaw/quantumclaw 2026.3.22
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 +4601 -0
- package/LICENSE +21 -0
- package/README.md +559 -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 +31 -0
- package/docs/.i18n/glossary.ja-JP.json +14 -0
- package/docs/.i18n/glossary.zh-CN.json +302 -0
- package/docs/.i18n/ja-JP.tm.jsonl +0 -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/pixel-lobster.svg +60 -0
- package/docs/assets/quantumclaw-logo-text-dark.png +0 -0
- package/docs/assets/quantumclaw-logo-text-dark.svg +418 -0
- package/docs/assets/quantumclaw-logo-text.png +0 -0
- package/docs/assets/quantumclaw-logo-text.svg +418 -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.svg +14 -0
- package/docs/assets/sponsors/convex.svg +16 -0
- package/docs/assets/sponsors/openai.svg +3 -0
- package/docs/assets/sponsors/vercel.svg +5 -0
- package/docs/auth-credential-semantics.md +53 -0
- package/docs/automation/auth-monitoring.md +44 -0
- package/docs/automation/cron-jobs.md +727 -0
- package/docs/automation/cron-vs-heartbeat.md +286 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/hooks.md +1056 -0
- package/docs/automation/poll.md +86 -0
- package/docs/automation/standing-orders.md +251 -0
- package/docs/automation/troubleshooting.md +122 -0
- package/docs/automation/webhook.md +217 -0
- package/docs/brave-search.md +93 -0
- package/docs/channels/bluebubbles.md +347 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +139 -0
- package/docs/channels/discord.md +1229 -0
- package/docs/channels/feishu.md +747 -0
- package/docs/channels/googlechat.md +261 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +379 -0
- package/docs/channels/imessage.md +367 -0
- package/docs/channels/index.md +47 -0
- package/docs/channels/irc.md +242 -0
- package/docs/channels/line.md +194 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +677 -0
- package/docs/channels/mattermost.md +427 -0
- package/docs/channels/msteams.md +780 -0
- package/docs/channels/nextcloud-talk.md +138 -0
- package/docs/channels/nostr.md +249 -0
- package/docs/channels/pairing.md +114 -0
- package/docs/channels/signal.md +329 -0
- package/docs/channels/slack.md +603 -0
- package/docs/channels/synology-chat.md +134 -0
- package/docs/channels/telegram.md +987 -0
- package/docs/channels/tlon.md +276 -0
- package/docs/channels/troubleshooting.md +118 -0
- package/docs/channels/twitch.md +379 -0
- package/docs/channels/whatsapp.md +460 -0
- package/docs/channels/zalo.md +243 -0
- package/docs/channels/zalouser.md +181 -0
- package/docs/ci.md +55 -0
- package/docs/cli/acp.md +288 -0
- package/docs/cli/agent.md +29 -0
- package/docs/cli/agents.md +123 -0
- package/docs/cli/approvals.md +50 -0
- package/docs/cli/backup.md +76 -0
- package/docs/cli/browser.md +106 -0
- package/docs/cli/channels.md +102 -0
- package/docs/cli/clawbot.md +21 -0
- package/docs/cli/completion.md +35 -0
- package/docs/cli/config.md +295 -0
- package/docs/cli/configure.md +36 -0
- package/docs/cli/cron.md +77 -0
- package/docs/cli/daemon.md +53 -0
- package/docs/cli/dashboard.md +22 -0
- package/docs/cli/devices.md +139 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +23 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +48 -0
- package/docs/cli/gateway.md +235 -0
- package/docs/cli/health.md +21 -0
- package/docs/cli/hooks.md +329 -0
- package/docs/cli/index.md +1150 -0
- package/docs/cli/logs.md +28 -0
- package/docs/cli/memory.md +66 -0
- package/docs/cli/message.md +278 -0
- package/docs/cli/models.md +81 -0
- package/docs/cli/node.md +127 -0
- package/docs/cli/nodes.md +75 -0
- package/docs/cli/onboard.md +157 -0
- package/docs/cli/pairing.md +32 -0
- package/docs/cli/plugins.md +210 -0
- package/docs/cli/qr.md +46 -0
- package/docs/cli/reset.md +20 -0
- package/docs/cli/sandbox.md +197 -0
- package/docs/cli/secrets.md +188 -0
- package/docs/cli/security.md +79 -0
- package/docs/cli/sessions.md +110 -0
- package/docs/cli/setup.md +29 -0
- package/docs/cli/skills.md +36 -0
- package/docs/cli/status.md +30 -0
- package/docs/cli/system.md +60 -0
- package/docs/cli/tui.md +30 -0
- package/docs/cli/uninstall.md +20 -0
- package/docs/cli/update.md +103 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +25 -0
- package/docs/concepts/agent-loop.md +148 -0
- package/docs/concepts/agent-workspace.md +236 -0
- package/docs/concepts/agent.md +122 -0
- package/docs/concepts/architecture.md +137 -0
- package/docs/concepts/compaction.md +123 -0
- package/docs/concepts/context-engine.md +268 -0
- package/docs/concepts/context.md +172 -0
- package/docs/concepts/delegate-architecture.md +296 -0
- package/docs/concepts/features.md +73 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory.md +108 -0
- package/docs/concepts/messages.md +154 -0
- package/docs/concepts/model-failover.md +152 -0
- package/docs/concepts/model-providers.md +607 -0
- package/docs/concepts/models.md +225 -0
- package/docs/concepts/multi-agent.md +552 -0
- package/docs/concepts/oauth.md +158 -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 +121 -0
- package/docs/concepts/session-tool.md +242 -0
- package/docs/concepts/session.md +310 -0
- package/docs/concepts/streaming.md +155 -0
- package/docs/concepts/system-prompt.md +132 -0
- package/docs/concepts/timezone.md +91 -0
- package/docs/concepts/typebox.md +291 -0
- package/docs/concepts/typing-indicators.md +68 -0
- package/docs/concepts/usage-tracking.md +35 -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 +2078 -0
- package/docs/gateway/authentication.md +179 -0
- package/docs/gateway/background-process.md +97 -0
- package/docs/gateway/bonjour.md +177 -0
- package/docs/gateway/bridge-protocol.md +91 -0
- package/docs/gateway/cli-backends.md +225 -0
- package/docs/gateway/configuration-examples.md +651 -0
- package/docs/gateway/configuration-reference.md +3123 -0
- package/docs/gateway/configuration.md +633 -0
- package/docs/gateway/discovery.md +123 -0
- package/docs/gateway/doctor.md +362 -0
- package/docs/gateway/gateway-lock.md +34 -0
- package/docs/gateway/health.md +44 -0
- package/docs/gateway/heartbeat.md +393 -0
- package/docs/gateway/index.md +261 -0
- package/docs/gateway/local-models.md +152 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +112 -0
- package/docs/gateway/network-model.md +22 -0
- package/docs/gateway/openai-http-api.md +132 -0
- package/docs/gateway/openresponses-http-api.md +295 -0
- package/docs/gateway/openshell.md +307 -0
- package/docs/gateway/pairing.md +99 -0
- package/docs/gateway/protocol.md +267 -0
- package/docs/gateway/remote-gateway-readme.md +158 -0
- package/docs/gateway/remote.md +153 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +134 -0
- package/docs/gateway/sandboxing.md +469 -0
- package/docs/gateway/secrets-plan-contract.md +116 -0
- package/docs/gateway/secrets.md +503 -0
- package/docs/gateway/security/index.md +1220 -0
- package/docs/gateway/tailscale.md +132 -0
- package/docs/gateway/tools-invoke-http-api.md +118 -0
- package/docs/gateway/troubleshooting.md +378 -0
- package/docs/gateway/trusted-proxy-auth.md +330 -0
- package/docs/help/debugging.md +168 -0
- package/docs/help/environment.md +163 -0
- package/docs/help/faq.md +2997 -0
- package/docs/help/index.md +28 -0
- package/docs/help/scripts.md +28 -0
- package/docs/help/testing.md +526 -0
- package/docs/help/troubleshooting.md +297 -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/development-channels.md +120 -0
- package/docs/install/digitalocean.md +129 -0
- package/docs/install/docker-vm-runtime.md +142 -0
- package/docs/install/docker.md +375 -0
- package/docs/install/exe-dev.md +126 -0
- package/docs/install/fly.md +501 -0
- package/docs/install/gcp.md +402 -0
- package/docs/install/hetzner.md +251 -0
- package/docs/install/index.md +183 -0
- package/docs/install/installer.md +415 -0
- package/docs/install/kubernetes.md +191 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating-matrix.md +346 -0
- package/docs/install/migrating.md +110 -0
- package/docs/install/nix.md +89 -0
- package/docs/install/node.md +138 -0
- package/docs/install/northflank.mdx +54 -0
- package/docs/install/oracle.md +156 -0
- package/docs/install/podman.md +133 -0
- package/docs/install/railway.mdx +100 -0
- package/docs/install/raspberry-pi.md +159 -0
- package/docs/install/render.mdx +169 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +128 -0
- package/docs/ja-JP/index.md +186 -0
- package/docs/ja-JP/start/getting-started.md +125 -0
- package/docs/ja-JP/start/wizard.md +77 -0
- package/docs/logging.md +352 -0
- package/docs/nav-tabs-underline.js +100 -0
- package/docs/network.md +54 -0
- package/docs/nodes/audio.md +187 -0
- package/docs/nodes/camera.md +162 -0
- package/docs/nodes/images.md +72 -0
- package/docs/nodes/index.md +393 -0
- package/docs/nodes/location-command.md +98 -0
- package/docs/nodes/media-understanding.md +394 -0
- package/docs/nodes/talk.md +92 -0
- package/docs/nodes/troubleshooting.md +114 -0
- package/docs/nodes/voicewake.md +66 -0
- package/docs/perplexity.md +174 -0
- package/docs/pi-dev.md +80 -0
- package/docs/pi.md +567 -0
- package/docs/platforms/android.md +168 -0
- package/docs/platforms/digitalocean.md +266 -0
- package/docs/platforms/index.md +54 -0
- package/docs/platforms/ios.md +220 -0
- package/docs/platforms/linux.md +94 -0
- package/docs/platforms/mac/bundled-gateway.md +73 -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 +104 -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 +33 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +43 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +226 -0
- package/docs/platforms/oracle.md +303 -0
- package/docs/platforms/raspberry-pi.md +412 -0
- package/docs/platforms/windows.md +241 -0
- package/docs/plugins/agent-tools.md +10 -0
- package/docs/plugins/architecture.md +1366 -0
- package/docs/plugins/building-extensions.md +10 -0
- package/docs/plugins/building-plugins.md +239 -0
- package/docs/plugins/bundles.md +181 -0
- package/docs/plugins/community.md +145 -0
- package/docs/plugins/manifest.md +241 -0
- package/docs/plugins/sdk-channel-plugins.md +370 -0
- package/docs/plugins/sdk-entrypoints.md +161 -0
- package/docs/plugins/sdk-migration.md +172 -0
- package/docs/plugins/sdk-overview.md +196 -0
- package/docs/plugins/sdk-provider-plugins.md +370 -0
- package/docs/plugins/sdk-runtime.md +345 -0
- package/docs/plugins/sdk-setup.md +331 -0
- package/docs/plugins/sdk-testing.md +263 -0
- package/docs/plugins/voice-call.md +380 -0
- package/docs/plugins/zalouser.md +77 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +259 -0
- package/docs/providers/bedrock.md +176 -0
- package/docs/providers/claude-max-api-proxy.md +154 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/github-copilot.md +72 -0
- package/docs/providers/glm.md +43 -0
- package/docs/providers/google.md +78 -0
- package/docs/providers/groq.md +96 -0
- package/docs/providers/huggingface.md +209 -0
- package/docs/providers/index.md +69 -0
- package/docs/providers/kilocode.md +74 -0
- package/docs/providers/litellm.md +154 -0
- package/docs/providers/minimax.md +224 -0
- package/docs/providers/mistral.md +54 -0
- package/docs/providers/models.md +45 -0
- package/docs/providers/modelstudio.md +66 -0
- package/docs/providers/moonshot.md +175 -0
- package/docs/providers/nvidia.md +55 -0
- package/docs/providers/ollama.md +352 -0
- package/docs/providers/openai.md +303 -0
- package/docs/providers/opencode-go.md +45 -0
- package/docs/providers/opencode.md +64 -0
- package/docs/providers/openrouter.md +37 -0
- package/docs/providers/perplexity-provider.md +62 -0
- package/docs/providers/qianfan.md +38 -0
- package/docs/providers/qwen.md +53 -0
- package/docs/providers/sglang.md +104 -0
- package/docs/providers/synthetic.md +99 -0
- package/docs/providers/together.md +66 -0
- package/docs/providers/venice.md +282 -0
- package/docs/providers/vercel-ai-gateway.md +60 -0
- package/docs/providers/vllm.md +92 -0
- package/docs/providers/volcengine.md +74 -0
- package/docs/providers/xai.md +60 -0
- package/docs/providers/xiaomi.md +86 -0
- package/docs/providers/zai.md +46 -0
- package/docs/reference/AGENTS.default.md +126 -0
- package/docs/reference/RELEASING.md +42 -0
- package/docs/reference/api-usage-costs.md +144 -0
- package/docs/reference/credits.md +30 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/memory-config.md +711 -0
- package/docs/reference/prompt-caching.md +185 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/secretref-credential-surface.md +140 -0
- package/docs/reference/secretref-user-supplied-credentials-matrix.json +563 -0
- package/docs/reference/session-management-compaction.md +324 -0
- package/docs/reference/templates/AGENTS.dev.md +83 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +11 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/HEARTBEAT.md +14 -0
- package/docs/reference/templates/IDENTITY.dev.md +47 -0
- package/docs/reference/templates/IDENTITY.md +29 -0
- package/docs/reference/templates/SOUL.dev.md +76 -0
- package/docs/reference/templates/SOUL.md +43 -0
- package/docs/reference/templates/TOOLS.dev.md +24 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +18 -0
- package/docs/reference/templates/USER.md +23 -0
- package/docs/reference/test.md +90 -0
- package/docs/reference/token-use.md +175 -0
- package/docs/reference/transcript-hygiene.md +151 -0
- package/docs/reference/wizard.md +235 -0
- package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
- package/docs/security/THREAT-MODEL-ATLAS.md +611 -0
- package/docs/security/formal-verification.md +167 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +66 -0
- package/docs/start/getting-started.md +116 -0
- package/docs/start/hubs.md +198 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding-overview.md +67 -0
- package/docs/start/onboarding.md +91 -0
- package/docs/start/openclaw.md +221 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +164 -0
- package/docs/start/showcase.md +418 -0
- package/docs/start/wizard-cli-automation.md +215 -0
- package/docs/start/wizard-cli-reference.md +299 -0
- package/docs/start/wizard.md +125 -0
- package/docs/style.css +37 -0
- package/docs/tools/acp-agents.md +623 -0
- package/docs/tools/agent-send.md +100 -0
- package/docs/tools/apply-patch.md +51 -0
- package/docs/tools/brave-search.md +93 -0
- package/docs/tools/browser-linux-troubleshooting.md +138 -0
- package/docs/tools/browser-login.md +73 -0
- package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +211 -0
- package/docs/tools/browser.md +731 -0
- package/docs/tools/btw.md +142 -0
- package/docs/tools/capability-cookbook.md +119 -0
- package/docs/tools/clawhub.md +298 -0
- package/docs/tools/creating-skills.md +117 -0
- package/docs/tools/diffs.md +386 -0
- package/docs/tools/elevated.md +114 -0
- package/docs/tools/exec-approvals.md +430 -0
- package/docs/tools/exec.md +207 -0
- package/docs/tools/firecrawl.md +140 -0
- package/docs/tools/index.md +137 -0
- package/docs/tools/llm-task.md +119 -0
- package/docs/tools/lobster.md +340 -0
- package/docs/tools/loop-detection.md +100 -0
- package/docs/tools/multi-agent-sandbox-tools.md +364 -0
- package/docs/tools/pdf.md +156 -0
- package/docs/tools/perplexity-search.md +174 -0
- package/docs/tools/plugin.md +255 -0
- package/docs/tools/reactions.md +64 -0
- package/docs/tools/skills-config.md +86 -0
- package/docs/tools/skills.md +309 -0
- package/docs/tools/slash-commands.md +294 -0
- package/docs/tools/subagents.md +295 -0
- package/docs/tools/tavily.md +125 -0
- package/docs/tools/thinking.md +96 -0
- package/docs/tools/tts.md +406 -0
- package/docs/tools/web.md +516 -0
- package/docs/tts.md +406 -0
- package/docs/vps.md +112 -0
- package/docs/web/control-ui.md +275 -0
- package/docs/web/dashboard.md +54 -0
- package/docs/web/index.md +120 -0
- package/docs/web/tui.md +170 -0
- package/docs/web/webchat.md +61 -0
- package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
- package/docs/whatsapp-openclaw.jpg +0 -0
- package/docs/zh-CN/AGENTS.md +61 -0
- package/docs/zh-CN/automation/auth-monitoring.md +47 -0
- package/docs/zh-CN/automation/cron-jobs.md +435 -0
- package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
- package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
- package/docs/zh-CN/automation/hooks.md +1051 -0
- package/docs/zh-CN/automation/poll.md +76 -0
- package/docs/zh-CN/automation/troubleshooting.md +8 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/brave-search.md +60 -0
- package/docs/zh-CN/channels/bluebubbles.md +354 -0
- package/docs/zh-CN/channels/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/channel-routing.md +117 -0
- package/docs/zh-CN/channels/discord.md +468 -0
- package/docs/zh-CN/channels/feishu.md +728 -0
- package/docs/zh-CN/channels/googlechat.md +257 -0
- package/docs/zh-CN/channels/grammy.md +38 -0
- package/docs/zh-CN/channels/group-messages.md +91 -0
- package/docs/zh-CN/channels/groups.md +379 -0
- package/docs/zh-CN/channels/imessage.md +302 -0
- package/docs/zh-CN/channels/index.md +53 -0
- package/docs/zh-CN/channels/line.md +180 -0
- package/docs/zh-CN/channels/location.md +63 -0
- package/docs/zh-CN/channels/matrix.md +221 -0
- package/docs/zh-CN/channels/mattermost.md +144 -0
- package/docs/zh-CN/channels/msteams.md +775 -0
- package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
- package/docs/zh-CN/channels/nostr.md +249 -0
- package/docs/zh-CN/channels/pairing.md +89 -0
- package/docs/zh-CN/channels/signal.md +209 -0
- package/docs/zh-CN/channels/slack.md +531 -0
- package/docs/zh-CN/channels/synology-chat.md +138 -0
- package/docs/zh-CN/channels/telegram.md +751 -0
- package/docs/zh-CN/channels/tlon.md +136 -0
- package/docs/zh-CN/channels/troubleshooting.md +36 -0
- package/docs/zh-CN/channels/twitch.md +385 -0
- package/docs/zh-CN/channels/whatsapp.md +411 -0
- package/docs/zh-CN/channels/zalo.md +196 -0
- package/docs/zh-CN/channels/zalouser.md +147 -0
- package/docs/zh-CN/cli/acp.md +173 -0
- package/docs/zh-CN/cli/agent.md +30 -0
- package/docs/zh-CN/cli/agents.md +82 -0
- package/docs/zh-CN/cli/approvals.md +57 -0
- package/docs/zh-CN/cli/browser.md +114 -0
- package/docs/zh-CN/cli/channels.md +86 -0
- package/docs/zh-CN/cli/config.md +57 -0
- package/docs/zh-CN/cli/configure.md +38 -0
- package/docs/zh-CN/cli/cron.md +43 -0
- package/docs/zh-CN/cli/dashboard.md +23 -0
- package/docs/zh-CN/cli/devices.md +74 -0
- package/docs/zh-CN/cli/directory.md +70 -0
- package/docs/zh-CN/cli/dns.md +30 -0
- package/docs/zh-CN/cli/docs.md +22 -0
- package/docs/zh-CN/cli/doctor.md +48 -0
- package/docs/zh-CN/cli/gateway.md +206 -0
- package/docs/zh-CN/cli/health.md +28 -0
- package/docs/zh-CN/cli/hooks.md +298 -0
- package/docs/zh-CN/cli/index.md +1143 -0
- package/docs/zh-CN/cli/logs.md +31 -0
- package/docs/zh-CN/cli/memory.md +52 -0
- package/docs/zh-CN/cli/message.md +246 -0
- package/docs/zh-CN/cli/models.md +85 -0
- package/docs/zh-CN/cli/node.md +115 -0
- package/docs/zh-CN/cli/nodes.md +80 -0
- package/docs/zh-CN/cli/onboard.md +164 -0
- package/docs/zh-CN/cli/pairing.md +28 -0
- package/docs/zh-CN/cli/plugins.md +66 -0
- package/docs/zh-CN/cli/reset.md +24 -0
- package/docs/zh-CN/cli/sandbox.md +158 -0
- package/docs/zh-CN/cli/security.md +33 -0
- package/docs/zh-CN/cli/sessions.md +23 -0
- package/docs/zh-CN/cli/setup.md +36 -0
- package/docs/zh-CN/cli/skills.md +33 -0
- package/docs/zh-CN/cli/status.md +33 -0
- package/docs/zh-CN/cli/system.md +63 -0
- package/docs/zh-CN/cli/tui.md +30 -0
- package/docs/zh-CN/cli/uninstall.md +24 -0
- package/docs/zh-CN/cli/update.md +101 -0
- package/docs/zh-CN/cli/voicecall.md +41 -0
- package/docs/zh-CN/cli/webhooks.md +32 -0
- package/docs/zh-CN/concepts/agent-loop.md +146 -0
- package/docs/zh-CN/concepts/agent-workspace.md +219 -0
- package/docs/zh-CN/concepts/agent.md +115 -0
- package/docs/zh-CN/concepts/architecture.md +123 -0
- package/docs/zh-CN/concepts/compaction.md +67 -0
- package/docs/zh-CN/concepts/context.md +168 -0
- package/docs/zh-CN/concepts/features.md +59 -0
- package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
- package/docs/zh-CN/concepts/memory.md +412 -0
- package/docs/zh-CN/concepts/messages.md +141 -0
- package/docs/zh-CN/concepts/model-failover.md +145 -0
- package/docs/zh-CN/concepts/model-providers.md +606 -0
- package/docs/zh-CN/concepts/models.md +225 -0
- package/docs/zh-CN/concepts/multi-agent.md +372 -0
- package/docs/zh-CN/concepts/oauth.md +164 -0
- package/docs/zh-CN/concepts/presence.md +99 -0
- package/docs/zh-CN/concepts/queue.md +94 -0
- package/docs/zh-CN/concepts/retry.md +76 -0
- package/docs/zh-CN/concepts/session-pruning.md +129 -0
- package/docs/zh-CN/concepts/session-tool.md +200 -0
- package/docs/zh-CN/concepts/session.md +166 -0
- package/docs/zh-CN/concepts/streaming.md +133 -0
- package/docs/zh-CN/concepts/system-prompt.md +101 -0
- package/docs/zh-CN/concepts/timezone.md +96 -0
- package/docs/zh-CN/concepts/typebox.md +284 -0
- package/docs/zh-CN/concepts/typing-indicators.md +74 -0
- package/docs/zh-CN/concepts/usage-tracking.md +42 -0
- package/docs/zh-CN/date-time.md +129 -0
- package/docs/zh-CN/debug/node-issue.md +90 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/gateway/authentication.md +184 -0
- package/docs/zh-CN/gateway/background-process.md +100 -0
- package/docs/zh-CN/gateway/bonjour.md +174 -0
- package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
- package/docs/zh-CN/gateway/cli-backends.md +213 -0
- package/docs/zh-CN/gateway/configuration-examples.md +587 -0
- package/docs/zh-CN/gateway/configuration-reference.md +3103 -0
- package/docs/zh-CN/gateway/configuration.md +640 -0
- package/docs/zh-CN/gateway/discovery.md +123 -0
- package/docs/zh-CN/gateway/doctor.md +238 -0
- package/docs/zh-CN/gateway/gateway-lock.md +41 -0
- package/docs/zh-CN/gateway/health.md +42 -0
- package/docs/zh-CN/gateway/heartbeat.md +274 -0
- package/docs/zh-CN/gateway/index.md +335 -0
- package/docs/zh-CN/gateway/local-models.md +159 -0
- package/docs/zh-CN/gateway/logging.md +114 -0
- package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
- package/docs/zh-CN/gateway/network-model.md +23 -0
- package/docs/zh-CN/gateway/openai-http-api.md +125 -0
- package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
- package/docs/zh-CN/gateway/pairing.md +99 -0
- package/docs/zh-CN/gateway/protocol.md +220 -0
- package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
- package/docs/zh-CN/gateway/remote.md +133 -0
- package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
- package/docs/zh-CN/gateway/sandboxing.md +188 -0
- package/docs/zh-CN/gateway/security/index.md +777 -0
- package/docs/zh-CN/gateway/tailscale.md +124 -0
- package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
- package/docs/zh-CN/gateway/troubleshooting.md +771 -0
- package/docs/zh-CN/help/debugging.md +160 -0
- package/docs/zh-CN/help/environment.md +88 -0
- package/docs/zh-CN/help/faq.md +2640 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/scripts.md +35 -0
- package/docs/zh-CN/help/testing.md +375 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/index.md +186 -0
- package/docs/zh-CN/install/ansible.md +215 -0
- package/docs/zh-CN/install/bun.md +65 -0
- package/docs/zh-CN/install/development-channels.md +81 -0
- package/docs/zh-CN/install/docker.md +532 -0
- package/docs/zh-CN/install/exe-dev.md +133 -0
- package/docs/zh-CN/install/fly.md +490 -0
- package/docs/zh-CN/install/gcp.md +510 -0
- package/docs/zh-CN/install/hetzner.md +337 -0
- package/docs/zh-CN/install/index.md +235 -0
- package/docs/zh-CN/install/installer.md +422 -0
- package/docs/zh-CN/install/macos-vm.md +288 -0
- package/docs/zh-CN/install/migrating.md +199 -0
- package/docs/zh-CN/install/nix.md +99 -0
- package/docs/zh-CN/install/node.md +8 -0
- package/docs/zh-CN/install/northflank.mdx +60 -0
- package/docs/zh-CN/install/railway.mdx +106 -0
- package/docs/zh-CN/install/render.mdx +169 -0
- package/docs/zh-CN/install/uninstall.md +135 -0
- package/docs/zh-CN/install/updating.md +233 -0
- package/docs/zh-CN/logging.md +329 -0
- package/docs/zh-CN/network.md +59 -0
- package/docs/zh-CN/nodes/audio.md +120 -0
- package/docs/zh-CN/nodes/camera.md +162 -0
- package/docs/zh-CN/nodes/images.md +79 -0
- package/docs/zh-CN/nodes/index.md +348 -0
- package/docs/zh-CN/nodes/location-command.md +120 -0
- package/docs/zh-CN/nodes/media-understanding.md +380 -0
- package/docs/zh-CN/nodes/talk.md +97 -0
- package/docs/zh-CN/nodes/troubleshooting.md +8 -0
- package/docs/zh-CN/nodes/voicewake.md +72 -0
- package/docs/zh-CN/perplexity.md +102 -0
- package/docs/zh-CN/pi-dev.md +77 -0
- package/docs/zh-CN/pi.md +619 -0
- package/docs/zh-CN/platforms/android.md +155 -0
- package/docs/zh-CN/platforms/digitalocean.md +273 -0
- package/docs/zh-CN/platforms/index.md +60 -0
- package/docs/zh-CN/platforms/ios.md +114 -0
- package/docs/zh-CN/platforms/linux.md +100 -0
- package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
- package/docs/zh-CN/platforms/mac/canvas.md +128 -0
- package/docs/zh-CN/platforms/mac/child-process.md +73 -0
- package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
- package/docs/zh-CN/platforms/mac/health.md +41 -0
- package/docs/zh-CN/platforms/mac/icon.md +38 -0
- package/docs/zh-CN/platforms/mac/logging.md +64 -0
- package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
- package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
- package/docs/zh-CN/platforms/mac/permissions.md +46 -0
- package/docs/zh-CN/platforms/mac/remote.md +90 -0
- package/docs/zh-CN/platforms/mac/signing.md +54 -0
- package/docs/zh-CN/platforms/mac/skills.md +40 -0
- package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
- package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
- package/docs/zh-CN/platforms/mac/webchat.md +43 -0
- package/docs/zh-CN/platforms/mac/xpc.md +68 -0
- package/docs/zh-CN/platforms/macos.md +193 -0
- package/docs/zh-CN/platforms/oracle.md +310 -0
- package/docs/zh-CN/platforms/raspberry-pi.md +416 -0
- package/docs/zh-CN/platforms/windows.md +247 -0
- package/docs/zh-CN/plugins/agent-tools.md +99 -0
- package/docs/zh-CN/plugins/manifest.md +68 -0
- package/docs/zh-CN/plugins/voice-call.md +250 -0
- package/docs/zh-CN/plugins/zalouser.md +88 -0
- package/docs/zh-CN/prose.md +141 -0
- package/docs/zh-CN/providers/anthropic.md +265 -0
- package/docs/zh-CN/providers/bedrock.md +170 -0
- package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
- package/docs/zh-CN/providers/cloudflare-ai-gateway.md +78 -0
- package/docs/zh-CN/providers/deepgram.md +97 -0
- package/docs/zh-CN/providers/github-copilot.md +67 -0
- package/docs/zh-CN/providers/glm.md +50 -0
- package/docs/zh-CN/providers/huggingface.md +216 -0
- package/docs/zh-CN/providers/index.md +69 -0
- package/docs/zh-CN/providers/kilocode.md +80 -0
- package/docs/zh-CN/providers/litellm.md +160 -0
- package/docs/zh-CN/providers/minimax.md +222 -0
- package/docs/zh-CN/providers/mistral.md +61 -0
- package/docs/zh-CN/providers/models.md +51 -0
- package/docs/zh-CN/providers/moonshot.md +182 -0
- package/docs/zh-CN/providers/nvidia.md +62 -0
- package/docs/zh-CN/providers/ollama.md +359 -0
- package/docs/zh-CN/providers/openai.md +308 -0
- package/docs/zh-CN/providers/opencode-go.md +52 -0
- package/docs/zh-CN/providers/opencode.md +71 -0
- package/docs/zh-CN/providers/openrouter.md +44 -0
- package/docs/zh-CN/providers/qianfan.md +45 -0
- package/docs/zh-CN/providers/qwen.md +55 -0
- package/docs/zh-CN/providers/sglang.md +111 -0
- package/docs/zh-CN/providers/synthetic.md +106 -0
- package/docs/zh-CN/providers/together.md +72 -0
- package/docs/zh-CN/providers/venice.md +289 -0
- package/docs/zh-CN/providers/vercel-ai-gateway.md +66 -0
- package/docs/zh-CN/providers/xiaomi.md +93 -0
- package/docs/zh-CN/providers/zai.md +53 -0
- package/docs/zh-CN/reference/AGENTS.default.md +131 -0
- package/docs/zh-CN/reference/RELEASING.md +48 -0
- package/docs/zh-CN/reference/api-usage-costs.md +141 -0
- package/docs/zh-CN/reference/credits.md +34 -0
- package/docs/zh-CN/reference/device-models.md +54 -0
- package/docs/zh-CN/reference/rpc.md +48 -0
- package/docs/zh-CN/reference/session-management-compaction.md +287 -0
- package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
- package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
- package/docs/zh-CN/reference/templates/BOOT.md +17 -0
- package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
- package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
- package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
- package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
- package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
- package/docs/zh-CN/reference/templates/SOUL.md +49 -0
- package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
- package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
- package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
- package/docs/zh-CN/reference/templates/USER.md +30 -0
- package/docs/zh-CN/reference/test.md +57 -0
- package/docs/zh-CN/reference/token-use.md +119 -0
- package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
- package/docs/zh-CN/reference/wizard.md +242 -0
- package/docs/zh-CN/security/formal-verification.md +171 -0
- package/docs/zh-CN/start/bootstrapping.md +9 -0
- package/docs/zh-CN/start/docs-directory.md +70 -0
- package/docs/zh-CN/start/getting-started.md +143 -0
- package/docs/zh-CN/start/hubs.md +194 -0
- package/docs/zh-CN/start/lore.md +226 -0
- package/docs/zh-CN/start/onboarding-overview.md +58 -0
- package/docs/zh-CN/start/onboarding.md +105 -0
- package/docs/zh-CN/start/openclaw.md +248 -0
- package/docs/zh-CN/start/quickstart.md +88 -0
- package/docs/zh-CN/start/setup.md +153 -0
- package/docs/zh-CN/start/showcase.md +423 -0
- package/docs/zh-CN/start/wizard-cli-automation.md +222 -0
- package/docs/zh-CN/start/wizard-cli-reference.md +306 -0
- package/docs/zh-CN/start/wizard.md +132 -0
- package/docs/zh-CN/tools/agent-send.md +59 -0
- package/docs/zh-CN/tools/apply-patch.md +57 -0
- package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
- package/docs/zh-CN/tools/browser-login.md +75 -0
- package/docs/zh-CN/tools/browser.md +553 -0
- package/docs/zh-CN/tools/chrome-extension.md +183 -0
- package/docs/zh-CN/tools/clawhub.md +209 -0
- package/docs/zh-CN/tools/creating-skills.md +61 -0
- package/docs/zh-CN/tools/elevated.md +64 -0
- package/docs/zh-CN/tools/exec-approvals.md +234 -0
- package/docs/zh-CN/tools/exec.md +169 -0
- package/docs/zh-CN/tools/firecrawl.md +68 -0
- package/docs/zh-CN/tools/index.md +515 -0
- package/docs/zh-CN/tools/llm-task.md +117 -0
- package/docs/zh-CN/tools/lobster.md +349 -0
- package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
- package/docs/zh-CN/tools/plugin.md +1612 -0
- package/docs/zh-CN/tools/reactions.md +29 -0
- package/docs/zh-CN/tools/skills-config.md +78 -0
- package/docs/zh-CN/tools/skills.md +279 -0
- package/docs/zh-CN/tools/slash-commands.md +205 -0
- package/docs/zh-CN/tools/subagents.md +167 -0
- package/docs/zh-CN/tools/thinking.md +80 -0
- package/docs/zh-CN/tools/web.md +289 -0
- package/docs/zh-CN/tts.md +375 -0
- package/docs/zh-CN/vps.md +47 -0
- package/docs/zh-CN/web/control-ui.md +191 -0
- package/docs/zh-CN/web/dashboard.md +53 -0
- package/docs/zh-CN/web/index.md +118 -0
- package/docs/zh-CN/web/tui.md +166 -0
- package/docs/zh-CN/web/webchat.md +56 -0
- package/package.json +841 -0
- package/quantumclaw.mjs +135 -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 +198 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +295 -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 +865 -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-image-gen/SKILL.md +92 -0
- package/skills/openai-image-gen/scripts/gen.py +328 -0
- package/skills/openai-image-gen/scripts/test_gen.py +140 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +52 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -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 +115 -0
- package/skills/sherpa-onnx-tts/SKILL.md +103 -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/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +153 -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 +95 -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 +112 -0
- package/skills/xurl/SKILL.md +461 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when:
|
|
3
|
+
- 你想在 QuantumClaw 中使用 Anthropic 模型
|
|
4
|
+
- 你想使用 setup-token 而不是 API 密钥
|
|
5
|
+
summary: 在 QuantumClaw 中通过 API 密钥或 setup-token 使用 Anthropic Claude
|
|
6
|
+
title: Anthropic
|
|
7
|
+
x-i18n:
|
|
8
|
+
generated_at: "2026-03-16T06:25:19Z"
|
|
9
|
+
model: gpt-5.4
|
|
10
|
+
provider: openai
|
|
11
|
+
source_hash: b18eff35b652d8dc4b6d55e9051d35682511909b3168be868fa172038294d20b
|
|
12
|
+
source_path: providers/anthropic.md
|
|
13
|
+
workflow: 15
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Anthropic(Claude)
|
|
17
|
+
|
|
18
|
+
Anthropic 构建了 **Claude** 模型家族,并通过 API 提供访问。
|
|
19
|
+
在 QuantumClaw 中,你可以使用 API 密钥或 **setup-token** 进行身份验证。
|
|
20
|
+
|
|
21
|
+
## 选项 A:Anthropic API 密钥
|
|
22
|
+
|
|
23
|
+
**最适合:** 标准 API 访问和按使用量计费。
|
|
24
|
+
请在 Anthropic Console 中创建你的 API 密钥。
|
|
25
|
+
|
|
26
|
+
### CLI 设置
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
quantumclaw onboard
|
|
30
|
+
# choose: Anthropic API key
|
|
31
|
+
|
|
32
|
+
# or non-interactive
|
|
33
|
+
quantumclaw onboard --anthropic-api-key "$ANTHROPIC_API_KEY"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 配置片段
|
|
37
|
+
|
|
38
|
+
```json5
|
|
39
|
+
{
|
|
40
|
+
env: { ANTHROPIC_API_KEY: "sk-ant-..." },
|
|
41
|
+
agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Thinking 默认值(Claude 4.6)
|
|
46
|
+
|
|
47
|
+
- 当未设置显式 thinking 级别时,Anthropic Claude 4.6 模型在 QuantumClaw 中默认使用 `adaptive` thinking。
|
|
48
|
+
- 你可以按消息覆盖(`/think:<level>`),或在模型参数中覆盖:
|
|
49
|
+
`agents.defaults.models["anthropic/<model>"].params.thinking`。
|
|
50
|
+
- 相关 Anthropic 文档:
|
|
51
|
+
- [Adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking)
|
|
52
|
+
- [Extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
|
|
53
|
+
|
|
54
|
+
## 快速模式(Anthropic API)
|
|
55
|
+
|
|
56
|
+
QuantumClaw 的共享 `/fast` 开关也支持直接 Anthropic API 密钥流量。
|
|
57
|
+
|
|
58
|
+
- `/fast on` 映射到 `service_tier: "auto"`
|
|
59
|
+
- `/fast off` 映射到 `service_tier: "standard_only"`
|
|
60
|
+
- 配置默认值:
|
|
61
|
+
|
|
62
|
+
```json5
|
|
63
|
+
{
|
|
64
|
+
agents: {
|
|
65
|
+
defaults: {
|
|
66
|
+
models: {
|
|
67
|
+
"anthropic/claude-sonnet-4-5": {
|
|
68
|
+
params: { fastMode: true },
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
重要限制:
|
|
77
|
+
|
|
78
|
+
- 这**仅适用于 API 密钥**。Anthropic setup-token / OAuth 身份验证不会遵循 QuantumClaw 的快速模式层级注入。
|
|
79
|
+
- QuantumClaw 仅对直接发往 `api.anthropic.com` 的请求注入 Anthropic 服务层级。如果你通过代理或网关路由 `anthropic/*`,`/fast` 不会修改 `service_tier`。
|
|
80
|
+
- Anthropic 会在响应中的 `usage.service_tier` 下报告实际生效的层级。对于没有 Priority Tier 容量的账户,`service_tier: "auto"` 仍可能解析为 `standard`。
|
|
81
|
+
|
|
82
|
+
## Prompt 缓存(Anthropic API)
|
|
83
|
+
|
|
84
|
+
QuantumClaw 支持 Anthropic 的 prompt 缓存功能。这**仅适用于 API**;订阅身份验证不会遵循缓存设置。
|
|
85
|
+
|
|
86
|
+
### 配置
|
|
87
|
+
|
|
88
|
+
在你的模型配置中使用 `cacheRetention` 参数:
|
|
89
|
+
|
|
90
|
+
| 值 | 缓存时长 | 说明 |
|
|
91
|
+
| ------- | -------- | -------------------------- |
|
|
92
|
+
| `none` | 不缓存 | 禁用 prompt 缓存 |
|
|
93
|
+
| `short` | 5 分钟 | API 密钥身份验证的默认值 |
|
|
94
|
+
| `long` | 1 小时 | 扩展缓存(需要 beta 标志) |
|
|
95
|
+
|
|
96
|
+
```json5
|
|
97
|
+
{
|
|
98
|
+
agents: {
|
|
99
|
+
defaults: {
|
|
100
|
+
models: {
|
|
101
|
+
"anthropic/claude-opus-4-6": {
|
|
102
|
+
params: { cacheRetention: "long" },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 默认值
|
|
111
|
+
|
|
112
|
+
当使用 Anthropic API 密钥身份验证时,QuantumClaw 会自动对所有 Anthropic 模型应用 `cacheRetention: "short"`(5 分钟缓存)。你可以通过在配置中显式设置 `cacheRetention` 来覆盖此行为。
|
|
113
|
+
|
|
114
|
+
### 每个智能体的 cacheRetention 覆盖
|
|
115
|
+
|
|
116
|
+
将模型级参数用作基线,然后通过 `agents.list[].params` 覆盖特定智能体。
|
|
117
|
+
|
|
118
|
+
```json5
|
|
119
|
+
{
|
|
120
|
+
agents: {
|
|
121
|
+
defaults: {
|
|
122
|
+
model: { primary: "anthropic/claude-opus-4-6" },
|
|
123
|
+
models: {
|
|
124
|
+
"anthropic/claude-opus-4-6": {
|
|
125
|
+
params: { cacheRetention: "long" }, // 大多数智能体的基线
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
list: [
|
|
130
|
+
{ id: "research", default: true },
|
|
131
|
+
{ id: "alerts", params: { cacheRetention: "none" } }, // 仅对该智能体覆盖
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
与缓存相关参数的配置合并顺序:
|
|
138
|
+
|
|
139
|
+
1. `agents.defaults.models["provider/model"].params`
|
|
140
|
+
2. `agents.list[].params`(匹配 `id`,按键覆盖)
|
|
141
|
+
|
|
142
|
+
这使得一个智能体可以保留长生命周期缓存,而同一模型上的另一个智能体可以禁用缓存,以避免在突发/低复用流量上产生写入成本。
|
|
143
|
+
|
|
144
|
+
### Bedrock Claude 说明
|
|
145
|
+
|
|
146
|
+
- 当已配置时,Bedrock 上的 Anthropic Claude 模型(`amazon-bedrock/*anthropic.claude*`)接受透传的 `cacheRetention`。
|
|
147
|
+
- 非 Anthropic 的 Bedrock 模型会在运行时被强制设置为 `cacheRetention: "none"`。
|
|
148
|
+
- 当未设置显式值时,Anthropic API 密钥的智能默认值也会为 Bedrock 上的 Claude 模型引用填入 `cacheRetention: "short"`。
|
|
149
|
+
|
|
150
|
+
### 旧版参数
|
|
151
|
+
|
|
152
|
+
旧的 `cacheControlTtl` 参数仍受支持,以保持向后兼容:
|
|
153
|
+
|
|
154
|
+
- `"5m"` 映射为 `short`
|
|
155
|
+
- `"1h"` 映射为 `long`
|
|
156
|
+
|
|
157
|
+
我们建议迁移到新的 `cacheRetention` 参数。
|
|
158
|
+
|
|
159
|
+
QuantumClaw 会在 Anthropic API 请求中包含 `extended-cache-ttl-2025-04-11` beta 标志;
|
|
160
|
+
如果你覆盖了提供商请求头,请保留它(参见 [/gateway/configuration](/gateway/configuration))。
|
|
161
|
+
|
|
162
|
+
## 1M 上下文窗口(Anthropic beta)
|
|
163
|
+
|
|
164
|
+
Anthropic 的 1M 上下文窗口受 beta 门控。在 QuantumClaw 中,可通过为受支持的 Opus/Sonnet 模型
|
|
165
|
+
设置 `params.context1m: true` 按模型启用。
|
|
166
|
+
|
|
167
|
+
```json5
|
|
168
|
+
{
|
|
169
|
+
agents: {
|
|
170
|
+
defaults: {
|
|
171
|
+
models: {
|
|
172
|
+
"anthropic/claude-opus-4-6": {
|
|
173
|
+
params: { context1m: true },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
QuantumClaw 会将其映射为 Anthropic 请求上的 `anthropic-beta: context-1m-2025-08-07`。
|
|
182
|
+
|
|
183
|
+
仅当该模型的 `params.context1m` 被显式设置为 `true` 时,
|
|
184
|
+
此功能才会激活。
|
|
185
|
+
|
|
186
|
+
要求:Anthropic 必须允许该凭证使用长上下文
|
|
187
|
+
(通常是 API 密钥计费,或启用了 Extra Usage 的订阅账户)。
|
|
188
|
+
否则 Anthropic 会返回:
|
|
189
|
+
`HTTP 429: rate_limit_error: Extra usage is required for long context requests`。
|
|
190
|
+
|
|
191
|
+
注意:Anthropic 当前在使用
|
|
192
|
+
OAuth/订阅令牌(`sk-ant-oat-*`)时会拒绝 `context-1m-*` beta 请求。QuantumClaw 会自动跳过
|
|
193
|
+
OAuth 身份验证的 `context1m` beta 请求头,并保留所需的 OAuth beta 标志。
|
|
194
|
+
|
|
195
|
+
## 选项 B:Claude setup-token
|
|
196
|
+
|
|
197
|
+
**最适合:** 使用你的 Claude 订阅。
|
|
198
|
+
|
|
199
|
+
### 如何获取 setup-token
|
|
200
|
+
|
|
201
|
+
setup-token 由 **Claude Code CLI** 创建,而不是在 Anthropic Console 中创建。你可以在**任何机器**上运行:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
claude setup-token
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
将该令牌粘贴到 QuantumClaw 中(向导:**Anthropic token(粘贴 setup-token)**),或在 Gateway 网关主机上运行:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
quantumclaw models auth setup-token --provider anthropic
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
如果你是在另一台机器上生成该令牌,请粘贴它:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
quantumclaw models auth paste-token --provider anthropic
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### CLI 设置(setup-token)
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
# Paste a setup-token during setup
|
|
223
|
+
quantumclaw onboard --auth-choice setup-token
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### 配置片段(setup-token)
|
|
227
|
+
|
|
228
|
+
```json5
|
|
229
|
+
{
|
|
230
|
+
agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## 说明
|
|
235
|
+
|
|
236
|
+
- 使用 `claude setup-token` 生成 setup-token 并粘贴它,或者在 Gateway 网关主机上运行 `quantumclaw models auth setup-token`。
|
|
237
|
+
- 如果你在 Claude 订阅上看到 “OAuth token refresh failed …”,请使用 setup-token 重新进行身份验证。请参见 [/gateway/troubleshooting#oauth-token-refresh-failed-anthropic-claude-subscription](/gateway/troubleshooting#oauth-token-refresh-failed-anthropic-claude-subscription)。
|
|
238
|
+
- 身份验证详情和复用规则见 [/concepts/oauth](/concepts/oauth)。
|
|
239
|
+
|
|
240
|
+
## 故障排除
|
|
241
|
+
|
|
242
|
+
**401 错误 / 令牌突然无效**
|
|
243
|
+
|
|
244
|
+
- Claude 订阅身份验证可能会过期或被撤销。请重新运行 `claude setup-token`,
|
|
245
|
+
并将其粘贴到 **Gateway 网关主机** 上。
|
|
246
|
+
- 如果 Claude CLI 登录位于另一台机器上,请在 Gateway 网关主机上使用
|
|
247
|
+
`quantumclaw models auth paste-token --provider anthropic`。
|
|
248
|
+
|
|
249
|
+
**No API key found for provider "anthropic"**
|
|
250
|
+
|
|
251
|
+
- 身份验证是**按智能体**区分的。新智能体不会继承主智能体的密钥。
|
|
252
|
+
- 请为该智能体重新运行新手引导,或在
|
|
253
|
+
Gateway 网关主机上粘贴 setup-token / API 密钥,然后使用 `quantumclaw models status` 验证。
|
|
254
|
+
|
|
255
|
+
**No credentials found for profile `anthropic:default`**
|
|
256
|
+
|
|
257
|
+
- 运行 `quantumclaw models status` 查看当前活动的 auth profile。
|
|
258
|
+
- 重新运行新手引导,或为该配置档案粘贴 setup-token / API 密钥。
|
|
259
|
+
|
|
260
|
+
**No available auth profile (all in cooldown/unavailable)**
|
|
261
|
+
|
|
262
|
+
- 检查 `quantumclaw models status --json` 中的 `auth.unusableProfiles`。
|
|
263
|
+
- 添加另一个 Anthropic 配置档案,或等待冷却结束。
|
|
264
|
+
|
|
265
|
+
更多信息:[/gateway/troubleshooting](/gateway/troubleshooting) 和 [/help/faq](/help/faq)。
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when:
|
|
3
|
+
- 你想在 QuantumClaw 中使用 Amazon Bedrock 模型
|
|
4
|
+
- 你需要为模型调用配置 AWS 凭证/区域
|
|
5
|
+
summary: 在 QuantumClaw 中使用 Amazon Bedrock(Converse API)模型
|
|
6
|
+
title: Amazon Bedrock
|
|
7
|
+
x-i18n:
|
|
8
|
+
generated_at: "2026-02-03T10:04:01Z"
|
|
9
|
+
model: claude-opus-4-5
|
|
10
|
+
provider: pi
|
|
11
|
+
source_hash: 318f1048451a1910b70522e2f7f9dfc87084de26d9e3938a29d372eed32244a8
|
|
12
|
+
source_path: providers/bedrock.md
|
|
13
|
+
workflow: 15
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Amazon Bedrock
|
|
17
|
+
|
|
18
|
+
QuantumClaw 可以通过 pi‑ai 的 **Bedrock Converse** 流式提供商使用 **Amazon Bedrock** 模型。Bedrock 认证使用 **AWS SDK 默认凭证链**,而非 API 密钥。
|
|
19
|
+
|
|
20
|
+
## pi‑ai 支持的功能
|
|
21
|
+
|
|
22
|
+
- 提供商:`amazon-bedrock`
|
|
23
|
+
- API:`bedrock-converse-stream`
|
|
24
|
+
- 认证:AWS 凭证(环境变量、共享配置或实例角色)
|
|
25
|
+
- 区域:`AWS_REGION` 或 `AWS_DEFAULT_REGION`(默认:`us-east-1`)
|
|
26
|
+
|
|
27
|
+
## 自动模型发现
|
|
28
|
+
|
|
29
|
+
如果检测到 AWS 凭证,QuantumClaw 可以自动发现支持**流式传输**和**文本输出**的 Bedrock 模型。发现功能使用 `bedrock:ListFoundationModels`,并会被缓存(默认:1 小时)。
|
|
30
|
+
|
|
31
|
+
配置选项位于 `models.bedrockDiscovery` 下:
|
|
32
|
+
|
|
33
|
+
```json5
|
|
34
|
+
{
|
|
35
|
+
models: {
|
|
36
|
+
bedrockDiscovery: {
|
|
37
|
+
enabled: true,
|
|
38
|
+
region: "us-east-1",
|
|
39
|
+
providerFilter: ["anthropic", "amazon"],
|
|
40
|
+
refreshInterval: 3600,
|
|
41
|
+
defaultContextWindow: 32000,
|
|
42
|
+
defaultMaxTokens: 4096,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
注意事项:
|
|
49
|
+
|
|
50
|
+
- `enabled` 在存在 AWS 凭证时默认为 `true`。
|
|
51
|
+
- `region` 默认为 `AWS_REGION` 或 `AWS_DEFAULT_REGION`,然后是 `us-east-1`。
|
|
52
|
+
- `providerFilter` 匹配 Bedrock 提供商名称(例如 `anthropic`)。
|
|
53
|
+
- `refreshInterval` 单位为秒;设置为 `0` 可禁用缓存。
|
|
54
|
+
- `defaultContextWindow`(默认:`32000`)和 `defaultMaxTokens`(默认:`4096`)用于已发现的模型(如果你知道模型限制,可以覆盖这些值)。
|
|
55
|
+
|
|
56
|
+
## 设置(手动)
|
|
57
|
+
|
|
58
|
+
1. 确保 AWS 凭证在 **Gateway 网关主机**上可用:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
export AWS_ACCESS_KEY_ID="AKIA..."
|
|
62
|
+
export AWS_SECRET_ACCESS_KEY="..."
|
|
63
|
+
export AWS_REGION="us-east-1"
|
|
64
|
+
# 可选:
|
|
65
|
+
export AWS_SESSION_TOKEN="..."
|
|
66
|
+
export AWS_PROFILE="your-profile"
|
|
67
|
+
# 可选(Bedrock API 密钥/Bearer 令牌):
|
|
68
|
+
export AWS_BEARER_TOKEN_BEDROCK="..."
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
2. 在配置中添加 Bedrock 提供商和模型(无需 `apiKey`):
|
|
72
|
+
|
|
73
|
+
```json5
|
|
74
|
+
{
|
|
75
|
+
models: {
|
|
76
|
+
providers: {
|
|
77
|
+
"amazon-bedrock": {
|
|
78
|
+
baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
79
|
+
api: "bedrock-converse-stream",
|
|
80
|
+
auth: "aws-sdk",
|
|
81
|
+
models: [
|
|
82
|
+
{
|
|
83
|
+
id: "anthropic.claude-opus-4-5-20251101-v1:0",
|
|
84
|
+
name: "Claude Opus 4.5 (Bedrock)",
|
|
85
|
+
reasoning: true,
|
|
86
|
+
input: ["text", "image"],
|
|
87
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
88
|
+
contextWindow: 200000,
|
|
89
|
+
maxTokens: 8192,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
agents: {
|
|
96
|
+
defaults: {
|
|
97
|
+
model: { primary: "amazon-bedrock/anthropic.claude-opus-4-5-20251101-v1:0" },
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## EC2 实例角色
|
|
104
|
+
|
|
105
|
+
当在附加了 IAM 角色的 EC2 实例上运行 QuantumClaw 时,AWS SDK 会自动使用实例元数据服务(IMDS)进行认证。但是,QuantumClaw 的凭证检测目前只检查环境变量,不检查 IMDS 凭证。
|
|
106
|
+
|
|
107
|
+
**解决方法:** 设置 `AWS_PROFILE=default` 以表明 AWS 凭证可用。实际认证仍然通过 IMDS 使用实例角色。
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# 添加到 ~/.bashrc 或你的 shell 配置文件
|
|
111
|
+
export AWS_PROFILE=default
|
|
112
|
+
export AWS_REGION=us-east-1
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
EC2 实例角色**所需的 IAM 权限**:
|
|
116
|
+
|
|
117
|
+
- `bedrock:InvokeModel`
|
|
118
|
+
- `bedrock:InvokeModelWithResponseStream`
|
|
119
|
+
- `bedrock:ListFoundationModels`(用于自动发现)
|
|
120
|
+
|
|
121
|
+
或者附加托管策略 `AmazonBedrockFullAccess`。
|
|
122
|
+
|
|
123
|
+
**快速设置:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# 1. 创建 IAM 角色和实例配置文件
|
|
127
|
+
aws iam create-role --role-name EC2-Bedrock-Access \
|
|
128
|
+
--assume-role-policy-document '{
|
|
129
|
+
"Version": "2012-10-17",
|
|
130
|
+
"Statement": [{
|
|
131
|
+
"Effect": "Allow",
|
|
132
|
+
"Principal": {"Service": "ec2.amazonaws.com"},
|
|
133
|
+
"Action": "sts:AssumeRole"
|
|
134
|
+
}]
|
|
135
|
+
}'
|
|
136
|
+
|
|
137
|
+
aws iam attach-role-policy --role-name EC2-Bedrock-Access \
|
|
138
|
+
--policy-arn arn:aws:iam::aws:policy/AmazonBedrockFullAccess
|
|
139
|
+
|
|
140
|
+
aws iam create-instance-profile --instance-profile-name EC2-Bedrock-Access
|
|
141
|
+
aws iam add-role-to-instance-profile \
|
|
142
|
+
--instance-profile-name EC2-Bedrock-Access \
|
|
143
|
+
--role-name EC2-Bedrock-Access
|
|
144
|
+
|
|
145
|
+
# 2. 附加到你的 EC2 实例
|
|
146
|
+
aws ec2 associate-iam-instance-profile \
|
|
147
|
+
--instance-id i-xxxxx \
|
|
148
|
+
--iam-instance-profile Name=EC2-Bedrock-Access
|
|
149
|
+
|
|
150
|
+
# 3. 在 EC2 实例上启用发现功能
|
|
151
|
+
quantumclaw config set models.bedrockDiscovery.enabled true
|
|
152
|
+
quantumclaw config set models.bedrockDiscovery.region us-east-1
|
|
153
|
+
|
|
154
|
+
# 4. 设置解决方法所需的环境变量
|
|
155
|
+
echo 'export AWS_PROFILE=default' >> ~/.bashrc
|
|
156
|
+
echo 'export AWS_REGION=us-east-1' >> ~/.bashrc
|
|
157
|
+
source ~/.bashrc
|
|
158
|
+
|
|
159
|
+
# 5. 验证模型已被发现
|
|
160
|
+
quantumclaw models list
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## 注意事项
|
|
164
|
+
|
|
165
|
+
- Bedrock 需要在你的 AWS 账户/区域中启用**模型访问**。
|
|
166
|
+
- 自动发现需要 `bedrock:ListFoundationModels` 权限。
|
|
167
|
+
- 如果你使用配置文件,请在 Gateway 网关主机上设置 `AWS_PROFILE`。
|
|
168
|
+
- QuantumClaw 按以下顺序获取凭证来源:`AWS_BEARER_TOKEN_BEDROCK`,然后是 `AWS_ACCESS_KEY_ID` + `AWS_SECRET_ACCESS_KEY`,然后是 `AWS_PROFILE`,最后是默认的 AWS SDK 链。
|
|
169
|
+
- 推理支持取决于模型;请查看 Bedrock 模型卡了解当前功能。
|
|
170
|
+
- 如果你更喜欢托管密钥流程,也可以在 Bedrock 前面放置一个 OpenAI 兼容的代理,并将其配置为 OpenAI 提供商。
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when:
|
|
3
|
+
- 你想将 Claude Max 订阅与 OpenAI 兼容工具配合使用
|
|
4
|
+
- 你想要一个封装 Claude Code CLI 的本地 API 服务器
|
|
5
|
+
- 你想通过使用订阅而非 API 密钥来节省费用
|
|
6
|
+
summary: 将 Claude Max/Pro 订阅用作 OpenAI 兼容的 API 端点
|
|
7
|
+
title: Claude Max API 代理
|
|
8
|
+
x-i18n:
|
|
9
|
+
generated_at: "2026-02-01T21:34:52Z"
|
|
10
|
+
model: claude-opus-4-5
|
|
11
|
+
provider: pi
|
|
12
|
+
source_hash: 63b61096b96b720c6d0c317520852db65d72ca8279b3868f35e8387fe3b6ce41
|
|
13
|
+
source_path: providers/claude-max-api-proxy.md
|
|
14
|
+
workflow: 15
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Claude Max API 代理
|
|
18
|
+
|
|
19
|
+
**claude-max-api-proxy** 是一个社区工具,将你的 Claude Max/Pro 订阅暴露为 OpenAI 兼容的 API 端点。这使你可以将订阅与任何支持 OpenAI API 格式的工具配合使用。
|
|
20
|
+
|
|
21
|
+
## 为什么使用它?
|
|
22
|
+
|
|
23
|
+
| 方式 | 费用 | 适用场景 |
|
|
24
|
+
| --------------- | ----------------------------------------------- | ------------------------ |
|
|
25
|
+
| Anthropic API | 按 token 计费(Opus 约 $15/M 输入,$75/M 输出) | 生产应用、高流量场景 |
|
|
26
|
+
| Claude Max 订阅 | 每月固定 $200 | 个人使用、开发、无限用量 |
|
|
27
|
+
|
|
28
|
+
如果你有 Claude Max 订阅并希望与 OpenAI 兼容工具配合使用,这个代理可以帮你节省大量费用。
|
|
29
|
+
|
|
30
|
+
## 工作原理
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
你的应用 → claude-max-api-proxy → Claude Code CLI → Anthropic(通过订阅)
|
|
34
|
+
(OpenAI 格式) (转换格式) (使用你的登录凭据)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
该代理:
|
|
38
|
+
|
|
39
|
+
1. 在 `http://localhost:3456/v1/chat/completions` 接受 OpenAI 格式的请求
|
|
40
|
+
2. 将其转换为 Claude Code CLI 命令
|
|
41
|
+
3. 以 OpenAI 格式返回响应(支持流式传输)
|
|
42
|
+
|
|
43
|
+
## 安装
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# 需要 Node.js 20+ 和 Claude Code CLI
|
|
47
|
+
npm install -g claude-max-api-proxy
|
|
48
|
+
|
|
49
|
+
# 验证 Claude CLI 已认证
|
|
50
|
+
claude --version
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 使用方法
|
|
54
|
+
|
|
55
|
+
### 启动服务器
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
claude-max-api
|
|
59
|
+
# 服务器运行在 http://localhost:3456
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 测试
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# 健康检查
|
|
66
|
+
curl http://localhost:3456/health
|
|
67
|
+
|
|
68
|
+
# 列出模型
|
|
69
|
+
curl http://localhost:3456/v1/models
|
|
70
|
+
|
|
71
|
+
# 聊天补全
|
|
72
|
+
curl http://localhost:3456/v1/chat/completions \
|
|
73
|
+
-H "Content-Type: application/json" \
|
|
74
|
+
-d '{
|
|
75
|
+
"model": "claude-opus-4",
|
|
76
|
+
"messages": [{"role": "user", "content": "Hello!"}]
|
|
77
|
+
}'
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 与 QuantumClaw 配合使用
|
|
81
|
+
|
|
82
|
+
你可以将 QuantumClaw 指向该代理作为自定义 OpenAI 兼容端点:
|
|
83
|
+
|
|
84
|
+
```json5
|
|
85
|
+
{
|
|
86
|
+
env: {
|
|
87
|
+
OPENAI_API_KEY: "not-needed",
|
|
88
|
+
OPENAI_BASE_URL: "http://localhost:3456/v1",
|
|
89
|
+
},
|
|
90
|
+
agents: {
|
|
91
|
+
defaults: {
|
|
92
|
+
model: { primary: "openai/claude-opus-4" },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## 可用模型
|
|
99
|
+
|
|
100
|
+
| 模型 ID | 对应模型 |
|
|
101
|
+
| ----------------- | --------------- |
|
|
102
|
+
| `claude-opus-4` | Claude Opus 4 |
|
|
103
|
+
| `claude-sonnet-4` | Claude Sonnet 4 |
|
|
104
|
+
| `claude-haiku-4` | Claude Haiku 4 |
|
|
105
|
+
|
|
106
|
+
## macOS 自动启动
|
|
107
|
+
|
|
108
|
+
创建 LaunchAgent 以自动运行代理:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
cat > ~/Library/LaunchAgents/com.claude-max-api.plist << 'EOF'
|
|
112
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
113
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
114
|
+
<plist version="1.0">
|
|
115
|
+
<dict>
|
|
116
|
+
<key>Label</key>
|
|
117
|
+
<string>com.claude-max-api</string>
|
|
118
|
+
<key>RunAtLoad</key>
|
|
119
|
+
<true/>
|
|
120
|
+
<key>KeepAlive</key>
|
|
121
|
+
<true/>
|
|
122
|
+
<key>ProgramArguments</key>
|
|
123
|
+
<array>
|
|
124
|
+
<string>/usr/local/bin/node</string>
|
|
125
|
+
<string>/usr/local/lib/node_modules/claude-max-api-proxy/dist/server/standalone.js</string>
|
|
126
|
+
</array>
|
|
127
|
+
<key>EnvironmentVariables</key>
|
|
128
|
+
<dict>
|
|
129
|
+
<key>PATH</key>
|
|
130
|
+
<string>/usr/local/bin:/opt/homebrew/bin:~/.local/bin:/usr/bin:/bin</string>
|
|
131
|
+
</dict>
|
|
132
|
+
</dict>
|
|
133
|
+
</plist>
|
|
134
|
+
EOF
|
|
135
|
+
|
|
136
|
+
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.claude-max-api.plist
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## 链接
|
|
140
|
+
|
|
141
|
+
- **npm:** https://www.npmjs.com/package/claude-max-api-proxy
|
|
142
|
+
- **GitHub:** https://github.com/atalovesyou/claude-max-api-proxy
|
|
143
|
+
- **Issues:** https://github.com/atalovesyou/claude-max-api-proxy/issues
|
|
144
|
+
|
|
145
|
+
## 注意事项
|
|
146
|
+
|
|
147
|
+
- 这是一个**社区工具**,并非由 Anthropic 或 QuantumClaw 官方支持
|
|
148
|
+
- 需要有效的 Claude Max/Pro 订阅并已认证 Claude Code CLI
|
|
149
|
+
- 代理在本地运行,不会将数据发送到任何第三方服务器
|
|
150
|
+
- 完全支持流式响应
|
|
151
|
+
|
|
152
|
+
## 另请参阅
|
|
153
|
+
|
|
154
|
+
- [Anthropic 提供商](/providers/anthropic) - QuantumClaw 与 Claude 的原生集成,使用 setup-token 或 API 密钥
|
|
155
|
+
- [OpenAI 提供商](/providers/openai) - 适用于 OpenAI/Codex 订阅
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when:
|
|
3
|
+
- 你想将 Cloudflare AI Gateway 与 QuantumClaw 一起使用
|
|
4
|
+
- 你需要 account ID、gateway ID 或 API key 环境变量
|
|
5
|
+
summary: Cloudflare AI Gateway 设置(认证 + 模型选择)
|
|
6
|
+
title: Cloudflare AI Gateway
|
|
7
|
+
x-i18n:
|
|
8
|
+
generated_at: "2026-03-16T06:25:05Z"
|
|
9
|
+
model: gpt-5.4
|
|
10
|
+
provider: openai
|
|
11
|
+
source_hash: db77652c37652ca20f7c50f32382dbaeaeb50ea5bdeaf1d4fd17dc394e58950c
|
|
12
|
+
source_path: providers/cloudflare-ai-gateway.md
|
|
13
|
+
workflow: 15
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Cloudflare AI Gateway
|
|
17
|
+
|
|
18
|
+
Cloudflare AI Gateway 位于提供商 API 前方,让你能够添加分析、缓存和控制功能。对于 Anthropic,QuantumClaw 会通过你的 Gateway 端点使用 Anthropic Messages API。
|
|
19
|
+
|
|
20
|
+
- 提供商:`cloudflare-ai-gateway`
|
|
21
|
+
- Base URL:`https://gateway.ai.cloudflare.com/v1/<account_id>/<gateway_id>/anthropic`
|
|
22
|
+
- 默认模型:`cloudflare-ai-gateway/claude-sonnet-4-5`
|
|
23
|
+
- API key:`CLOUDFLARE_AI_GATEWAY_API_KEY`(你用于通过 Gateway 发起请求的提供商 API key)
|
|
24
|
+
|
|
25
|
+
对于 Anthropic 模型,请使用你的 Anthropic API key。
|
|
26
|
+
|
|
27
|
+
## 快速开始
|
|
28
|
+
|
|
29
|
+
1. 设置提供商 API key 和 Gateway 详细信息:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
quantumclaw onboard --auth-choice cloudflare-ai-gateway-api-key
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. 设置默认模型:
|
|
36
|
+
|
|
37
|
+
```json5
|
|
38
|
+
{
|
|
39
|
+
agents: {
|
|
40
|
+
defaults: {
|
|
41
|
+
model: { primary: "cloudflare-ai-gateway/claude-sonnet-4-5" },
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 非交互式示例
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
quantumclaw onboard --non-interactive \
|
|
51
|
+
--mode local \
|
|
52
|
+
--auth-choice cloudflare-ai-gateway-api-key \
|
|
53
|
+
--cloudflare-ai-gateway-account-id "your-account-id" \
|
|
54
|
+
--cloudflare-ai-gateway-gateway-id "your-gateway-id" \
|
|
55
|
+
--cloudflare-ai-gateway-api-key "$CLOUDFLARE_AI_GATEWAY_API_KEY"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 已认证的 Gateway
|
|
59
|
+
|
|
60
|
+
如果你在 Cloudflare 中启用了 Gateway 认证,请添加 `cf-aig-authorization` header(这是在你的提供商 API key 之外额外添加的)。
|
|
61
|
+
|
|
62
|
+
```json5
|
|
63
|
+
{
|
|
64
|
+
models: {
|
|
65
|
+
providers: {
|
|
66
|
+
"cloudflare-ai-gateway": {
|
|
67
|
+
headers: {
|
|
68
|
+
"cf-aig-authorization": "Bearer <cloudflare-ai-gateway-token>",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## 环境说明
|
|
77
|
+
|
|
78
|
+
如果 Gateway 作为守护进程运行(launchd/systemd),请确保 `CLOUDFLARE_AI_GATEWAY_API_KEY` 对该进程可用(例如放在 `~/.quantumclaw/.env` 中,或通过 `env.shellEnv` 提供)。
|