Pular para o conteúdo principal
Todos os clientes
Rust Sandboxed Agent · SOP Engine1M Context · ZDR

ZeroClaw

Ultra-lightweight Rust multi-channel personal agent with OS-level sandboxing, cryptographic tool receipts, and event-driven SOPs.

URL Base
https://api.bf16.ai/v1
Protocolo
openai-completions

Para quem é
Security-conscious engineers running ZeroClaw (zeroclaw-labs/zeroclaw) across Telegram, Matrix, Discord, or edge Linux hosts who want deterministic OS sandboxes instead of model refusals.

Arquitetura e Integração com bf16.ai

ZeroClaw Rust binary (~/.zeroclaw/config.toml) with Landlock/Seatbelt sandboxes routing to api.bf16.ai
ZeroClaw enforces Landlock, Bubblewrap, or macOS Seatbelt boundaries locally while connecting natively to api.bf16.ai via Anthropic Messages or OpenAI Chat Completions.

ZeroClaw (zeroclaw-labs/zeroclaw) replaces heavy Node.js agent stacks with a single Rust binary featuring OS-level sandboxes (Landlock, Bubblewrap, macOS Seatbelt, Docker), cryptographic tool receipts, and an event-triggered Standard Operating Procedure (SOP) engine driven by webhooks, MQTT, or cron.

Because ZeroClaw already enforces a strict local risk profile (supervised by default: medium-risk actions prompt for approval, high-risk actions blocked), model-side safety lectures only break automated SOP runs and security triage pipelines. ZeroClaw’s V4 TOML config can connect to bf16.ai either through its native [providers.models.anthropic.bf16] slot (preserving signed bf16sig_v1 thinking blocks) or [providers.models.custom.bf16] over Chat Completions with fallback_models.

Os comandos mostram $BF16_API_KEY. Entre na conta para preencher sua chave real automaticamente.

CONFIGURAÇÃO EM 1 COMANDO

One-Command ZeroClaw ~/.zeroclaw/config.toml Setup

Backs up any existing ~/.zeroclaw/config.toml, writes a clean Schema v4 configuration with bf16 primary + Flash vision fallback and supervised autonomy, sets 0600 permissions, and verifies api.bf16.ai.

export BF16_API_KEY="sk-bf16-v1-..."
mkdir -p ~/.zeroclaw && [ -f ~/.zeroclaw/config.toml ] && cp ~/.zeroclaw/config.toml ~/.zeroclaw/config.toml.bak
umask 077 && cat <<EOF > ~/.zeroclaw/config.toml
schema_version = 4

[providers.models.custom.bf16]
uri = "https://api.bf16.ai/v1"
api_key = "$BF16_API_KEY"
model = "zai-org/glm-5.3-uncensored"
wire_api = "chat_completions"
timeout_secs = 600
max_tokens = 32768
fallback_models = ["deepseek/deepseek-v4.1-flash-uncensored"]

[providers.models.custom.bf16-vision]
uri = "https://api.bf16.ai/v1"
api_key = "$BF16_API_KEY"
model = "deepseek/deepseek-v4.1-flash-uncensored"
wire_api = "chat_completions"
vision = true
timeout_secs = 600

[multimodal]
vision_model_provider = "custom.bf16-vision"

[risk_profiles.default]
autonomy = "supervised"

[agents.main]
model_provider = "custom.bf16"
risk_profile = "default"
EOF
curl -fsS "https://api.bf16.ai/v1/models" -H "Authorization: Bearer $BF16_API_KEY" >/dev/null && echo "ZeroClaw config written to ~/.zeroclaw/config.toml"
  1. 1

    Write Schema v4 Provider & Agent Blocks

    Ensure schema_version = 4 is the first line, configure custom.bf16 for primary reasoning and custom.bf16-vision for multimodal turns, and bind agents.main to supervised autonomy.

    ~/.zeroclaw/config.toml
    schema_version = 4
    
    [providers.models.custom.bf16]
    uri = "https://api.bf16.ai/v1"
    api_key = "$BF16_API_KEY"
    model = "zai-org/glm-5.3-uncensored"
    wire_api = "chat_completions"
    timeout_secs = 600
    fallback_models = ["deepseek/deepseek-v4.1-flash-uncensored"]
    
    [providers.models.custom.bf16-vision]
    uri = "https://api.bf16.ai/v1"
    api_key = "$BF16_API_KEY"
    model = "deepseek/deepseek-v4.1-flash-uncensored"
    wire_api = "chat_completions"
    vision = true
    
    [multimodal]
    vision_model_provider = "custom.bf16-vision"
    
    [risk_profiles.default]
    autonomy = "supervised"
    
    [agents.main]
    model_provider = "custom.bf16"
    risk_profile = "default"
  2. 2

    Launch Interactive Chat or Install Background Service

    Test the agent interactively first, then register ZeroClaw with launchctl / systemd if you run multi-channel webhooks.

    zeroclaw agent -a main
    # Optional background daemon:
    # zeroclaw service install && zeroclaw service start
ZeroClaw — ~/.zeroclaw/config.toml (Schema v4)
INSPETOR DE CONFIGURAÇÃO
~/.zeroclaw/config.toml · [providers.models.custom.bf16]

Referência Exata de Campos

schema_version
4

Must be line 1 of ~/.zeroclaw/config.toml to avoid legacy migration warnings.

Section Header
[providers.models.custom.bf16]
uri
https://api.bf16.ai/v1
api_key
sk-bf16-v1-••••••••••••
model + fallback_models
zai-org/glm-5.3-uncensored → ["deepseek/deepseek-v4.1-flash-uncensored"]
timeout_secs
600

Raises both HTTP header timeout and streaming idle bound above 300s.

ZeroClaw defaults tool_result_image_policy to "relocate", keeping screenshot tool results compatible across all OpenAI-compatible models.

Modelos Recomendados por Função

Combine modelos Flagship para planejamento com modelos Flash para subtarefas e capturas de tela.

FunçãoModel IDMotivoUSD / 1M Tokens
Primary Supervised Agent (custom.bf16)zai-org/glm-5.3-uncensoredDeterministic tool-call formatting for ZeroClaw SOP steps, shell execution, and security log analysis.$1.35 in / $0.25 cached / $4.20 out
Multimodal & Fast Channel Replies (custom.bf16-vision)deepseek/deepseek-v4.1-flash-uncensoredHandles [multimodal] vision_model_provider routing and rapid Telegram/Matrix turns.$0.26 in / $0.045 cached / $1.00 out

Como saber se funcionou

  • Run zeroclaw agent -a main and send a one-line prompt; verify cryptographic tool receipts execute without config migration warnings.
  • Confirm the settled turn appears in bf16.ai/dashboard/logs.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

Proteções de Produção e Limites de Gasto

  • Keep autonomy = "supervised" in [risk_profiles.default]; reserve YOLO mode strictly for disposable container VMs.
  • Do not enable thinking_passthrough = true on chat_completions entries — DeepSeek and GLM reasoning flows natively via reasoning_content without Anthropic parameter injection.

Erros comuns

Sintoma
HTTP 400 unknown parameter thinking on the first Chat Completions turn.
Causa
thinking_passthrough = true was set on [providers.models.custom.*], which injects Anthropic-only top-level fields onto Chat Completions.
Solução
Omit thinking_passthrough on custom Chat Completions entries (or use [providers.models.anthropic.bf16] pointed at https://api.bf16.ai without /v1).
Sintoma
ZeroClaw prints a legacy schema migration warning on startup.
Causa
schema_version = 4 was omitted from the top of ~/.zeroclaw/config.toml.
Solução
Keep schema_version = 4 as line 1 of ~/.zeroclaw/config.toml.

Ainda não instalou?

curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/master/install.sh | bash
Documentação oficial