services/satori-bot/README.md
⚠️ Disclaimer: This is a submodule of AIRI. The
corepart of this satori bot is merely a temporary solution. We will eventually delete it and integrate with AIRI's Core once the main framework is stable.
A STANDALONE, event-driven AI agent built on the Satori Protocol. It connects to multiple chat platforms (QQ, Telegram, Discord, Lark) via a Koishi bridge, featuring an autonomous thought loop.
Important: This module currently implements a self-contained "Mini-Core" (src/core/) to operate independently. This is NOT the final architecture of AIRI.
src/core/ are placeholders. They simulate the behavior of the future AIRI Core.src/core/ directory (specifically the loop/planning logic) will be removed. This module will then be refactored to strictly function as an Adapter (Satori Protocol handling) and Capability Provider (Actions), delegating the cognitive loop to the main AIRI process.For the current standalone version, please refer to these documents:
Key Code Paths:
src/core/src/adapter/satori/src/capabilities/server-satori plugin.pnpm install
cp .env .env.local
Key Variables:
# Satori Configuration
SATORI_WS_URL=ws://localhost:5140/satori/v1/events
SATORI_API_BASE_URL=http://localhost:5140/satori/v1
SATORI_TOKEN= # Optional: Leave empty if auth is disabled in Koishi
# LLM (OpenAI Compatible)
LLM_API_KEY=your_api_key_here
LLM_API_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4
LLM_RESPONSE_LANGUAGE=English
LLM_OLLAMA_DISABLE_THINK=false
# Development (Hot-reload)
pnpm --filter @proj-airi/satori-bot dev
# Production
pnpm --filter @proj-airi/satori-bot start
src/core/planner/prompts/*.velin.mddata/pglite-db (See PERSISTENCE.md for architecture)src/capabilities/actions/