i ideas / repo launcher
openai avatar

openai/openai-node

★ 11,259TypeScriptApache-2.086

Official JavaScript / TypeScript library for the OpenAI API

What it is

This library provides convenient access to the OpenAI REST API from TypeScript or JavaScript. To learn how to use the OpenAI API, check out our API Reference and Documentation. The full API of this library can be found in api.md file along with many code examples.

When to use it

Reach for openai-node when you need to call, serve, run locally, fine-tune or chat with a language model — it's written in TypeScript and fits stacks tagged node, openai.

Category
LLM & Inference
Also in
—
Stars
11,259
Forks
1,635
Last push
today
Created
2021-12-14
Open issues
13
Website
npmjs.com/package/openai

Quick start

$ git clone https://github.com/openai/openai-node.git

Hand it to your AI

Read https://ideas.asveas.com/r/openai/openai-node.md and help me add openai/openai-node to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to openai-node

All LLM & Inference →

Pairs well with

FAQ

What is openai-node?

openai/openai-node is a LLM tool on GitHub: Official JavaScript / TypeScript library for the OpenAI API This library provides convenient access to the OpenAI REST API from TypeScript or JavaScript.

When should I use openai-node?

Reach for openai-node when you need to call, serve, run locally, fine-tune or chat with a language model — it's written in TypeScript and fits stacks tagged node, openai.

What are the best alternatives to openai-node?

Popular alternatives in LLM & Inference: ollama/ollama (187k★), huggingface/transformers (169k★), open-webui/open-webui (158k★), langflow-ai/langflow (157k★), vllm-project/vllm (96.8k★).

Is openai-node actively maintained?

openai/openai-node looks very actively maintained: the last push was today (2026-11-10), with 11,259 stars and 13 open issues.

What license does openai-node use?

openai/openai-node is published under the Apache-2.0 license. Check the repository's LICENSE file before commercial use.