跳至主要內容
所有用戶端
Open-Source Grok Bot Alternative · Docker1M Context · ZDR

Rakazo

Self-hosted open-source alternative to Grok Bot with isolated Docker computers, scheduled routines, group chats, and explicit approval models.

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

適用對象
Teams and indie operators self-hosting Rakazo (elie222/rakazo) who want persistent bots with dedicated Linux desktops backed by uncensored 1M-context models.

架構原理與接入優勢

Rakazo Docker Compose stack (API, Worker, Sandbox Supervisor, Team Computers) wired to api.bf16.ai/v1
Rakazo isolates every bot inside its own Docker Team Computer (browser + shell + desktop) while the Worker streams uncensored reasoning and vision calls through api.bf16.ai/v1.

Rakazo (elie222/rakazo) is a full-stack Apache-2.0 self-hosted alternative to Grok Bot, OpenAI Dots, and OpenClaw. Every bot gets its own isolated Docker computer (complete with Chrome, terminal, and virtual screen you can watch or take over live), weekday/webhook routines, multi-bot @mention group chats, and configurable human-in-the-loop Approvals (Never ask, Auto, or Ask).

In unattended Rakazo routines — such as nightly staging QA checks, internal admin form automation, security log triage, or multi-language localization pipelines — mainstream hosted APIs frequently emit prose refusals instead of tool calls, halting the Graphile/Postgres run queue. Connecting Rakazo to bf16.ai gives your bots orthogonal weight-edited models that execute instructions reliably while Rakazo’s own Settings → Approvals rules and restricted Docker egress enforce hard operational boundaries.

Rakazo natively supports operator-managed OpenAI-compatible gateways via RAKAZO_LOCAL_MODELS_* in .env (exposing models to every bot across Web, Desktop, iOS, and Android) as well as per-user connections in Settings → Models.

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

一鍵快速配置

One-Command Rakazo Docker Bootstrap & bf16 Injection

Downloads the official Rakazo Compose installer (--prepare-only), backs up .env if present, injects bf16.ai as the default 1M-context Vision + Reasoning provider across all bots, and launches the stack.

export BF16_API_KEY="sk-bf16-v1-..."
mkdir -p rakazo && cd rakazo
curl -fsSLO https://raw.githubusercontent.com/elie222/rakazo/main/infra/compose/install-images.sh
bash install-images.sh --prepare-only
cp .env .env.bak
python3 -c '
import os, pathlib
p = pathlib.Path(".env")
lines = [l for l in p.read_text().splitlines() if not l.startswith((
  "RAKAZO_LOCAL_MODELS=", "RAKAZO_LOCAL_MODELS_URL=", "RAKAZO_LOCAL_MODELS_API_KEY=",
  "RAKAZO_LOCAL_CONTEXT_WINDOW=", "RAKAZO_LOCAL_MAX_TOKENS=", "RAKAZO_LOCAL_VISION_MODELS=",
  "RAKAZO_LOCAL_REASONING_MODELS=", "PI_DEFAULT_PROVIDER=", "PI_DEFAULT_MODEL=", "PI_DEFAULT_CREDENTIALS="
))]
models = "deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,zai-org/glm-5.3-uncensored,moonshotai/kimi-k3.1-pro-uncensored"
vision = "deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored"
lines += [
  f"RAKAZO_LOCAL_MODELS={models}",
  "RAKAZO_LOCAL_MODELS_URL=https://api.bf16.ai/v1",
  f"RAKAZO_LOCAL_MODELS_API_KEY={os.environ["BF16_API_KEY"]}",
  "RAKAZO_LOCAL_CONTEXT_WINDOW=1048576",
  "RAKAZO_LOCAL_MAX_TOKENS=65536",
  f"RAKAZO_LOCAL_VISION_MODELS={vision}",
  f"RAKAZO_LOCAL_REASONING_MODELS={models}",
  "PI_DEFAULT_PROVIDER=local",
  "PI_DEFAULT_MODEL=deepseek/deepseek-v4.1-flash-uncensored",
  "PI_DEFAULT_CREDENTIALS=host",
]
p.write_text("\n".join(lines) + "\n")
' && bash install-images.sh
  1. 1

    Prepare the Rakazo Compose Stack

    Run the official image installer with --prepare-only so it generates .env with random Postgres, Better Auth, and Sandbox Supervisor secrets before starting containers.

    mkdir -p rakazo && cd rakazo
    curl -fsSLO https://raw.githubusercontent.com/elie222/rakazo/main/infra/compose/install-images.sh
    bash install-images.sh --prepare-only
  2. 2

    Configure bf16.ai in rakazo/.env

    Declare all four uncensored models, enable Vision screenshot tools via RAKAZO_LOCAL_VISION_MODELS, and enable thinking effort controls via RAKAZO_LOCAL_REASONING_MODELS.

    rakazo/.env
    RAKAZO_LOCAL_MODELS=deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,zai-org/glm-5.3-uncensored,moonshotai/kimi-k3.1-pro-uncensored
    RAKAZO_LOCAL_MODELS_URL=https://api.bf16.ai/v1
    RAKAZO_LOCAL_MODELS_API_KEY=$BF16_API_KEY
    RAKAZO_LOCAL_CONTEXT_WINDOW=1048576
    RAKAZO_LOCAL_MAX_TOKENS=65536
    RAKAZO_LOCAL_VISION_MODELS=deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored
    RAKAZO_LOCAL_REASONING_MODELS=zai-org/glm-5.3-uncensored,deepseek/deepseek-v4.1-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored
    PI_DEFAULT_PROVIDER=local
    PI_DEFAULT_MODEL=deepseek/deepseek-v4.1-flash-uncensored
    PI_DEFAULT_CREDENTIALS=host
  3. 3

    Launch Rakazo & Connect Optional Per-User Keys in Web UI

    Run bash install-images.sh to start Postgres, API, Worker, Web, and the Docker Computer Supervisor, then open http://127.0.0.1:5173. Individual users can also add personal keys under Settings → Models → OpenAI-Compatible (toggle "Supports images" ON).

    bash install-images.sh
Rakazo (http://127.0.0.1:5173) — Settings → Models
介面與設定檔欄位對照
Account Settings / Models / OpenAI-Compatible & Deployment .env

關鍵參數核對清單

RAKAZO_LOCAL_MODELS_URL
https://api.bf16.ai/v1

Reachable by both rakazo-api and rakazo-worker containers.

RAKAZO_LOCAL_MODELS_API_KEY
sk-bf16-v1-••••••••••••

Sent as Authorization: Bearer; redacted automatically from bot run logs.

RAKAZO_LOCAL_CONTEXT_WINDOW
1048576

Unlocks full 1M window; keep RAKAZO_LOCAL_MAX_TOKENS=65536 (< 1/4 window).

RAKAZO_LOCAL_VISION_MODELS
deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored

Required so Rakazo enables screenshot Computer Use tools on those models.

RAKAZO_LOCAL_REASONING_MODELS
zai-org/glm-5.3-uncensored,deepseek/deepseek-v4.1-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored

Exposes Low / High / Max thinking effort selector in the Rakazo composer.

Settings → Approvals Mode
Auto / Ask (Purchases always require human approval)

Let Rakazo policy gates — not model refusals — govern side effects.

Prefer UI setup without editing .env? Open http://127.0.0.1:5173 → Settings → Models → Add OpenAI-Compatible Connection and toggle "Supports images" ON.

推薦模型分層配置

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

工作流角色模型 ID選型說明USD / 1M Tokens
Team Computer & Scheduled Routines (Default)deepseek/deepseek-v4.1-flash-uncensoredAccepts desktop screenshots + structured browser/shell tool calls at high speed and $0.045/1M cached input across multi-bot group chats.$0.26 in / $0.045 cached / $1.00 out
Auto-Review Approval & Engineering Botzai-org/glm-5.3-uncensoredStrong analytical judgment for Rakazo Settings → Models → Approval model verification and deep code/audit tasks.$1.35 in / $0.25 cached / $4.20 out
Executive Dashboards & Multimodal Researchmoonshotai/kimi-k3.1-pro-uncensored2.8T MoE flagship when Rakazo bots build shareable live Pages/dashboards from large documents and browser captures.$1.95 in / $0.28 cached / $6.90 out

如何確認設定成功

  • Open http://127.0.0.1:5173, create a bot, and verify the composer lists deepseek/deepseek-v4.1-flash-uncensored with thinking effort controls.
  • Ask the bot to open its Team Computer browser and summarize a page; confirm screenshot tool calls succeed and settle in bf16.ai/dashboard/logs.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • Keep SANDBOX_COMPUTER_EGRESS=auto (restricted internet-only egress) enabled on Linux hosts so Docker bot computers cannot probe private LAN or cloud metadata IPs.
  • Set MAX_TOOL_CALLS_PER_TURN=40 in .env and assign a Daily Spend Cap on your sk-bf16-v1-* key to bound unattended cron routines.
  • Leave RAKAZO_LOCAL_PROMPT_CACHE unset (default on) — bf16.ai automatically discounts cached prefix tokens up to 82% across multi-step Pi agent turns.

常見錯誤

現象
Bot says screenshot / computer vision tools are unavailable.
原因
The model ID is missing from RAKAZO_LOCAL_VISION_MODELS (or "Supports images" was left unchecked in Settings → Models).
解法
Add deepseek/deepseek-v4.1-flash-uncensored,zai-org/glm-5.3-flash-uncensored,moonshotai/kimi-k3.1-pro-uncensored to RAKAZO_LOCAL_VISION_MODELS and restart api + worker.
現象
Changes to rakazo/.env have no effect on running bots.
原因
Rakazo API and Worker read .env only at container startup.
解法
Re-run bash install-images.sh (it preserves .env and recreates updated containers).
現象
403 INVALID_ORIGIN when opening Rakazo over Tailscale or LAN.
原因
Rakazo restricts auth and API calls to WEB_ORIGIN (http://127.0.0.1:5173) by default.
解法
Add your Tailscale HTTPS or LAN URL to RAKAZO_EXTRA_AUTH_ORIGINS in .env and restart.

還沒安裝?

mkdir -p rakazo && cd rakazo && curl -fsSLO https://raw.githubusercontent.com/elie222/rakazo/main/infra/compose/install-images.sh && bash install-images.sh
官方文件