agent-accelerator weekly downloads statistics
By sashvat-bharat · npm · AI SDKs
High-performance SDK for AI agents with a unified API across AI providers. Optimized for high cache hit rates, observability, and seamless agent orchestration. Built to power production-grade agentic systems and harnesses for teams at any scale.
agent-accelerator has 1,317 recorded weekly downloads on npm, an increase of 56.0% over the past 30 days, ranking #2001 of 3,247 tracked listings.
About agent-accelerator
Agent Accelerator
Stable since 1.0.0. The public API follows semantic versioning: a minor or patch release never breaks code written for an earlier
1.x. See Versioning for exactly what is covered.
A small, typed SDK for building LLM agents in TypeScript. One Agent class works with Google Gemini, OpenAI, Anthropic, OpenRouter and any OpenAI-compatible service. It uses plain fetch. There are no provider SDKs, and the only dependency is zod.
import { Agent } from "agent-accelerator";
const agent = new Agent({
model: "google/gemini-3.5-flash-lite",
instructions: "You are a concise research engineer.",
});
const res = await agent.run("Explain HBM pricing in 3 bullets.");
console.log(res.text);
console.log(res.usage); // tokens and cost
What you get
- One interface for every provider. Write the model as
provider/model. Provider differences stay inside the SDK. - Tools that the model can call, with checked arguments, retries, approval and hooks.
- Streaming and steering, so you can change what a busy agent is doing.
- Helper agents, either fixed ones you define or ones the model starts, plus scheduled actions that run later.
- Saved sessions that survive a crash and continue where they stopped.
- Spending control: limits, budgets, and the cost of every run, per agent and per worker.
- Pictures, video, embeddings and decisions through the same providers.
- Safe by default: keys never reach another vendor, local files stay inside folders you choose, and nothing prints unless you listen.
Install
bun add agent-accelerator zod
The SDK needs Bun. It ships TypeScript source, so there is no build step. zod is a peer dependency: install it next to the SDK and import z from "zod".
Add a key
Put the key of the provider you use in your environment. Bun loads a .env file for you.
GEMINI_API_KEY=... # google/...
OPENAI_API_KEY=... # openai/...
ANTHROPIC_API_KEY=... # anthropic/...
OPENROUTER_API_KEY=... # openrouter/...
GROQ_API_KEY=... # any other prefix, such as groq/..., plus its address
The environment holds keys and nothing else. Every other option is set in code. An OpenAI-compatible service also needs its address:
import { setConfigs } from "agent-accelerator";
setConfigs({ values: { base_urls: { groq: "https://api.groq.com/openai/v1" } } });
Give the agent a tool
import { Agent, tool } from "agent-accelerator";
import { z } from "zod";
const get_weather = tool({
description: "Get the current weather for a city.",
input: z.object({ city: z.string().describe("City name") }),
execute: async ({ city }) => ({ city, tempC: 21, sky: "clear" }),
});
const agent = new Agent({
model: "google/gemini-3.5-flash-lite",
tools: { get_weather },
maxTurns: 10,
});
const res = await agent.run("Is it warm in Lisbon right now?");
console.log(res.text);
Read the docs
The full documentation is online at agent-accelerator-sdk.vercel.app and in docs/ as plain Markdown. Start with Getting started and How it works.
| I want to… | Read |
|---|---|
| Create an agent and get JSON back | Agents |
| Pick a model or provider | Models and providers |
| Let the model call my functions | Tools |
| Stream the answer or steer a busy agent | Streaming and steering |
| Hand work to helper agents | Sub-agents |
| Save and resume chats, survive a crash | Sessions |
| Set limits and see what a run cost | Limits and retries, Usage and cost |
| Keep keys, files and URLs safe | Security |
| Test my agents with no network and no cost | Testing |
| Look up an option, field, event or error | Reference |
| Upgrade from an older version | Migration |
| Know what a new release may change | Versioning |
Preview the docs as a site with bun run docs:dev.
Examples
The examples/ folder has runnable demos, such as examples/05-chat.ts (a chat in the terminal), examples/02-function_calling.ts and examples/15-durable-agent.ts. They call real providers and cost real tokens, except the generator demos, which run offline by default.
bun run examples/05-chat.ts
Develop
bun install
bun run update-models # once: downloads the model catalog cache
bun run typecheck # tsc over everything, then over src/ with isolatedDeclarations
bun run lint # Biome: 0 errors required
bun run format # Biome formatter
bun test # the whole suite, fully mocked, no network
bun run docs:check # links, anchors and every docs example
How the source is organised is in src/architecture.md. Every folder under src/ has its own architecture.md.
License
MIT. See LICENSE. Copyright (c) 2026 Sashvat Bharat.
Description from the npm listing.
- ai
- ai-agents
- ai-sdk
- agent-sdk
- agent-framework
- typescript
- bun
- llm
- multi-agent
- tool-calling
- durable-agents
- structured-output
- zod
- openai
- anthropic
- gemini
- openrouter
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 (121)Similar npm AI SDKs plugins
All 20 agent-accelerator 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/agent-accelerator. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.