# Set up

### Generate API Key

To get started, first [create an account](https://www.welltested.ai/#pricing) and get an API key.

{% hint style="info" %}
IDE Assist: You may also directly use [*`Set API Key`*](https://docs.welltested.ai/v1/ide-assist/commands#set-api-key) to setup the .env file and required dependencies.
{% endhint %}

### Add package from pub.dev

To your pubspec.yaml, add the [welltested](https://pub.dev/packages/welltested/install) package:

```
dependencies:
    welltested: ^1.0.4
```

or run

```
dart pub add add welltested
```

### Setup .env file

Create a `.env` file in root of your project, and add your key received in the email.

```
WELLTESTED_API=YOUR_API_KEY
```

We uses `dotenv` to retrive API Key. Once `.env` file is created, please declare it as an asset in `pubspec.yaml` to make is accessible to the package.

```yaml
assets:
  - .env
```

That's all, we are good to go!&#x20;
