Xu123-Bob/Baize

An ancient Chinese divine beast, now reincarnated as an enterprise-grade VibeCoding assistant.

What it solves

Baize tackles the risk of leaking sensitive information when using AI coding assistants. When you send prompts to a large language model (LLM), your data often goes to a cloud service and may be stored in plaintext. Baize automatically hides personal details (phone numbers, emails, API keys, etc.) before anything leaves your machine, then restores them after the AI responds. It also keeps your conversation history and logs free of plaintext sensitive data on disk, so you can use AI tools without exposing secrets.

How it works

Baize is a command-line tool you run locally. On first launch, it creates configuration files where you pick a backend (DeepSeek, OpenAI-compatible services, or local Ollama) and enter your API key. You then type natural-language instructions at the >>> Decree: prompt. Before each request, Baize scans your input for 30+ types of sensitive information and replaces them with random, unguessable placeholders (like «PZ_PHONE_a3f8b2c1d4e5f6a7»). The LLM only sees these placeholders. After the response arrives, Baize swaps the placeholders back to the original text, so you always see your real data. The same redaction is applied when writing session files or logs to disk. Baize also includes a secure sandbox that restricts commands, blocks dangerous operations, and prevents path escapes, plus a full toolchain (bash, file editing, web search, etc.), a skill system, subagents, hooks, and MCP support.

Who it’s for

Baize is aimed at developers and data analysts who want to use AI coding agents while keeping sensitive data private. It’s especially useful for people working with personal data, proprietary code, or confidential business information, and for those who prefer a local-first tool that doesn’t rely on a remote database. It also suits users who need to switch between multiple LLM backends or work in multiple languages.

Highlights

  • Bidirectional reversible privacy protection: sensitive data is replaced with random placeholders before sending to the LLM and restored after, invisibly to the user.
  • Comprehensive on-disk redaction: session files, compressed transcripts, and audit logs are automatically redacted before being written, so plaintext PII never appears on disk.
  • 30+ types of sensitive data detected: phone numbers, emails, ID cards, passports, bank cards, API keys, JWTs, database connection strings, MAC addresses, and more.
  • Multilingual interaction: supports nine languages (Chinese, English, Japanese, Korean, Spanish, French, German, Russian, Arabic) with automatic detection or manual switching.
  • Multi-backend support: DeepSeek, OpenAI-compatible endpoints (GLM, Qwen, Kimi, OpenAI), and local Ollama, switchable with one config change.
  • Zero-configuration startup: config files are generated automatically on first run; you only need to enter your API key once.
  • Complete toolchain: bash execution, file read/write/edit, glob/grep search, web search and fetch, background tasks, and task/todo management.
  • Skill system: load domain knowledge on demand via SKILL.md files for more professional behavior in specific scenarios.
  • Subagents: delegate complex tasks to subagents with independent contexts to keep the main session clean.
  • Hooks: Python or Shell hooks for pre/post tool-call interception, audit logs, formatting, and test gating.
  • MCP protocol: connect to external tool servers (GitHub, Filesystem, etc.) via the Model Context Protocol.
  • Context compression: two-level compression (tool-result truncation + LLM summarization) for very long conversations.
  • Secure sandbox: command allowlist, path-escape detection, dangerous-command blocking, sensitive-file protection, and script-injection interception.
  • Docker deployment: can be deployed online via Docker with data persistence and API key isolation.

Related

  • Project
  • Project
  • Project
  • Project
  • Project