Use goose as an ACP agent
Use the Agent Client Protocol (ACP) to build clients that connect to goose's agent runtime, tools, extensions, and configured models. These clients can be code editors, desktop, web, or mobile apps, automated services, or other custom integrations.
For methods provided by goose in addition to the standard ACP methods, see the goose ACP Reference.
Install
Choose one installation method based on how your ACP client runs goose.
Install the goose CLI
Install the goose CLI to configure a client
to launch goose acp or to run goose serve yourself.
Install from the ACP Registry
Supported ACP clients can install and manage goose for you through the goose entry in the ACP Registry. This does not require a separate goose CLI installation.
Run the agent
Connect over stdio
Configure your ACP client to launch goose as a subprocess with this command:
goose acp
The client communicates with goose through stdin and stdout and manages the process for the lifetime of the connection.
Connect over HTTP or WebSocket
Run goose serve when your ACP client connects over HTTP or WebSocket:
GOOSE_SERVER__SECRET_KEY='a-long-random-secret' goose serve
GOOSE_SERVER__SECRET_KEY sets the secret your clients use to authenticate.
When you run goose serve directly, it listens on 127.0.0.1:3284 and exposes
the ACP endpoint at /acp. To use a different address, pass --host and
--port.
Authentication
HTTP clients authenticate with the X-Secret-Key header. WebSocket clients can
use the same header, but browser-based WebSocket clients must pass the secret in
the ?token= query parameter. Requests without the correct secret receive a
401 Unauthorized response.
Passing --dangerously-unauthenticated starts goose serve without
authentication. Use it only when the server is isolated from untrusted traffic.
Browser origins
Most clients do not need to configure origins. Browser-based clients served from a non-loopback origin must allow that origin when starting goose. To allow both a local development client and a deployed web client, specify both origins:
GOOSE_SERVER__SECRET_KEY='a-long-random-secret' goose serve \
--allowed-origin 'http://localhost:5173' \
--allowed-origin 'https://app.example'
Specifying any --allowed-origin values replaces the default loopback origins,
so include every origin your clients need, including localhost origins used for
development. Origins must match exactly, including the scheme and port.
For remote deployment, TLS, and certificate setup, see
Running a Remote goose Server.
Run goose serve --help for the complete list of options.
ACP client examples
Clients over stdio
Browse the official ACP clients directory for clients that can run local ACP agents. For a worked example of installing and configuring goose as a stdio agent, see the Zed setup example.
goose Desktop over WebSocket
goose Desktop is an
ACP client that uses WebSocket. It starts goose serve locally on an available
loopback port and connects to its /acp endpoint over WebSocket.