@coder/ai-sdk-agent has 724 recorded weekly downloads on npm, a decrease of 61.6% over the past 30 days, ranking #1493 of 2,322 tracked listings.
About @coder/ai-sdk-agent
@coder/ai-sdk-agent
A Vercel AI SDK agent backed by Coder Agents, Coder's server‑side agent
runtime. new CoderAgent(...) implements the AI SDK's
Agent interface
(generate() / stream()): script it, stream from it, and attach your own tools
exactly like the SDK's own ToolLoopAgent.
Coder Agents runs the complete agent loop server‑side: the multi‑step tool loop, built‑in tools, MCP, sub‑agents, multi‑provider model routing, and automatic context compaction. This package bridges it to the AI SDK's client‑side loop without re‑implementing the loop.
Status: targets Coder's stable chat API (
/api/v2/chats), available since Coder 2.37.0 (September 1, 2026). This package remains pre‑1.0. See API compatibility for older deployments.
Contents
Agent vs. provider — which package?
@coder/ai-sdk-agent (this package) | @coder/ai-sdk-provider | |
|---|---|---|
| What runs | Coder's server‑side agent: tool loop, built‑in tools, MCP servers, workspace‑scoped file/shell tools, sub‑agents, and compaction, on the deployment | Plain model calls through Coder's AI Gateway. A normal AI SDK provider: generateText, streamText, generateObject |
| Server state | Each CoderAgent is one server chat ("session"), bound to at most one workspace | No chat, no workspace; natively cancelable |
| Structured output | Through a tool call (Structured output) | generateObject, schema‑constrained |
| Reach for it when | You need server‑side tools, MCP, or a workspace | You just need a model (plan / extract / summarize / classify) |
They compose: a multi‑step pipeline often uses the provider for its pure text/JSON steps and the Agent only for the steps that touch tools.
Install
pnpm add @coder/ai-sdk-agent ai@^7 zod
Requires Node ≥ 22 and ai v7. The constructors throw an actionable error when
another ai major is detected, instead of failing cryptically mid‑generation.
The guard fails open when the installed version can't be resolved.
Quick start
import { CoderAgent } from "@coder/ai-sdk-agent";
import { tool } from "ai";
import { z } from "zod";…
Description from the npm listing.
- agent
- ai
- ai-sdk
- coder
- llm
- streaming
- tools
- 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 (122)Similar npm AI SDKs plugins
All 20 @coder/ai-sdk-agent 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/@coder/ai-sdk-agent. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.