goose self-hosted: remote server and local models

goose can run entirely on company hosts using goose serve, a shared secret, TLS and in-process local models. Enterprise SSO and audit logging are not built in, so plan for outside components.

On this page

Can goose be self-hosted with a remote server and local models?

goose is open source under the Apache-2.0 license, and its repository describes no hosted service and no paid enterprise edition, so self-hosting is the only deployment model the project documents. The remote backend, the shared secret, TLS and in-process local models all belong to the open-source project itself, which means a security lead can evaluate them without a commercial contract. The project is governed under the Agentic AI Foundation at the Linux Foundation, and the source is available in the goose GitHub repository. Confirm the current release and its license terms in that repository before you write them into an approval record.

The remote setup runs goose serve as an external backend for goose Desktop. Binding to --host 0.0.0.0 accepts remote connections, while a localhost binding accepts only local ones, so the bind address is the first network control to set and verify. The shared secret is set through GOOSE_SERVER__SECRET_KEY, is sent to the /acp endpoint, and should be handled like a password, with rotation and storage in your secrets manager. TLS is enabled with --tls or GOOSE_TLS=true and uses a self-signed certificate, so Desktop clients can pin its SHA-256 fingerprint or fall back to trust on first use. Pinning is the stronger choice for managed fleets, and the goose remote server guide sets out the exact steps.

Several enterprise controls are not built into goose. The project does not provide single sign-on with your identity provider, central audit logging of agent actions, or role-based access control, so the remote server authenticates a shared secret rather than individual staff. Your team will need to cover these with a reverse proxy or gateway that enforces identity, a log pipeline that captures server and tool activity, and an operating process for who may run the server and who holds the secret. Ask your architects to document these components as part of the rollout design, and test them against the bind address and TLS settings before any staff connect.

Self-hosting capabilities by option

This table compares each self-hosting building block for goose against its status in the open-source repository and documentation as read in November 2026. Read the status column first: items marked as built in ship with goose, while items that need your own infrastructure or an outside product must be planned and tested by your team.

CapabilityStatusWhat to confirm
goose serve remote backendBuilt in, open sourceConfirm the goose version you deploy matches the remote server docs you reviewed
Bind address with --hostBuilt inConfirm 0.0.0.0 is used only where remote Desktop clients must connect, with network controls in front
Shared secret via GOOSE_SERVER__SECRET_KEYBuilt in, sent to the /acp endpointConfirm your process for generating, rotating and storing the secret as a password
TLS with self-signed certificateBuilt in, enabled with --tls or GOOSE_TLS=trueConfirm your certificate trust model and how fingerprints are distributed to Desktop users
Fingerprint pinning or trust on first useBuilt in, Desktop optionConfirm whether trust on first use is allowed by your policy or pinning is required
In-process local modelsBuilt in, no separate model server neededConfirm model licenses, hardware capacity and where model files are stored
Self-hosted prompt injection classifierBuilt in as an option, requires your own ML endpointConfirm you can host an endpoint that follows the Classification API Specification and who maintains it
Hosted service or paid enterprise editionNot described in the repositoryAsk the project or a vendor in writing whether any hosted or supported tier exists
SSO and central audit loggingNot documented in the repositoryPlan outside components such as an identity provider or log pipeline and test them against goose

How goose serve moves the agent onto company hosts

goose Desktop can use goose serve as an external backend, which moves the agent process onto a host you control while the desktop app stays on the employee's machine. The bind address is the first control to decide. Binding to localhost accepts only local connections, while binding to 0.0.0.0 accepts remote connections from other hosts on the network. Treat the bind address as an exposure decision, not a convenience setting: confirm which network segment can reach the host, whether a firewall or internal load balancer restricts access, and who is allowed to change the setting. The goose remote server documentation describes both modes and is the document your platform team should test against before approving any remote deployment.

Remote connections reach the agent through the /acp endpoint, which is protected by a shared secret set with the GOOSE_SERVER__SECRET_KEY configuration key. Handle that secret like a password: generate it randomly, store it in your organization's secrets manager, rotate it on a defined schedule and after any staff change, and never place it in shared configuration files or chat logs. Because the secret is the only authentication step in this design, anyone holding it can drive the agent from any permitted network location. Confirm with the vendor whether the shared secret is the only authentication mechanism in the release you plan to deploy, and whether per-user identity is recorded anywhere, since a single shared secret does not identify individual users in logs.

TLS is enabled with --tls or GOOSE_TLS=true, which uses a self-signed certificate. goose Desktop can then pin the certificate's SHA-256 fingerprint or fall back to trust on first use. Pinning is the stronger choice for a managed fleet: the fingerprint is distributed through your own change process, so a substituted certificate fails the check. Trust on first use is simpler but accepts whatever certificate is presented the first time, which weakens the protection. Separately, the model provider decision is independent of this transport design. goose can connect to a hosted model provider or load local models in-process without a separate model server, and each choice moves a different data path. The prompt injection classifier can also run on your own endpoint that follows the goose Classification API Specification, as described in the goose prompt injection detection documentation. Confirm the classifier's network path, hosting location and logging before assuming it keeps content inside your boundary.

Request flow from Desktop to company host

The flow starts in goose Desktop, which connects over TLS to goose serve running on a company host. The shared secret set through GOOSE_SERVER__SECRET_KEY is presented to the /acp endpoint, and the server accepts or refuses the request on that basis. The agent then calls either a model loaded in-process on the host or a chosen model provider, and can also send prompt injection checks to a classification endpoint the organization runs itself. Check the bind address, the TLS certificate handling on each Desktop, and where each model call leaves the network.

Desktop-to-host request path with the model and classifier options.

Decisions to make before deploying the remote backend

Running goose against a company host moves several trust decisions onto your side of the network: who can reach the backend, how clients verify it, who holds the shared secret, and where model calls and classification run. Each card below is one decision to settle in writing before the first desktop client connects.

Bind address and reachability

The remote server binds to localhost by default, which accepts only local connections. Setting --host 0.0.0.0 accepts connections from any interface that can route to the host, so the backend becomes reachable by every user and workstation on that path. Decide which interface, subnet or VPN segment should reach the port, and confirm the host firewall allows only those sources. Check this on the actual host, since the bind setting alone does not limit who reaches it.

Remote server docs

Certificate trust model

TLS is enabled with --tls or GOOSE_TLS=true using a self-signed certificate, so no public certificate authority vouches for the host. Desktop clients can pin the SHA-256 fingerprint, or fall back to trust on first use, which accepts whatever certificate appears on first connection. Pinning is the stronger choice for a managed fleet, but someone must distribute the fingerprint to every workstation through a trusted channel. Decide who owns that step and how a changed fingerprint is verified before clients accept it.

Shared secret ownership and rotation

The shared secret is set with GOOSE_SERVER__SECRET_KEY and sent to the /acp endpoint, so anyone holding it can use the backend. Treat it like a password. Name the team that generates it, the store where it lives, and the list of people and clients who receive it. Write a rotation procedure that updates the host and every desktop client together, and define how a leaked secret is revoked and replaced on short notice.

Local model or external provider

goose can load local models in-process, so prompts stay on the host. goose also connects to more than 85 external model providers, and each provider receives the prompts, code and tool results that goose sends in a session. Decide which providers are approved for each data class, and confirm the contract terms for retention and training with each provider. Record which configuration each team uses, since a single user setting can change where data goes.

Network segmentation for the host

The backend runs commands and reads files on the machine that hosts it, so its network position matters as much as its settings. Place it in a segment that cannot reach production databases, internal administration interfaces or secrets stores unless that access is needed. Limit outbound traffic to the model endpoints you approved, plus any classification service. Confirm with your network team which egress rules apply, and log connections to and from the host.

Classifier location and visibility

The prompt injection detection feature can call an organization-run ML classification endpoint that follows the goose Classification API Specification, which uses the Hugging Face Inference API format. Decide whether the classifier runs on the same host, in a separate internal service or in a provider-hosted service. Whichever you choose, it receives the text it inspects, so confirm where that text is stored, who can read its logs and whether it is retained.

Prompt injection docs

How the answer changes by environment

A single team that runs goose serve on one company host for Desktop clients usually needs the least governance machinery, but the shared secret becomes the only access control. Everyone who holds it can reach the same backend, so the secret is effectively the identity boundary for the whole team. The remote server docs describe the secret as set through GOOSE_SERVER__SECRET_KEY and sent to the /acp endpoint, and they say to treat it like a password.

  • Bind deliberately: --host 0.0.0.0 accepts remote connections, while a localhost binding accepts only local ones. Choose the narrowest binding the team can use.
  • Enable TLS: --tls or GOOSE_TLS=true uses a self-signed certificate, so decide whether clients pin the SHA-256 fingerprint or accept trust on first use.
  • Rotate the secret: Plan a rotation path for when a team member leaves or a laptop is lost, since one shared value covers everyone.
  • Limit the network path: Restrict which subnets or VPN segments can reach the port.
  • Keep extension and permission settings explicit: Confirm which tools the shared backend can run before the team relies on it.

Before approving this setup, confirm with your own security team that a single shared secret meets your password and rotation policy, and that nobody can attribute actions to an individual because all sessions share one credential.

Order of work to put the remote backend in production

This sequence moves goose serve from a test host to a production backend that only approved staff can reach, with encrypted connections, a managed shared secret and a prompt injection classifier checked before any user depends on it. Each step ends with a check the reviewer can repeat.

  1. Confirm the data path and model choice

    The platform or security lead records where prompts, file contents and tool output will travel, and which model provider or local model will answer them. Decide whether requests leave the organization for a hosted provider or stay on company hosts with a model loaded in-process. Confirm the contract and data retention terms of any external provider with that provider, since goose itself does not set them. Done when the data flow diagram names every destination and the approving owner has signed it.

  2. Decide the bind address and network boundary

    The engineering lead chooses whether goose serve listens on localhost or accepts remote connections. Binding to 0.0.0.0 with the --host option accepts connections from other machines, so the host should sit on a segment that only approved desktops can reach, and firewall rules should allow only those sources. Localhost binding accepts only local connections and is the safer default until remote use is approved. Done when a scan from an unapproved subnet cannot reach the port and the rule set is recorded in change management.

  3. Generate and store the shared secret

    The security team generates a long random value and stores it in the organization's secret manager, not in a shell profile, a repository or a shared document. The value is set through the GOOSE_SERVER__SECRET_KEY variable and is sent to the /acp endpoint, so treat it like a password with an owner, a rotation procedure and access limited to the people who run the host. Confirm that process listings and service logs do not print it. Done when the secret manager shows the entry, its access list and a rotation owner.

  4. Set up TLS and certificate distribution

    The engineer enables TLS with the --tls option or the GOOSE_TLS=true variable. goose uses a self-signed certificate by default, so the team must decide how desktops will trust it and document the certificate's lifecycle. Confirm with the security team whether an internally issued certificate is required by policy before go-live. Done when a connection from a test desktop completes over TLS and the certificate owner and expiry process are written down.

  5. Pin or verify the fingerprint on desktops

    Administrators record the SHA-256 fingerprint of the certificate and configure goose Desktop to pin it. Where pinning is not practical, the desktop falls back to trust on first use, which accepts whichever certificate it sees first, so that fallback should be a documented and accepted risk. Compare the fingerprint shown on the host with the one on a sample of desktops before rollout. Done when every managed desktop shows the expected fingerprint and a change to the certificate triggers a planned update.

  6. Add identity and logging in front of the host

    goose's shared secret does not identify individual users, so the team should place an authenticating reverse proxy, VPN or zero trust gateway in front of the host and tie access to named accounts. Forward the host's logs to the central logging platform and confirm which events are captured, such as connection attempts, failed authentications and session starts. Confirm with the vendor or your own environment what is recorded by default before relying on it for an investigation. Done when a sample login appears under a named user in the central log.

  7. Test that unauthenticated and wrong-secret requests fail

    The tester runs requests to the /acp endpoint with no secret, with an incorrect secret, and with the correct secret from an approved source. The first two must be refused and the third must succeed, and the refusals must appear in the logs. Repeat the test over an unencrypted connection to confirm that TLS is required where the policy says it is. Done when the test results, with dates and the tester's name, are filed with the change record.

  8. Run prompt injection checks against your classifier

    If the organization runs its own classification endpoint under the goose Classification API Specification, the security team sends a set of known injection and benign test inputs to it and records the results. Confirm that the endpoint follows the Hugging Face Inference API format the specification uses and that its responses match what goose expects. Review false positives and false negatives with the business owners before users rely on the classifier. Done when the test set, the results and the accepted miss rate are approved by the security owner.

Evidence a security reviewer will ask for

This table lists the controls a reviewer will test for a self-hosted goose deployment, the evidence to request for each, and where that evidence comes from. Use it as a request list: the tool documentation explains what each setting does, while the organization's own systems hold the proof that it is set and enforced. A gap in any row is a question to resolve before approval, not a detail to close after rollout.

ControlEvidence to requestWhere it comes from
Bind address configurationStartup command or service definition showing the host flag for goose serve, plus a test from outside the intended network showing the port is unreachableHost configuration and deployment records, checked against the remote server documentation
Secret storage and rotation recordLocation of the GOOSE_SERVER__SECRET_KEY value, access list for that store, and dated rotation entries with the person who approved each changeOrganization's secrets manager and change tickets
TLS certificate and fingerprint recordsCertificate issuance and expiry dates, the SHA-256 fingerprint recorded for each goose Desktop client, and whether clients pinned it or used trust on first useCertificate inventory, endpoint configuration, and the remote server documentation
Model provider or local model data flowDiagram of which models run in-process and which external providers receive prompts, with the provider contract and data retention terms for each external providerArchitecture records, provider agreements, and the goose provider configuration on each host
Classifier endpoint configurationEndpoint address and model version for the self-hosted prompt injection classifier, the Classification API Specification version it follows, and the test results showing it respondsClassifier deployment records and the prompt injection detection documentation
Network access logs from the hostFirewall and host logs covering the serve port, the classifier endpoint and outbound model traffic, with retention period and who can read themHost logging, SIEM, and network firewall exports
Gateway or identity layer recordsProof that a gateway, VPN or identity-aware proxy sits in front of the server, its access policy, and the list of users or groups permitted to connectGateway or identity provider configuration and access review records

Questions buyers ask before approving goose self-hosting

Is there a paid goose edition with SSO for enterprises?

The goose repository does not describe a hosted service or a paid enterprise edition, so do not assume one exists. goose is open-source software released under the Apache-2.0 license, and the repository does not list single sign-on as a built-in feature of the remote server. Confirm with the project maintainers and in the current documentation whether any commercial distribution, identity integration or support tier is offered before you budget for it. Until you confirm, plan on shared-secret authentication for the goose serve backend and put identity controls in front of it at the network layer, using your existing reverse proxy or access gateway.

What does a self-hosted goose setup cost, and what drives the effort?

The software license cost is zero under Apache-2.0, so the spend sits in people, infrastructure and model access. The main cost components are your internal platform team time to run the goose serve host, TLS certificate handling and network placement; the compute for the host and any local models; the model provider bills if you use hosted APIs; and, if you add a classifier, the hosting and maintenance of that endpoint. Effort rises with the number of users, the number of hosts, how strictly you pin certificates, and how many model providers you allow. Ask any implementation partner for a fixed-scope written quote that lists each component, what is one-time and what recurs, and who operates each part after handover.

Do local models remove all external data flow from goose?

Local models reduce external data flow but do not remove it automatically. goose can load local models in-process without a separate model server, so prompts for those sessions do not need to leave the host. However, goose is also designed to connect to more than 85 model providers, and extensions, tools or the prompt injection classifier may send data elsewhere if you configure them to. Check every provider, extension and telemetry setting in the deployed configuration, then test egress with network logs on a representative workstation or server. Treat the result as your own evidence, since no vendor document in the supplied material certifies the full data path.

Must the prompt injection classifier be self-hosted?

No, the classifier is not mandatory to self-host, but self-hosting is the option that keeps classification traffic inside your environment. The goose prompt injection detection documentation says an organization can run its own ML classification endpoint that follows the goose Classification API Specification, which uses the Hugging Face Inference API format. If you choose a hosted classifier instead, that service receives the content it inspects, so route it through your data classification and vendor review first. Either way, confirm the endpoint, model and failure behavior in your own test environment, because a classifier is one control among several and not a complete defense against prompt injection.

How long does a goose self-hosted rollout take, and what must we provide?

The duration depends on scope, not on a fixed number of days, so ask for a timeline in the written scope rather than relying on a generic estimate. The timeline is driven by how many hosts and users are in scope, whether you need local models or a remote backend, whether you deploy a self-hosted classifier, and how long your change, certificate and security review cycles take. Before work starts, your organization typically needs to provide a host or cloud account, network placement and firewall rules, a certificate authority or decision on self-signed certificates with fingerprint pinning, a secret management process for the shared secret, the model access decision and named approvers for each control.

Can our own engineers run goose self-hosting without outside help?

Yes, a capable internal platform or security team can deploy goose on company hosts using the public documentation, and the choice depends on capacity and risk tolerance. Your team needs skills in Linux service operation, TLS and certificate management, secret handling, network segmentation and endpoint configuration, and it must own patching and monitoring after go-live. An outside partner can take on the work under a fixed-scope written agreement, and DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, with ongoing support available as a retainer. Decide based on which skills you can keep staffed over time.

Does self-hosting goose make us compliant with HIPAA or GDPR?

Self-hosting keeps the deployment under your control, but it does not make goose compliant by itself. Compliance depends on how you configure access, logging, data handling, model providers and retention, and on your documented controls. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications, and independent auditors and certification bodies make those determinations. Ask your legal, privacy and compliance teams to map each data flow, including any model provider or classifier endpoint, against your HIPAA or GDPR obligations before approval.

How DeployOpen helps roll out goose safely on company hosts

DeployOpen approaches goose self-hosted as a written, fixed-scope engagement covering the remote server, shared-secret and TLS settings, local in-process models and an optional self-hosted prompt injection classifier. Each step is agreed in writing before work starts, inside the client's own infrastructure.

How we scope

  • Confirm which hosts will run goose serve and whether they accept remote connections or stay bound to localhost.
  • Document which users connect from goose Desktop and which model providers or local models each group may use.
  • Agree in writing whether a self-hosted prompt injection classifier is in scope, and which endpoint it will call.
  • Engagements are fixed-scope, with deliverables and timelines agreed before work begins.

How we build

  • Configure the remote backend with a shared secret stored in the client's secrets management, never in shared config files.
  • Enable TLS and decide with the client whether Desktop clients pin the certificate fingerprint or use trust on first use.
  • Set up local in-process models on approved hardware and test that no traffic leaves the network for those sessions.

How we hand over

  • Test the deployed remote server, TLS configuration and access path against the written scope before sign-off.
  • Deliver documentation of configuration keys, network exposure, certificate handling and secret rotation ownership.
  • Hand over runbooks so the client's own staff can operate, rotate credentials and restart the service.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the build.
  • Retainers can cover goose version upgrades, certificate renewal reviews and re-testing after configuration changes.
  • Ask any provider to confirm how support, upgrades and access to the company's environment are handled in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.