Start by
getting an API key from OpenAI.
OpenAI documentation says "Do not share your API key with others, or expose it in the browser or other client-side code." This means that if you are building a web app, you should not leak the service's API key to your users. Assistant stores the API key in your browser's localStorage and only sends it directly to OpenAI's API.