# boulderopalscaleup.QctrlScaleUpClient._\_init_\_

Source: https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/client/boulderopalscaleup.QctrlScaleUpClient.__init__

```python
QctrlScaleUpClient.__init__(organization_slug=None, api_key=None, local_mode=False, api_url='scaleup.api.q-ctrl.com', runtime=None, *, headless=False)
```

Initialize the client.

### Parameters
* **organization_slug** (*str* *or* *None* *,* *optional*) – The name of the organization using the Scale Up API. If not provided,
  the value is retrieved from the environment variable QCTRL_SCALE_UP_ORGANIZATION_SLUG.
* **api_key** (*str* *or* *None* *,* *optional*) – The API key for authenticating with the Q-CTRL server. If not provided,
  the key is retrieved from the environment variable QCTRL_API_KEY.
* **api_url** (*str* *,* *optional*) – The URL of the Boulder Opal Scale Up server. Defaults to the value of SERVER_URL.
* **local_mode** (*bool* *,* *optional*) – If True, uses a local unauthenticated server. Defaults to False.
* **runtime** ([*Runtime*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/runtime/Runtime.md#boulderopalscaleup.runtime.Runtime) *or* *None* *,* *optional*) – The runtime instance to use for executing programs.
* **headless** (*bool* *,* *optional*) – If True, plots are not rendered and yes/no prompts from the server are answered
  “y” instead of waiting for input, so the client can run unattended. Messages are
  still printed. Defaults to False.
### Raises
**RuntimeError** – If no API key or organization slug is provided and the corresponding
    environment variable is not set.
