---
title: "Set up auth.json for Composer"
description: "To enable Composer to access libraries from our GitHub and Repman accounts there needs to be a file called ~/.composer/auth.json on the machine with the…"
canonical_url: "https://codex.republic.se/development/articles/set-up-authjson-for-composer"
section: "Pages"
---

# Set up auth.json for Composer

To enable [Composer](https://getcomposer.org) to access libraries from our [GitHub](https://github.com/republicfactory/) and [Repman](https://repman.io/) accounts there needs to be a file called `~/.composer/auth.json` on the machine with the following code:

```bash
{
    "github-oauth": {
        "github.com": "this-is-your-github-token-7e3f2df055864c"
    },
    "http-basic": {
        "republic.repo.repman.io": {
            "username": "token",
            "password": "this-is-your-repman-token-b2dfe5098e0ec"
        }
    }
}

```

Use your personal token’s password.
