> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/autofix-and-remediation/connect-private-packages/go-private-packages.md).

# Go - Private Packages

For Aikido to update dependencies that include private packages, it needs access to your private registries so it can generate accurate lockfile updates. Follow the steps below to configure private Go packages hosted on GitHub or GitLab.

1. Navigate to the [autofix settings](https://app.aikido.dev/issues/fix/settings) page and click on "*Connect Registry*"
2. Select "*Go*" as your Package Manager

<figure><img src="/files/4QQzBRmYrK4gOIWgNrKZ" alt=""><figcaption></figcaption></figure>

3. In the modal below, enter the private registry host, this is the hostname with the path to the repo where the package is being hosted. Aikido will expose this as the `GOPRIVATE` env variable during the update process.
4. eg for GitHub: `github.com/[ORG]/[REPO]`
5. eg for Gitlab: `gitlab.com/[ORG]/[REPO]`

Aikido uses this value to set the `GOPRIVATE` environment variable, so it can be a list of comma-separated glob patterns of module path prefixes that should be considered private (eg. `github.com/myorg/*` or `gitlab.com/myorg/repo1,gitlab.com/myorg/repo2`.

1. Next create a personal access token in either GitHub or Gitlab with read-only access for that repository and it to the token field

<figure><img src="/files/yUF7Cj6Yce1nDonifX2a" alt=""><figcaption></figcaption></figure>

5. Click on "*Connect Registry*"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/autofix-and-remediation/connect-private-packages/go-private-packages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
