> For the complete documentation index, see [llms.txt](https://docs.keyless.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyless.io/web-sdk/web-sdk-guide/getting-started.md).

# 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.2
```

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.2
```

{% 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.2/index.js": "sha512-4jp5UUEZHav4b06k/IkjIQXTIpEgdNzqiBCrzP/NQXI1OV/kqGg3h48i80AWlukASE7nC8Y12lxX/NFRU2hI+Q==",
      "https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.2/wasm.js": "sha512-OQrM7RpnuVjYHAOpm1IS+OERhKrk4z+vpdxNN1lZx/66671IpgMN1kcU54EhcD9nfozM8QdI8CvgFai+rxQVIA==",
      "https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.2/pthreads/wasm.js": "sha512-BSBzQIe9tSSVHhXsnNhlqFibmqdjssnx4kSmVh8pXP/uHKHSbaUz9Q6+MlGoSWVrBxKw7LtrguMfu7TtRiIW1Q=="
    }
  }
</script>
<script
  crossorigin="anonymous"
  integrity="sha512-4jp5UUEZHav4b06k/IkjIQXTIpEgdNzqiBCrzP/NQXI1OV/kqGg3h48i80AWlukASE7nC8Y12lxX/NFRU2hI+Q=="
  src="https://d3hz8ozgrmhn4r.cloudfront.net/sdk-web-components/2.4.2/index.js"
  type="module"
></script>
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.keyless.io/web-sdk/web-sdk-guide/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
