# Composer - 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. A Composer registry can be set up by providing an `auth.json` file.

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

**Prepare auth.json**

For private Composer packages, Aikido uses a `auth.json` file to authenticate with the private registry. This file will overwrite the auth.json in the root of the repository before the AutoFix starts but will not be added as part of the Pull Request. It is possible to configure multiple private registries in this file.

Example `auth.json` for accessing private packages on GitHub's Composer registry:

```
{
    "github-oauth": {
        "github.com": "<your-github-token>"
    }
}
```

Other configuration option for `auth.json` can be found [here](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).

## Configuration in Aikido <a href="#configuration-in-aikido" id="configuration-in-aikido"></a>

Once write access to the repos is set up, you can configure Aikido to authenticate with your private Composer registry by following the steps below:

1. Go to your account's settings page for the Autofix in Aikido, [here](https://app.aikido.dev/issues/fix/settings).
2. Click on "*Connect Registry*", the modal below will now be shown

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

3. Select "Composer" as package manager

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

4. Fill in your auth.json with authentication information. Aikido securely encrypts your configuration file until just before they are used.
5. Click "*Connect Registry*" to save the configuration


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
