# Berd

> A custom desktop application with a bundled goose backend connected over ACP.

- 网址：https://funcoding.ai/agents/goose/oi-kit/demos/berd/
- 来源：goose 官方文档原文（英文），Apache-2.0 许可，同步于 2026-11-20
- 官方原文：https://goose-docs.ai/docs/oi-kit/demos/berd

---
Berd is a desktop application for working with AI agents, built with Tauri and
React. It provides its own interface and distribution while using a bundled
goose process as its agent backend.

Built with **goose over ACP**, using a WebSocket connection to `goose serve`.

[Source](https://github.com/block/berd)

![Berd's desktop interface with projects, conversations, and a prompt composer](https://raw.githubusercontent.com/block/berd/main/src/features/onboarding/assets/tour-1.png)

_An onboarding image from the [Berd repository](https://github.com/block/berd/blob/main/src/features/onboarding/assets/tour-1.png)._

## The clever bit

You can build a different desktop product without forking the agent runtime.
Berd owns its interface, application lifecycle, and packaging. The bundled
goose backend provides the agent execution behind an ACP boundary.

The backend is pinned to a specific revision, so a distribution can ship a
known frontend/backend pair instead of relying on whatever goose version is on
the user's `PATH`. The same repository also has distribution hooks for managed
settings and private resources without putting those resources in the public tree.

This is the application-level route: use the complete goose binary, rather than
assemble a runtime from individual oi-kit crates.

## How it works

1. During setup, prepare the goose revision recorded in `goose-backend.lock.json`
   and build the vendored TypeScript SDK.
2. Start a long-lived `goose serve` child process on a local port, with a
   per-launch authentication secret.
3. Connect to its `/acp` endpoint over WebSocket and route session updates to
   the application.
4. Package the backend as a Tauri sidecar for distribution.

The [process service](https://github.com/block/berd/blob/main/src-tauri/src/services/acp/goose_serve.rs)
starts the backend with an explicit local address and port:

```rust
command
    .arg("serve")
    .arg("--enable-scheduler")
    .arg("--host")
    .arg(LOCALHOST)
    .arg("--port")
    .arg(port.to_string());
```

It also passes `GOOSE_SERVER__SECRET_KEY` and manages the child process lifetime.
The [ACP commands](https://github.com/block/berd/blob/main/src-tauri/src/commands/acp.rs)
and [SDK](https://github.com/block/berd/tree/main/sdk) show the connection from the
application side. For the underlying transport, see
[using goose over ACP](https://funcoding.ai/agents/goose/oi-kit/acp/).

## Run it yourself

You need the Rust, JavaScript, and native dependencies for a Tauri desktop build.
Setup builds the pinned goose backend as well, so allow time for the initial
build. Consult the [README](https://github.com/block/berd#getting-started) and
[development commands](https://github.com/block/berd/blob/main/justfile) for
platform-specific requirements.

```bash
git clone https://github.com/block/berd.git
cd berd
just setup
just dev
```

Configure a model provider in the application before starting an agent session.
For a packaged build, the repository's
[bundling instructions](https://github.com/block/berd#bundling-and-distributions)
explain how to stage and include the backend.
