- Node.js >= 18
- Generate a token using the How to create an OctoAI API token guide.
- Set the token to an environment variable named
OCTOAI_TOKENor pass it to the Client class on construction.
The TypeScript SDK can be installed using NPM.
npm i @octoai/client
Setting API token as an environment variable:
In order to access endpoints from OctoAI, an API token needs to be set, for more information on how to generate an access token see How to Create an OctoAI Access Token.
Wherever you set your environment variables for example in your
.env file set
OCTOAI_TOKEN to the value you generated following the guide.