This guide covers only the simplest steps to run an LLM on your device. For a detailed, step-by-step explanation of how everything works, see the full integration guide.
1
Make a new project folder
2
Initialize with pnpm
3
Install dependencies
4
Initialize a tsconfig.json
6
Create main.ts
Don’t forget to add your API key.
7
Run the snippet
Now that we’ve tried the simplest snippet, let’s take a look at the step-by-step integration guide.