OSS探訪

product usageをmeteringからinvoice・paymentまで一つのbilling modelへつなぐ

スコアの見方

OSS規模スコアはStars・Watchers・Forks・Contributorsを対数圧縮して重み付けした現在の規模指標(上限なし)です。発掘スコアは現在のOSS規模スコアから発掘時点のOSS規模スコアを引いた値、更新ペースは直近30日Commit数、成長モメンタムは直近の観測期間におけるOSS規模スコア差、OSS健全度は取得できた更新状況・Community Health・Releaseの0〜100評価です。

Stars
10,642
主要言語
Go
ライセンス
AGPL-3.0
リポジトリ最終更新
2026/09/30
ページ内ナビ

概要

Lagoはusage eventをbillable metricへ集約し、pricing、credit、entitlement、invoice、payment、revenueへ変換するAPI-first billing infrastructureです。AI token、compute、API call、seat、transaction等の複雑なusage-based pricingにも対応します。

特徴と向いている用途

公式資料に基づく紹介・実機未検証 · 内容確認日:

主な特徴

usage eventをbillable metricとpricingへ変換する

token、compute、API call等のeventをmeteringし、tier、allowance、overage、prepaid credit等のpricing modelへ接続できます。

出典:[2]

invoice・payment・revenueまでbilling flowを統合する

usage集計だけでなくinvoice生成、payment provider連携、credit note、revenue operationまで共通APIで扱えます。

出典:[2]

向いている用途

usage-based/AI productの課金logicをapplicationから分離したい場合に向く

pricing変更やmeteringをapplication codeへ埋め込まず、billing primitivesとしてAPI/SDK/MCPから共有したい構成に適します。

出典:[2]

導入前の確認

financial operationではcredentialとhuman reviewを設計する

READMEはAPI keyをprompt/source controlへ入れず、live billing dataやfinancial changeを実行する前にtarget organization/environmentを確認し、人間がreviewする運用を推奨しています。

出典:[2]

open-source engineとPremium提供を区別する

core billing engineはAGPL-3.0ですが、READMEはPremium deployment、customization、security、support optionも案内しています。必要な運用機能の提供形態を確認します。

出典:[2][3]

参考にした公式資料

  1. [1]getlago/lago repository(2026-09-30)
  2. [2]Lago README(2026-09-30)
  3. [3]Lago AGPL-3.0 license(2026-09-30)
  4. [4]Lago v1.53.0 release(2026-09-30)
  5. [5]Lago agentic AI billing demo(2026-09-30)
編集部からの補足

Lagoはtoken、compute、API call、transaction等のusage eventをbillable metricへ変換し、pricing、credit、invoice、payment、revenueまでつなぐAGPL-3.0のbilling engineです。READMEではopen-source engineに加えてPremium deployment、customization、security、support optionsも案内されています。productionではdefault password/secretを置き換え、financial mutationは人間によるreviewを含めて設計する必要があります。

3ステップで試す

  1. 1

    Lago v1.53.0をclone

    release tagを固定してrepository内のmaintained demoを取得します。

    git clone --depth 1 --branch v1.53.0 https://github.com/getlago/lago.git && cd lago
  2. 2

    local AI billing demoを実行

    Docker、curl、jqを使い、隔離されたlocal Lagoでtoken usageをmeteringしてchargeへ変換します。demo credentialはlocal専用です。

    ./examples/agentic-ai-demo/run.sh
  3. 3

    結果確認後にcleanup

    UI/APIでusageとchargeを確認したら、demo container・network・volumeを削除します。

    ./examples/agentic-ai-demo/run.sh --cleanup
公式READMEで確認

成長

成長の推移 · 直近30日

10,642 Stars

推移データを蓄積中です。

開発アクティビティ

直近90日・週次

Commit(直近30日)
18
Open PR
8

開発アクティビティを蓄積中です。

Built with

カテゴリとタグ

GitHubデータ

GitHubのデータGitHubの詳細データを見る

GitHub Topics

  • billing
  • fintech
  • invoices
  • payments
  • usage-based-billing
  • subscriptions
  • metering
  • pricing
  • analytics
  • open-source
  • pricing-data-science
  • self-hosted
Stars
10,642
Forks
763
Watchers
54
Open Issues
17
Contributors
48
所有者種別
Organization
主要言語
Go
ライセンス
AGPL-3.0
リポジトリ最終更新
2026/09/30

このOSSの使い方や活用事例をMarkdownで投稿できます。管理者が承認した後に公開されます。

情報の誤りを報告

掲載内容に誤りや古い情報があればお知らせください。

このページを読んで、次に何をすればよいか分かりましたか?
Lagoとは?Usage-based Billing・Meteringを支えるOSS課金基盤 | OSS探訪