v0.8.4

pardnchiu/go-llm-router

Last updated

[!NOTE] This README was generated by SKILL, get the ZH version from here.


ONE AGENT INTERFACE FOR EVERY LLM PROVIDER

Go Reference Release License


A Go LLM library with a unified LLM API for 14 providers, provider@model routing, and normalized streaming and usage

Extracted as a standalone package from Agenvoy 2741d4a

Since v0.28.17, Agenvoy's LLM providers are unified and replaced by this package go-llm-router.

Table of Contents

Features

go get github.com/pardnchiu/go-llm-router · Documentation

Architecture

Full Architecture

graph TB
    App[Caller] --> Router[router.New]
    Router --> Agent[llmrouter.Agent]
    Agent --> KeyBased[Key-based providers]
    Agent --> OAuthBased[OAuth providers]
    Agent --> Compat[OpenAI-compatible endpoints]
    OAuthBased --> OAuth[core/oauth token store]
    Agent --> Stream[Stream event normalization]
    Agent --> Usage[Usage normalization]
    Agent --> Media[Image / audio agents]

License

This project is licensed under the MIT LICENSE.

Author

Just open an issue to share an idea.

go-llm-router contributors

©️ 2026 邱敬幃 Pardn Chiu

中文