# Getting Started

In this short guide, you will learn how to integrate the Keyless Web SDK in your web application, and enroll and authenticate users through the Keyless platform.

Before jumping into your code editor, make sure that you're familiar with the various [components](/web-sdk/introduction/components.md) of the authentication system, and common biometric [authentication flows](/web-sdk/introduction/integration-flows.md).

### Prerequisites

Make sure to read the following page:

{% content-ref url="/pages/rckjbT7xlk4ixJICSrDl" %}
[Prerequisites](/web-sdk/web-sdk-guide/prerequisites.md)
{% endcontent-ref %}

### Keys

Make sure you have all the required keys.

* `CLOUDSMITH_TOKEN` to download the Web SDK from cloudsmith repository
* `CUSTOMER_NAME` to define the customer
* `KEYLESS_AUTHENTICATION_SERVICE_URL` to estabilish a connection
* `IMAGE_ENCRYPTION_PUBLIC_KEY` for the image encryption to work
* `IMAGE_ENCRYPTION_KEY_ID` for the image encryption to work

### Installation

{% tabs %}
{% tab title="Package Manager" %}
First of all you must authenticate with our cloudsmith repository, in the root of your project folder create a file called .npmrc and write this line inside:

```bash
@keyless:registry=https://npm.cloudsmith.io/keyless/partners/
```

Then with the token that was given to you by Keyless, launch this command on your terminal:

```bash
npm config set //npm.cloudsmith.io/keyless/partners/:_authToken=CLOUDSMITH_TOKEN
```

Now you’re all set to install our packages. Meaning that you can now successfully install `@keyless/sdk-web` by launching the following command on your terminal:

```bash
npm install @keyless/sdk-web@2.4.1
```

Of course you’re free to use a package manager of your choice.\
Installing the `@keyless/sdk-web-components` package is the same and can be done with:

```bash
npm install @keyless/sdk-web-components@2.4.1
```

{% endtab %}

{% tab title="CDN" %}
Add the following scripts at the end of your head tag, any other usage without integrity checks is strongly discouraged.

```html
<script type="importmap">
  {
    "integrity": {
      "https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.1/index.js": "sha512-O868CYe1Y5J8APgf2RK6iE5j455Jp6wDW1uKVkRbt1F2pRMT3AoJqqZfPejurikXpBZCP6UCgrMBpadToI8N+w==",
      "https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.1/wasm.js": "sha512-Y8HSRB2FDYjenMu94Yy0ViAQntMO59iTERDVvCI8ZXvKEQG5yMhOUQrhVXxHlBDkcEeuVrhe4m1hSpnD8Rt89Q==",
      "https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.1/pthreads/wasm.js": "sha512-p07VCIVvvwGFxrEcj1y0nbklYnye3Rvfolf/S1/7FMnC+CMMPOsy3xquxJkKgksDp5ch9gqQg0lsRXvZThqb1Q=="
    }
  }
</script>
<script
  crossorigin="anonymous"
  integrity="sha512-O868CYe1Y5J8APgf2RK6iE5j455Jp6wDW1uKVkRbt1F2pRMT3AoJqqZfPejurikXpBZCP6UCgrMBpadToI8N+w=="
  src="https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.1/index.js"
  type="module"
></script>
```

{% endtab %}
{% endtabs %}


---

# 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://docs.keyless.io/web-sdk/web-sdk-guide/getting-started.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.
