Zum Hauptinhalt springen
Alle Clients
Multi-IM Agent Platform · 1000+ Plugins1M Context · ZDR

AstrBot

All-in-one open-source IM agent platform for Telegram, Slack, Discord, Feishu, DingTalk, and WeChat Work with isolated Docker code sandboxes.

Basis-URL
https://api.bf16.ai/v1
Protokoll
openai-completions

Für wen gedacht
Developers and teams running AstrBot across instant-messaging workflows who need uncensored multimodal reasoning, RAG, and isolated shell/Python sandboxes.

Architektur & Zusammenspiel mit bf16.ai

AstrBot WebUI and multi-IM messaging gateway (Telegram, Slack, Discord, Feishu) connected to api.bf16.ai/v1
AstrBot bridges messaging platforms, local RAG knowledge bases, and isolated Agent Sandboxes to api.bf16.ai/v1 via its native OpenAI-compatible provider adapter.

AstrBot (AstrBotDevs/AstrBot) is one of the most widely deployed open-source IM agent platforms, connecting Telegram, Slack, Discord, Feishu/Lark, DingTalk, WeChat Work, and a built-in Web ChatUI to MCP servers, local knowledge bases, and a Docker-isolated Agent Sandbox.

When AstrBot runs technical group bots, security alert responders, or uncut multi-language translation plugins, standard commercial APIs frequently block entire group threads over benign security payloads or colloquial text. Connecting AstrBot’s OpenAI provider slot to bf16.ai gives your IM bots 1M-context uncensored reasoning and vision with automatic prefix-cache discounts.

In den Befehlen steht $BF16_API_KEY. Melden Sie sich an, um Ihren eigenen Schlüssel automatisch einzusetzen.

1-BEFEHL-SETUP

One-Command AstrBot Docker Launch + Endpoint Verification

Verifies your bf16.ai API key against GET /v1/models and launches AstrBot in Docker on port 6185 with persistent data mounted at ./astrbot-data.

export BF16_API_KEY="sk-bf16-v1-..."
curl -fsS "https://api.bf16.ai/v1/models" -H "Authorization: Bearer $BF16_API_KEY" >/dev/null && \
mkdir -p ./astrbot-data && \
docker run -d --name astrbot --restart unless-stopped \
  -p 6185:6185 \
  -v "$(pwd)/astrbot-data:/AstrBot/data" \
  soulter/astrbot:latest && \
echo "AstrBot running at http://127.0.0.1:6185 — paste Base URL https://api.bf16.ai/v1 in Model Providers."
  1. 1

    Start AstrBot via uv or Docker

    Launch AstrBot locally with uv (Python 3.12) or Docker, then open the WebUI console on port 6185.

    uv tool install astrbot --python 3.12
    astrbot init
    astrbot run
  2. 2

    Add bf16.ai in WebUI → Model Providers

    In http://127.0.0.1:6185, navigate to Model Providers → + Add Provider → OpenAI. Set API Base URL to https://api.bf16.ai/v1, add your key below, and set Model to deepseek/deepseek-v4.1-flash-uncensored (or click Fetch Models).

    API Base URL: https://api.bf16.ai/v1
    API Key:      $BF16_API_KEY
    Model:        deepseek/deepseek-v4.1-flash-uncensored
  3. 3

    Enable Vision & Tool Calling Modalities

    On the provider card in AstrBot, ensure Tool Calling (Function Calling) and Image Understanding (Vision) toggles are enabled so AstrBot forwards group screenshots and MCP/plugin schemas.

AstrBot WebUI (:6185) — Model Providers → + Add Provider
KONFIGURATIONS-INSPEKTOR
Dashboard (http://127.0.0.1:6185) / Providers / OpenAI-Compatible

Feld-für-Feld-Referenz

Provider Template
OpenAI (OpenAI-Compatible Chat Completions)
Provider ID
bf16-uncensored
API Base URL
https://api.bf16.ai/v1

Must include /v1.

API Keys
sk-bf16-v1-••••••••••••
Model Name
deepseek/deepseek-v4.1-flash-uncensored

Supports Vision + Function Calling + 1M context compression.

Use /provider in any connected IM chat (admin-only) to switch live between deepseek-v4.1-flash-uncensored and glm-5.3-uncensored.

Empfohlene Modell-Aufteilung

Planung über Flagship-Modelle, schnelle Subtasks und Screenshots über Flash-Modelle.

RolleModell-IDEinsatzgrundUSD / 1M Tokens
High-Concurrency IM Bot & Image Recognitiondeepseek/deepseek-v4.1-flash-uncensoredHandles group-chat images, plugin tool calls, and long chat histories quickly at low token cost.$0.26 in / $0.045 cached / $1.00 out
Agent Sandbox Coding & Deep RAG Synthesiszai-org/glm-5.3-uncensoredReliable multi-step Python/Shell code generation inside AstrBot’s isolated Agent Sandbox.$1.35 in / $0.25 cached / $4.20 out

So prüfen Sie, ob es funktioniert

  • Open AstrBot Web ChatUI and send "/provider" or a test prompt; verify a streaming reply arrives.
  • Check bf16.ai/dashboard/logs to confirm HTTP 200 settlement.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

Produktions-Guardrails & Budget-Limits

  • Configure AstrBot session whitelists and rate limits before adding the bot to large public Telegram or Discord servers.
  • Pass a hashed per-sender identifier in custom wrappers or cap daily spend on the AstrBot API key in /dashboard/keys.

Häufige Fehler

Symptom
404 Not Found when testing the provider in AstrBot WebUI.
Ursache
API Base URL was entered without /v1.
Lösung
Set API Base URL to https://api.bf16.ai/v1.
Symptom
Bot ignores images sent in Telegram or Feishu.
Ursache
Vision / Image Understanding capability was not toggled on for the custom OpenAI provider entry, or a text-only model was selected.
Lösung
Select deepseek/deepseek-v4.1-flash-uncensored or zai-org/glm-5.3-flash-uncensored and enable Vision on the provider card.

Noch nicht installiert?

uv tool install astrbot --python 3.12 && astrbot init && astrbot run
Offizielle Dokumentation