Most agent demos are read-only. They answer questions, summarize documents, and suggest next steps. The harder problem starts when an assistant needs to create a ticket, change an order status, or send a message: the business system changes state, and someone has to be accountable for it.
Baize is a self-hosted, single-binary Go service with an embedded web console. It sits between existing business systems and an OpenAI-compatible model, turns existing APIs into a tool catalog, pauses configured writes for human approval, and records each run.
It usually does not require changes to business code. The business system remains the system of record.
Three modules
| Module | Responsibility | What it includes |
|---|---|---|
| Access | Turn existing APIs into tools the assistant can call | OpenAPI/Swagger import, HTTP plugins, MCP client, execution callbacks; tool catalog and diffs on re-import |
| Execution | Run a task and handle human checkpoints | Conversations, optional linear workflows, grouped subtasks; web, mobile, messaging, Webhook, and scheduler entry points; write approvals and hosted login; persistence and recovery |
| Governance | Keep records and team controls | Run records, contract diffs, evaluations, roles, budgets, retention, alerts |
Access decides what can be called. Execution decides how a task runs. Governance decides what can be inspected later. The three modules share the same tool catalog and run record format.
Baize sits beside the business systems. It calls them through APIs; the business database remains under the business system's control.
Four enterprise patterns
These are representative patterns built from current capabilities, not named customer references.
| Pattern | Flow | What the business gets |
|---|---|---|
| Customer support | Message channel or web console → look up orders, customers, and history → draft a reply → approval before creating a ticket or issuing a refund → write the result back | Fewer tabs between order, ticketing, and CRM systems; refunds and order changes gated; a replayable trail |
| Ops and alerting | Webhook alert → inspect monitoring, logs, and past tickets → propose an action → approval before restarting or changing a service → write back the result | Alert, monitoring, and ticketing in one session; risky actions gated; records for handoff |
| Sales and operations | Scheduler or chat → query CRM, orders, and campaign data → summarize the week → draft a report → approval before export or send | Less manual tab-hopping; a draft report in the session; customer-data export gated |
| Internal policy and requests | Message channel or web console → search policy documents → draft a request → approval before submission → return the status | Fewer repeated HR/admin questions; a draft request; a submission trail |
One support scenario: the Access module imports order, ticketing, and CRM APIs; Execution receives the message and calls tools; a write pauses for approval; Governance records the approver and the result. The other patterns reuse the same modules. There is no separate chat frontend or approval path per scenario.
Channel integrations are configured per deployment.
How a write is controlled
Reads run directly. Writes pause for approval. Waiting does not occupy an execution worker; the run can continue after a restart.
Reads and drafts run directly. Writes — ticket creation, status changes, outbound messages, refunds — can require approval.
The approval card shows the tool, arguments, and fields to change. An approver can approve, reject, or comment. Waiting does not occupy an execution worker; the run can continue after a restart. The default timeout is 24 hours and can be disabled.
If the downstream system needs a login, the run pauses with a hosted login page. Credentials are bound to the session identity and reused later; the password does not pass through the model.
There are three execution modes:
Autonomous execution, linear workflows, and grouped subtasks. All three share the same tool catalog, approvals, and run records.
Autonomous execution is the default: the model chooses the next step from the conversation and tool results. A linear workflow fixes the steps at configuration time and supports conditional skips, retries, per-step timeouts, and step-level approvals. Grouped subtasks use one level of grouping, which keeps approval scopes and run records predictable.
A ticket-creation step can require approval. After approval, the tool runs and the result returns to the session.
What happens when a run is interrupted
Entry points include the web console, mobile, messaging channels, Webhook, and the scheduler. A conversation has at most one active run, which avoids concurrent writes overwriting each other.
Runs are persisted. After a process exit, unfinished runs can be reclaimed. Scheduled jobs, webhook ingress, retries, and message delivery are handled. Delivery is at-least-once, so a rerun window exists.
If a workflow step cannot be recovered after an interruption, it is not replayed automatically. The UI marks it as “may have run” and asks for manual verification.
SQLite supports in-app backup, download, and restore; Postgres supports backup and point-in-time recovery. Recovery time depends on data volume and hardware.
Standard capabilities include streaming, Markdown, image and PDF preview, pin/archive/tags, search, export, fork/rollback, file parsing, and memory. They are not covered here.
Records, evaluation, and team controls
| Record | What it captures |
|---|---|
| Run binding | Model, policy, memory, tool definitions, and catalog version used by the run |
| Tool calls | Arguments, result, approver, and execution count |
| Contract changes | Diff on re-import and catalog revision history |
| Audit | Actor, role, action, result, and time |
Run binding stores the tool definitions used at the time. After an API re-import, contract diffs show what changed, and run binding shows which definitions a run actually used.
Evaluation sets check tool behavior and terminal state. A baseline and a candidate run the same cases; a regression fails the pipeline.
| Team control | What it does |
|---|---|
| Roles and workspaces | Operator, admin, and read-only users; read-only users can be scoped to one workspace |
| Cost and budgets | Daily or monthly budgets at the global, agent, model, conversation, and workspace levels; 80% warning and 100% hard stop by default, both configurable |
| Retention and alerts | Retention by scope; budget alerts, cost anomalies, failure bursts, and pending approvals sent to a generic Webhook or email, with thresholds and cooldowns |
Budgets are advisory by default. With hard limits enabled, new runs over budget are rejected. Retention cleanup previews matches before deleting.
Deployment
Source builds require Go 1.27+, Node.js 20+ for the web console, and an OpenAI-compatible model key. Copy .env.example to .env, set BAIZE_API_KEY, then run serve.cmd on Windows or scripts/serve.sh on macOS/Linux. The console is at http://127.0.0.1:8080/ui.
Prebuilt packages need BAIZE_API_KEY. In production, set BAIZE_SETTINGS_KEY to encrypt stored secrets; without it, encrypted config writes are unavailable. Docker uses docker compose up -d --build, with data at /app/data. On startup, baize serve validates llm.provider=openai_compatible, BAIZE_API_KEY, llm.base_url, and llm.model; missing values fail fast.
Where Baize fits
| Scenario | What Baize provides |
|---|---|
| Adding an assistant to systems you do not want to rewrite | Sidecar integration; tools configured from existing APIs |
| Handling queries, ticket creation, and approvals from one entry point | Conversations, approval cards, and run records |
| Running assistants across business domains and teams | Workspaces, roles, budgets, and retention |
| Self-hosted or intranet deployment | Single-node start; scale to multiple instances |
Baize runs as a sidecar. Your business systems remain the system of record. What you can connect and execute depends on the APIs, account permissions, and deployment environment.
MIT licensed. Source code and developer documentation:



Top comments (0)