> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helicone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Instructor JavaScript SDK Integration

> Use Instructor's JavaScript SDK to log your LLM calls in Helicone.

<Warning>
  This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new [AI Gateway](/gateway/overview) with unified API access to 100+ models.
</Warning>

[Instructor](https://useinstructor.com/) is a popular framework for extracting structured output from text using LLMs. Here's how you can use Helicone to track your calls while using Instructor:

<Steps>
  <Step title="Follow useinstructor.com to get setup with Instructor's JS SDK." />

  <Step title="Modify the base url and add a Helicone-Auth header">
    <CodeGroup>
      ```javascript Instructor SDK theme={null}
      const oai = new OpenAI({
        apiKey: process.env.OPENAI_API_KEY,
        baseURL: "https://oai.helicone.ai/v1",
        defaultHeaders: {
          "Helicone-Auth": "Bearer " + process.env.HELICONE_API_KEY
        }
      })
      // ... Call OpenAI using Instructor
      ```
    </CodeGroup>
  </Step>

  <Step title="Call OpenAI using Instructor and see the logs on Helicone." />
</Steps>
