---
title: "cost-pane"
url: "https://claudemods.dev/ja/builds/cost-pane-30896f"
source: "https://github.com/anthonyhungnguyen/claude-code-mods/tree/main/cost-pane"
source_type: "github"
repo: "https://github.com/anthonyhungnguyen/claude-code-mods/tree/main/cost-pane"
author: "anthonyhungnguyen"
author_handle: "anthonyhungnguyen"
stars: 0
category: "使用量・コスト"
categories: ["cost"]
tags: ["claude-code", "cost-tracking", "hooks", "mod", "statusline", "tokens"]
permission_level: 0
scan_complete: true
install: "claude plugin marketplace add anthonyhungnguyen/claude-code-mods\nclaude plugin install cost-pane"
added: "2026-10-05T17:17:09.790Z"
updated: "2026-10-02T06:26:05Z"
locale: "ja"
content_locale: "ja"
---

# cost-pane

セッションごとと日ごとのトークン使用量・米ドル支出を記録し、セッションをまたいで保持する Claude Code mod です。

## Description

cost-pane はステータス行にセッションと日ごとの米ドル支出を表示し、7 日間の sparkline も加えます。`/cost-pane` パネルでは、トークン数、キャッシュヒット率、直近 7 日の日別バーを確認できます。米ドル額は mod の読み込み後、各ターンの `/cost` から取得します。各セッションはプラグインストアに `s:<session-id>:<day>` キーを書き込み、日次合計はすべてのセッションを合算し、30 日より古いキーを削除します。日付はベトナム時間（UTC+7）を使い、hooks/register.tsx の `dayOf` で設定します。~/.claude/mods/cost-pane にフォルダーを追加してインストールします。

## Install

```
claude plugin marketplace add anthonyhungnguyen/claude-code-mods
claude plugin install cost-pane
```

## Original README

# cost-pane

A Claude Code mod that tracks token and USD spend per session and per day, kept across sessions.

```
💸 $1.23 session · $5.67 today · 7d ▁▃▂▅▇▄█ $12.34
```

The status line shows the line above. `/cost-pane` opens a pane with token counts, cache hit rate and one bar per day for the last 7 days.

## Install

See the [repo README](../README.md); the folder to add is `~/.claude/mods/cost-pane`.

## How it counts

- USD is what `/cost` reports, counted per turn from the moment the mod loads.
- Each session writes its own `s:<session-id>:<day>` key to the plugin store (`~/.claude/plugins/store/cost-pane_inline-*.json`). Daily totals sum every session; keys older than 30 days are pruned.
- Days are Vietnam time (UTC+7), set in `dayOf` in `hooks/register.tsx`.
