Adding the Codex Typescript SDK to your app
Add the SDK
Add the API key to your environment variables
.env
file. Add this line and replace xxxxxxxx
with your API key:Create an SDK file
lib/codex-sdk.ts
file (or whatever folder/name fits your project) and add:Make a request
See more examples