Named after 白泽 (bái zé) — the all-knowing beast of Shānhǎijīng who spoke all tongues and answered every question.
A unified AI assistant across terminal, desktop, and WeChat. Pure Go. Local-first. No cloud required.
Capabilities
Pure Go. No cloud dependency. Just a single binary that turns your local machine into a personal AI knowledge hub with streaming chat, agent tools, and multi-session management.
Store and retrieve information using natural language. Supports text, images (with vision), and PDF documents. Auto-generated keywords with intelligent search scoring, per-project scoping, and debug tools to inspect retrieval plans.
Natural language scheduling: relative time ("2小时后")、daily recurring ("每天 09:00")、or absolute date/time. Multi-channel delivery across terminal, WeChat, and desktop with per-user targeting.
Terminal REPL for power users, native desktop app (Wails) with tray icon and session management, WeChat bridge with QR login and voice support. Streaming responses, chat export to Markdown, and multi-session switching across all surfaces.
Powered by OpenAI and Anthropic models with multi-profile management, encrypted API keys, and fine-grained tuning (temperature, top-p, penalties). Intent recognition auto-routes queries, with streaming output and structured option prompts.
Extensible prompt-based skill packs with hot-loading and .zip import. Per-session skill activation influences routing and response style. Prompt profiles let you switch AI personas on the fly.
All data stays on your machine in local JSON/SQLite files. AES-encrypted API key storage, per-project data isolation, no cloud dependency, no telemetry. Your memories belong to you.
Conversation Modes
Switch between modes to control how baize processes your queries — from direct AI chat to knowledge-grounded reasoning to autonomous tool use.
Questions go straight to the AI model without consulting the knowledge base. Best for general conversation, brainstorming, translation, and quick questions that don't need your personal context. Supports per-message override via @ai prefix.
Every query is enriched with relevant entries from your local knowledge base. The AI reviews, scores, and synthesizes your stored information before responding. Use @kb to trigger per-message, or /debug-search to inspect the retrieval plan.
Full tool-calling capability with 7 built-in tools (knowledge CRUD, reminder management) plus extensible external providers via MCP/NCP/ACP protocols. The AI autonomously decides next steps, calls tools, and synthesizes results.
Get Started
Clone, build, run. No complex setup, no external services required.
Architecture
Intentionally simple. Pure Go with zero database dependencies. Every component has a clear boundary and single responsibility.
Cross-Platform