cost-ledger
issue / PR 単位の API 換算コストを、Claude Code の会話ログ(`${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/**/*.jsonl`)から集計する。帰属はブランチと(リポジトリ識別子, issue 番号)の 2 本立てで、サブエージェント(isSidechain)の消費も同じブランチに寄せる。`/cost <番号>` で PR ならヘッドブランチの総額、issue なら投稿を境界に切った区間の合計を USD と円で返す。pr-review-gate が `agent-review:passed` を付けた直後に、PostToolUse の hook がその PR へ `/cost` の 1 行目を 1 本のコメントで貼る(環境変数 `COST_LEDGER_GATE_REPORT=off` で止まる)。実行時に python3(3.8 以上)と、番号の判別に認証済みの gh を必要とする。git は 2.31 以上(rev-parse --path-format=absolute を使う)。
By OrattaLicense: MIT0 GitHub starsUpdated 4 hours ago
Directory evidence
- Runtimes
- Claude Code
- Parsed components
- 0 skill or MCP entries
- Source updated
- Sep 24, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install cost-ledger for Claude Code
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install cost-ledger@agent-plugin-marketplacePaste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/oratta/claude-harnessClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins/cost-ledger/.
Plugin files
└── .claude-plugin/plugin.json
Plugin manifests1
{
"name": "cost-ledger",
"description": "issue / PR 単位の API 換算コストを、Claude Code の会話ログ(`${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/**/*.jsonl`)から集計する。帰属はブランチと(リポジトリ識別子, issue 番号)の 2 本立てで、サブエージェント(isSidechain)の消費も同じブランチに寄せる。`/cost <番号>` で PR ならヘッドブランチの総額、issue なら投稿を境界に切った区間の合計を USD と円で返す。pr-review-gate が `agent-review:passed` を付けた直後に、PostToolUse の hook がその PR へ `/cost` の 1 行目を 1 本のコメントで貼る(環境変数 `COST_LEDGER_GATE_REPORT=off` で止まる)。実行時に python3(3.8 以上)と、番号の判別に認証済みの gh を必要とする。git は 2.31 以上(rev-parse --path-format=absolute を使う)。",
"author": {
"name": "Oratta"
},
"license": "MIT",
"keywords": [
"cost",
"usage",
"attribution",
"issue",
"pull-request",
"claude-code"
]
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[cost-ledger on Agent Plugins Marketplace](https://pluginsmp.com/plugins/cost-ledger)