@openai-oauth/ai-sdk weekly downloads statistics
By openai-oauth · npm · AI SDKs
Vercel AI SDK provider adapter for openai-oauth auth handles.
@openai-oauth/ai-sdk has 1,236 recorded weekly downloads on npm, an increase of 2.5% over the past 30 days, ranking #1437 of 2,391 tracked listings.
About @openai-oauth/ai-sdk
@openai-oauth/ai-sdk
Connect OpenAI OAuth credentials to the Vercel AI SDK.
npm i @openai-oauth/ai-sdk @openai-oauth/local ai
Quickstart:
import { createOpenAIOAuth } from "@openai-oauth/ai-sdk";
import { openaiCredentials } from "@openai-oauth/local";
import { generateText } from "ai";
const openai = createOpenAIOAuth(openaiCredentials());
const result = await generateText({
model: openai("gpt-5.4-mini"),
prompt: "Hello!",
});
Generate or edit images with GPT Image 2:
import { readFile } from "node:fs/promises";
import { generateImage } from "ai";
const result = await generateImage({
model: openai.image("gpt-image-2"),
prompt: "A tiny house in a forest",
});
const inputImage = await readFile("input.png");
const edited = await generateImage({
model: openai.image("gpt-image-2"),
prompt: {
text: "Add a red hat",
images: [inputImage],
},
});
Package Notes
@openai-oauth/ai-sdk accepts any OpenAI OAuth credential source.
Use local credentials on your own machine:
import { openaiCredentials } from "@openai-oauth/local";
const openai = createOpenAIOAuth(openaiCredentials());
Use browser credentials after Sign in with ChatGPT:
import { createOpenAIOAuth } from "@openai-oauth/ai-sdk";
import { openaiCredentials } from "@openai-oauth/react/server";
import { generateText } from "ai";
export async function POST(request: Request) {
const openai = createOpenAIOAuth(openaiCredentials(request));
const result = await generateText({
model: openai("gpt-5.4-mini"),
prompt: await request.text(),
});
return new Response(result.text);
}
Use @openai-oauth/react to establish the browser credentials. See the React Component setup.
API shape:
const openai = createOpenAIOAuth(credentials);
openai("gpt-5.4-mini");
openai.languageModel("gpt-5.4-mini");
openai.image("gpt-image-2");
openai.imageModel("gpt-image-2");
Exports:
createOpenAIOAuthOpenAIOAuthProviderOpenAIOAuthProviderInputOpenAIOAuthProviderSettingsOpenAIOAuthModelIdOpenAIOAuthImageModelId
More
Description from the npm listing.
- openai
- oauth
- chatgpt
- codex
- ai-sdk
- vercel-ai-sdk
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm AI SDKs plugins
All 20 @openai-oauth/ai-sdk alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@openai-oauth/ai-sdk. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.