Skip to content
PluginStats

@cogitator-ai/ai-sdk weekly downloads statistics

By cogitator-ai · npm · AI SDKs

Vercel AI SDK adapter for Cogitator - bidirectional compatibility

View on npm Fresh · Nov 2, 2026 · data Oct 29, 2026

@cogitator-ai/ai-sdk has 510 recorded weekly downloads on npm.

Weekly downloads
510
Official API · Oct 29, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About @cogitator-ai/ai-sdk

@cogitator-ai/ai-sdk

Vercel AI SDK adapter for Cogitator — bidirectional compatibility between Cogitator agents and the AI SDK, for AI SDK 4, 5, 6 and 7.

Full guide: cogitator.app/docs/integrations/ai-sdk

Installation

pnpm add @cogitator-ai/ai-sdk @cogitator-ai/core ai

ai is a peer dependency: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0.

Features

  • Use Cogitator agents with the AI SDK — generateText, streamText, structured output, any AI SDK major
  • Use AI SDK models in Cogitator — wrap any AI SDK provider model (LanguageModelV1 – LanguageModelV4) as a Cogitator backend
  • Tool conversion — convert tools in both directions; converted tools work with the tools option of every AI SDK major

Compatibility

AI SDKModel specs it acceptsDefault cogitatorModel() specfromAISDK() input
ai@4v1v1LanguageModelV1
ai@5v2v2LanguageModelV2
ai@6v2, v3v3LanguageModelV3
ai@7v2, v3, v4v4LanguageModelV4
Specification auto-detection

When specificationVersion is omitted, cogitatorModel() and createCogitatorProvider() pick the spec of the installed ai package, so existing code keeps working on every major:

  • Runtime: ai/package.json is resolved from process.cwd() (your app), then from this package — also for ESM-only installs whose exports hide package.json. The result is cached per process. If ai cannot be resolved (for example in runtimes without process.getBuiltinModule), 'v2' is used, which ai@5 – ai@7 accept.
  • Types: the default return type is derived from the LanguageModel type of the ai package your TypeScript resolves, with the same mapping, so generateText({ model: cogitatorModel(cog, agent) }) type-checks on ai@4 – ai@7 without changes.

Pass specificationVersion to override the detection — for example when several ai majors are installed, or when the runtime and the type-level ai differ. AI SDK 6 and 7 run v2 models in a compatibility mode that logs a "Using v2 specification compatibility mode" warning per call; the detected v3 / v4 defaults avoid it.

Usage

Cogitator Agent as AI SDK Model
import { generateText, streamText } from 'ai';
import { Cogitator, Agent, tool } from '@cogitator-ai/core';
import { cogitatorModel } from '@cogitator-ai/ai-sdk';
import { z } from 'zod';

const cog = new Cogitator({
  llm: { providers: { openai: { apiKey: process.env.OPENAI_API_KEY! } } },
});

const searchTool = tool({
  name: 'search',
  description: 'Search the web',
  parameters: z.object({ query: z.string() }),
  execute: async ({ query }) => ({ results: [`Result for: ${query}`] }),
});

const researcher = new Agent({
  name: 'researcher',
  model: 'openai/gpt-6.1-sol',
  instructions: 'You are a research assistant.',
  tools: [searchTool],
});

// spec detected from the installed ai package (ai@4 – ai@7)
const { text } = await generateText({
  model: cogitatorModel(cog, researcher),
  prompt: 'Research the latest AI developments',
});

// explicit override
const result = streamText({
  model: cogitatorModel(cog, researcher, { specificationVersion: 'v2' }),
  prompt: 'Write an article about TypeScript',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

With ai@4 the same call returns a LanguageModelV1; { specificationVersion: 'v1' } forces it explicitly.

How the agent maps to a model…

Description from the npm listing.

  • ai
  • sdk
  • cogitator
  • vercel
  • ai-sdk
  • llm
  • adapter

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

@cogitator-ai/ai-sdk weekly downloads on npm, last 90 days: 510 weekly downloads as of Oct 29, 2026.@cogitator-ai/ai-sdkWeekly downloads on npm · Last 90 days510downloads / week440460480500520540560580Jul 31Aug 15Aug 30Sep 14Sep 29Oct 14Oct 29downloads / weekOct 29, 2026 – Oct 29, 2026 · 1 observations · Updated Oct 29, 2026pluginstats.com
@cogitator-ai/ai-sdk weekly downloads on npm, last 90 days: 510 weekly downloads as of Oct 29, 2026.

7/30/90-day growth

@cogitator-ai/ai-sdk weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@cogitator-ai/ai-sdkWeekly downloads growth on npm510downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 29, 2026pluginstats.com
@cogitator-ai/ai-sdk weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@cogitator-ai/ai-sdk npm ranking history: currently #1834 (by weekly downloads).@cogitator-ai/ai-sdknpm ranking · by weekly downloads · Last 90 days#1834current rank#1832#1833#1834#1835#1836Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17Nov 1rankNov 1, 2026 – Nov 1, 2026 · 1 observations · Updated Oct 29, 2026pluginstats.com
@cogitator-ai/ai-sdk npm ranking history: currently #1834 (by weekly downloads).

Listing placement

All npm2,712 listings · 136 pages · 1,357 shown · page 92, #15 (overall #1,835)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs305 listings · 16 pages · page 11, #17 (overall #217)
AI SDKs: every listing in weekly downloads order

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 (1)
Recent weekly downloads observations for @cogitator-ai/ai-sdk
Date (UTC)Weekly downloadsChange vs. previous
510—

Data 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/@cogitator-ai/ai-sdk. First seen Nov 1, 2026; last successful collection Nov 2, 2026. See the methodology.