Agentrouter banner
dante4rt dante4rt

Agentrouter

Development community

Description

Unofficial SDK for AgentRouter (agentrouter.org) — Claude, DeepSeek, and GLM via OpenAI-compatible proxy. Zero dependencies, fully typed, works on Node, Bun, and Deno.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

@rxmxdhxni/agentrouter

[![npm version](https://img.shields.io/npm/v/@rxmxdhxni/agentrouter.svg)](https://www.npmjs.com/package/@rxmxdhxni/agentrouter) [![license](https://img.shields.io/npm/l/@rxmxdhxni/agentrouter.svg)](./LICENSE) [![node](https://img.shields.io/node/v/@rxmxdhxni/agentrouter.svg)](https://nodejs.org)

Unofficial Node/Bun/Deno SDK for AgentRouter — handles the quirks so you can skip straight to `ar.chat("hi")`.

![60-second SDK overview](https://raw.githubusercontent.com/dante4rt/agentrouter/main/promo.gif)

[!WARNING] AgentRouter (agentrouter.org) is a third-party reseller offering free credits for Claude, DeepSeek, and GLM via a proxy. This package is a community wrapper — not affiliated with or endorsed by AgentRouter or Anthropic. Your prompts pass through AgentRouter's infrastructure; do not send proprietary code, credentials, or sensitive data. For production, get a key directly from the model provider.

Install

npm install @rxmxdhxni/agentrouter
# or
bun add @rxmxdhxni/agentrouter

[!IMPORTANT] Requires Node 20+, Bun latest, or Deno latest. Zero runtime dependencies.

Quick start

import { AgentRouter } from "@rxmxdhxni/agentrouter";

const ar = new AgentRouter({ apiKey: "sk-..." });
const reply = await ar.chat("What is 2 + 2?");
console.log(reply); // "2 + 2 equals 4."

API

`new AgentRouter(options)`

Option Type Default Description
apiKey string Required. Your AgentRouter API key
model string "claude-opus-4-8" Model for all requests from this i