# Localhost licence key

**URL:** <https://forum.deepar.ai/t/localhost-licence-key/342>\
**Category:** SDK\
**Created:** [June 19, 2023, 7:52pm UTC](https://forum.deepar.ai/t/localhost-licence-key/342 "2023-06-19T19:52:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cem\_gurel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/cem_gurel/32/499_2.png) [@cem\_gurel](https://forum.deepar.ai/u/cem_gurel)\
**Post date:** [June 19, 2023, 7:52pm UTC](https://forum.deepar.ai/t/localhost-licence-key/342/1 "2023-06-19T19:52:38Z")

</div>

How should we init the package in localhost? Giving licenceKey an empty string, null or undefined does not work. Simply not adding the ‘licenceKey’ key does not work either.

---

<div class="post-metadata">

**Author:** ![Zak](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/zak/32/7_2.png) [@Zak](https://forum.deepar.ai/u/Zak)\
**Post date:** [June 20, 2023, 9:53am UTC](https://forum.deepar.ai/t/localhost-licence-key/342/2 "2023-06-20T09:53:03Z")

</div>

Hi there, thanks for the question.

The DeepAR web SDK does require you to enter a value for the `licenseKey` property. You can use a free license key generated in your [DeepAR developer account](https://developer.deepar.ai/).

It is also possible to pass any value as a string when developing on `localhost`, eg `1234`, but we don’t recommend this as it can increase the chance of license key errors making it into production.

---

<div class="post-metadata">

**Author:** ![cem\_gurel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/cem_gurel/32/499_2.png) [@cem\_gurel](https://forum.deepar.ai/u/cem_gurel)\
**Post date:** [June 20, 2023, 4:14pm UTC](https://forum.deepar.ai/t/localhost-licence-key/342/3 "2023-06-20T16:14:39Z")

</div>

You should update [this link](https://s3.eu-west-1.amazonaws.com/sdk.developer.deepar.ai/doc/web/index.html#license-key) then. It is saying ‘Note that license key is only required when deploying to production (non-localhost) domain.’ Passing any string like ‘1234’ did not work for me, said the licence was not valid. Also, what should we enter for the domain name when working on localhost? I have a licence key for production domain but it does not work on localhost.

---

<div class="post-metadata">

**Author:** ![cem\_gurel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/cem_gurel/32/499_2.png) [@cem\_gurel](https://forum.deepar.ai/u/cem_gurel)\
**Post date:** [June 22, 2023, 3:54pm UTC](https://forum.deepar.ai/t/localhost-licence-key/342/4 "2023-06-22T15:54:38Z")

</div>

@Zak, any updates, comments? I am still having problems working on localhost. I can’t figure out what domain name to use in the developer portal.

---

<div class="post-metadata">

**Author:** ![Zak](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/zak/32/7_2.png) [@Zak](https://forum.deepar.ai/u/Zak)\
**Post date:** [June 22, 2023, 5:20pm UTC](https://forum.deepar.ai/t/localhost-licence-key/342/5 "2023-06-22T17:20:48Z")

</div>

@cem_gurel You are quire right, that part of the doc seems inaccurate, we’ll update it.

The intended behaviour is that you can use your production key for development in localhost and the sessions won’t count towards your monthly active user limits. So I’d expect your setup to work, but it sounds like it does not ☹

To take a closer look, could you let me know the SDK version you are using? And it would be really handy if you could send me the relevant files from your project privately at zak@deepar.ai.

We’ll figure out what’s happening soon I’m sure! Thanks for your patience!
