@x12i/ai-gateway

Unified LLM gateway for routing, identity, cost, and Activix

One invoke path for providers, OpenRouter, structured logging, and gateway-owned billing metadata.

npm

Install for agents & tooling

Knowledge SDK — install as a devDependency only (not a production runtime).

npm i -D @x12i/ai-gateway-docs

Agents / SDK details → · agent-manifest.json

AI Gateway

@x12i/ai-gateway is the host-facing gateway for LLM provider routing, mandatory runtime identity, optional Activix persistence, and cost resolution via @x12i/ai-tools.

Start here

  1. Install @x12i/ai-gateway
  2. Pass identity + model + maxTokens on every call
  3. Prefer OpenRouter with OPENROUTER_API_KEY, or set direct provider keys

Knowledge package for agents: @x12i/ai-gateway-docs (devDependency only).