# Quickstart

{% hint style="info" %}
We assume you already have credentials to access the Remote Lab. You can request access [here](https://forms.causalchamber.ai/lab).
{% endhint %}

{% stepper %}
{% step %}

### Download the causalchamber package

You can install the [package](https://github.com/juangamella/causal-chamber-package) via pip, i.e.,

```
pip install causalchamber
```

{% endstep %}

{% step %}

### Set up your credentials

Upon [becoming a subscriber](https://forms.causalchamber.ai/lab), you will receive your credentials through a secure link. Store them in a file with the following content

```ini
[api_keys]
user = <YOUR USERNAME>
password = <YOUR PASSWORD>
```

You can also load the credentials using environment variables (see the next step).

{% hint style="warning" %}
Store your credentials in a safe place. Make sure you don't commit them to a public repository!
{% endhint %}
{% endstep %}

{% step %}

### You're done!

Start a connection to the remote lab to see your available chambers and submit experiments

{% tabs %}
{% tab title="Credentials file" %}

```python
import causalchamber.lab as lab

rlab = lab.Lab(credentials_file = 'path/to/file')
```

{% endtab %}

{% tab title="Environment variables" %}
If you stored your credentials in environment variables, e.g., `USER` and `KEY`

```python
import os
import causalchamber.lab as lab

rlab = lab.Lab(credentials=(os.getenv('USER'), os.getenv('KEY')))
```

{% endtab %}
{% endtabs %}

<mark style="color:$primary;">Output</mark>

<figure><img src="https://3492874807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUqYDL9yvLTNUYW7H1Q6t%2Fuploads%2FqcJVnZcRbyvn7qKBscwa%2Frlab_start.jpg?alt=media&#x26;token=ab4046a6-3bfc-4256-8dbd-cf683d2e88aa" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Next steps

Now you're ready to run experiments on the chambers! You can do so in two ways.

{% columns %}
{% column %}
{% content-ref url="running-a-real-time-experiment" %}
[running-a-real-time-experiment](https://docs.causalchamber.ai/remote-lab/running-a-real-time-experiment)
{% endcontent-ref %}

{% endcolumn %}

{% column %}
{% content-ref url="using-the-experiment-queue" %}
[using-the-experiment-queue](https://docs.causalchamber.ai/remote-lab/using-the-experiment-queue)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}
