跳至主要內容
所有用戶端
Multi-Channel Personal Daemon1M Context · ZDR

OpenClaw

提供非互動式快速導引流程的個人代理。

基礎網址
https://api.bf16.ai/v1
協定
openai-completions

適用對象
希望由代理權限規則(而非模型本身拒答)決定可執行動作的使用者。

架構原理與接入優勢

OpenClaw local daemon bridging WhatsApp, Telegram, Discord, and Signal to api.bf16.ai/v1
OpenClaw keeps MEMORY.md, SOUL.md, and messaging credentials on your host while dispatching non-interactive OpenAI-compatible completions to api.bf16.ai/v1.

OpenClaw runs as a local-first personal AI daemon that connects your messaging channels (Telegram, WhatsApp, Discord, Slack, Signal) to local shell, calendar, file, and browser skills governed by your local SOUL.md and permission rules.

Standard cloud APIs frequently reject benign personal automation messages containing system logs, medical lab PDFs, security alerts, or raw legal contracts. Routing OpenClaw through bf16.ai ensures your daemon executes every authorized skill while your local OpenClaw approval policy stays in complete control of outgoing messages and side effects.

指令預設顯示 $BF16_API_KEY。登入並建立金鑰後會自動填入你的真實金鑰。

一鍵快速配置

One-Command OpenClaw Non-Interactive Setup

Installs OpenClaw if missing, configures bf16.ai as the custom OpenAI-compatible provider with 1M-context DeepSeek V4.1 Flash Uncensored, and verifies gateway connectivity.

export BF16_API_KEY="sk-bf16-v1-..."
command -v openclaw >/dev/null 2>&1 || npm install -g openclaw
openclaw onboard --non-interactive --accept-risk \
  --auth-choice custom-api-key \
  --custom-provider-id bf16 \
  --custom-compatibility openai \
  --custom-base-url https://api.bf16.ai/v1 \
  --custom-api-key "$BF16_API_KEY" \
  --custom-model-id deepseek/deepseek-v4.1-flash-uncensored \
  --skip-health
curl -fsS "https://api.bf16.ai/v1/models" -H "Authorization: Bearer $BF16_API_KEY" >/dev/null && echo "bf16.ai connected to OpenClaw."
  1. 1

    匯出你的 API 金鑰

    登入後頁面會自動填入你的真實金鑰;點擊複製即可貼上執行。

    export BF16_API_KEY=sk-bf16-v1-...
  2. 2

    一行指令完成 bf16 串接

    openclaw onboard --non-interactive --accept-risk \
      --auth-choice custom-api-key \
      --custom-provider-id bf16 \
      --custom-compatibility openai \
      --custom-base-url https://api.bf16.ai/v1 \
      --custom-api-key "$BF16_API_KEY" \
      --custom-model-id deepseek/deepseek-v4.1-flash-uncensored \
      --skip-health
OpenClaw — Non-Interactive CLI Onboarding
介面與設定檔欄位對照
~/.openclaw/config.json · Custom Provider Profile

關鍵參數核對清單

--auth-choice
custom-api-key
--custom-compatibility
openai
--custom-base-url
https://api.bf16.ai/v1

Must end with /v1.

--custom-model-id
deepseek/deepseek-v4.1-flash-uncensored

1M context · Vision + fast skill execution.

OpenClaw sends uncompressed screenshots on vision turns; bf16.ai automatically normalizes oversized inline images in RAM so long sessions never fail.

推薦模型分層配置

架構規劃使用旗艦模型,高頻子任務與螢幕截圖使用 Flash 模型以節省開銷。

工作流角色模型 ID選型說明USD / 1M Tokens
Messaging & Daily Skills (Default)deepseek/deepseek-v4.1-flash-uncensoredSub-second first-token feel in Telegram/WhatsApp with native image input and $0.045/1M prefix cache hits on SOUL.md + MEMORY.md.$0.26 in / $0.045 cached / $1.00 out
Complex Code & System Administrationzai-org/glm-5.3-uncensoredHighest multi-step shell and file-editing accuracy when invoking engineering skills.$1.35 in / $0.25 cached / $4.20 out

如何確認設定成功

  • OpenClaw 顯示自訂供應商已成功連線。
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • Keep OpenClaw confirmation prompts turned ON for outgoing messages to third parties, destructive shell commands, and payment skills (Decision 2.7).
  • Scope a dedicated OpenClaw key in /dashboard/keys with a daily USD ceiling.

常見錯誤

現象
導引流程卡在供應商設定步驟。
原因
自訂網址缺少結尾的 /v1。
解法
請使用 https://api.bf16.ai/v1。

還沒安裝?

npm install -g openclaw
官方文件