cencori weekly downloads statistics
Cencori - The unified infrastructure layer for AI applications. One SDK for AI Gateway, Agents, Compute, Workflow, and Storage.
cencori has 1,022 recorded weekly downloads on npm, an increase of 185% over the past 30 days, ranking #2065 of 3,247 tracked listings.
About cencori
Cencori
The unified infrastructure layer for AI applications.
One SDK. Every AI primitive. Always secure. Always logged.
npm install cencori
Quick Start
import { Cencori } from 'cencori';
const cencori = new Cencori({
apiKey: process.env.CENCORI_API_KEY
});
// AI Gateway - Chat with any model
const response = await cencori.ai.chat({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello!' }]
});
console.log(response.content);
Products
| Product | Status | Description |
|---|---|---|
| AI Gateway | ✅ Available | Multi-provider routing, security, observability |
| Web | ✅ Available | First-party fetch, extraction, crawl, and evidence-bearing search |
| Billing | ✅ Available | End-user usage monetization and Stripe integration |
| Integration | ✅ Available | SDKs, Vercel AI, TanStack |
| Agents | ✅ Available | Code-first agents (cencori/agents): tools, handoffs, approvals, guardrails, any model |
| Embedded Agents | ✅ Available | Multi-tenant agent backend: tenants, versions, runs, approvals, metering |
Agents
cencori/agents builds agents in code and runs them on Cencori. Your tools run in your process; the agent loop, sessions, approvals, memory, guardrails, billing and traces run on Cencori, with any model in the catalog.
npm install cencori zod
import { Agent, run, tool } from 'cencori/agents';
import { z } from 'zod';
const getOrder = tool({
name: 'get_order',
description: 'Look up an order by id',
parameters: z.object({ id: z.string() }),
execute: async ({ id }) => db.orders.find(id),
});
const support = new Agent({
name: 'Support',
instructions: 'Answer order questions. Be brief.',
tools: [getOrder],
// model: 'claude-sonnet-4-5', // any catalog model; default gpt-oss-120b (fast)
});
const result = await run(support, 'Where is order 1042?'); // reads CENCORI_API_KEY
console.log(result.finalOutput);
The agent calls as many tools, over as many rounds, as it needs. Pass result.sessionId back as { sessionId } to continue the conversation.
Stream
const stream = run(support, 'Where is order 1042?', { stream: true });
for await (const text of stream.toTextStream()) process.stdout.write(text);
const result = await stream.completed;
Handoffs and agents as tools
const billing = new Agent({ name: 'Billing', instructions: 'You handle refunds.', handoffDescription: 'refunds and invoices' });
const triage = new Agent({ name: 'Triage', instructions: 'Route billing questions to Billing.', handoffs: [billing] });
// Or keep the conversation and just ask another agent: tools: [billing.asTool()]
Human approval
import { RunState } from 'cencori/agents';
const refund = tool({
name: 'issue_refund',
description: 'Refund an order',
parameters: z.object({ id: z.string() }),
needsApproval: true, // recorded in your project's governance ledger
execute: async ({ id }) => payments.refund(id),
});
const first = await run(billingAgent, 'Refund order 1042');
if (first.interruptions.length) {
const saved = JSON.stringify(first.state); // store it; decide later, anywhere
const state = RunState.fromJSON(saved);
state.approve(first.interruptions[0]); // or state.reject(item, { message })
const done = await run(billingAgent, state);
}
needsApproval can also be a function, (ctx, args) => args.amount > 100, decided per call.
Structured output, guardrails, memory
const extractor = new Agent({
name: 'Extractor',
outputType: z.object({ city: z.string(), days: z.number() }), // finalOutput is typed
inputGuardrails: [{ name: 'on_topic', execute: ({ input }) => ({ tripwireTriggered: input.includes('homework') }) }],
modelSettings: { reasoningEffort: 'low' },
});
await run(extractor, 'Trip to Lagos for 3 days', { memory: { userId: 'user_123' }, user: 'user_123' });
Tool parameters accept zod 3 or 4, any Standard Schema library, or a plain JSON Schema object.
Agent UI
A chat for your agent where it can answer with UI: charts, tables, stats, lists, buttons and forms, generated on the fly. Works with any model in the catalog.
// app/api/chat/route.ts: your tools run on your server
import { Agent, createAgentChatHandler, tool } from 'cencori/agents';
import { z } from 'zod';
const getSales = tool({
name: 'get_sales',
description: 'Monthly revenue by product',
parameters: z.object({}),
execute: async () => db.sales.monthly(),
});
const analyst = new Agent({ name: 'Analyst', instructions: 'Answer with charts and tables when it helps.', tools: [getSales], widgets: true });
export const POST = createAgentChatHandler(analyst);
// In your page
import { AgentChat } from 'cencori/react';
<AgentChat api="/api/chat" greeting="Ask about your sales" prompts={['Revenue by product', 'Top customers']} />
widgets: truegives the model the built-inrender_uitool. Cencori checks every widget before it's shown.- A tool can also return
{ widget }to show a design you control, filled with real data. - Buttons and forms send their action back to the agent (or to
onActionwithhandler: 'client'). - Approvals (
needsApproval) show an approval card; the paused run is signed so the browser can't change it. - Theme with
theme={{ colorScheme, accent, radius }}or CSS variables. Build your own layout withuseAgentChat(),<Transcript>,<Composer>and<Widget>.
Embedded Agents
import { Cencori } from 'cencori';
const cencori = new Cencori({ apiKey: process.env.CENCORI_API_KEY });…
Description from the npm listing.
- ai
- cencori
- ai-sdk
- ai-gateway
- llm
- openai
- anthropic
- gemini
- vercel
- tanstack
- infrastructure
- security
- observability
- serverless
- workflow
- vector-database
- rag
- agents
- ai-agents
- agents-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 (170)Similar npm AI SDKs plugins
All 20 cencori 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/cencori. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.