Hakari

Hakari 秤 means "scale" in JapaneseHakari (秤) ภาษาญี่ปุ่นแปลว่า "ตาชั่ง"

Claude Code usage, right next to your clock ดูการใช้ Claude Code ได้ข้างนาฬิกา

Hakari is a small meter on the Windows taskbar. It shows what today's usage would cost, how full your limits are and when they reset. Free and open source. Hakari เป็นมิเตอร์เล็ก ๆ บนทาสก์บาร์ Windows บอกว่าวันนี้ใช้ไปคิดเป็นเงินเท่าไร ลิมิตเต็มไปแค่ไหน และจะรีเซ็ตตอนไหน ฟรีและเปิดซอร์ส

Windows 10 (2004) or later · x64 and Arm64 · MIT licenceWindows 10 (2004) ขึ้นไป · x64 และ Arm64 · สัญญาอนุญาต MIT

Animated example of the Windows taskbar with Hakari beside the tray. A ring shows how full the 5-hour limit is, the text shows today's cost and the time left until the limit resets, and the meter takes turns between two accounts, Home and Work, every few seconds. ตัวอย่างภาพเคลื่อนไหวของทาสก์บาร์ Windows ที่มี Hakari อยู่ข้างถาดไอคอน วงแหวนบอกว่าลิมิต 5 ชั่วโมงเต็มไปแค่ไหน ข้อความบอกค่าใช้จ่ายวันนี้และเวลาที่เหลือก่อนลิมิตรีเซ็ต แล้วสลับไปมาระหว่างสองบัญชี Home กับ Work ทุกไม่กี่วินาที

Click it for the whole pictureคลิกเดียว เห็นครบ

The flyout opens above the meter. Each account gets a card with its 5-hour and weekly limits and when they reset. Below that: today, this week, this month, all time, and how fast you are spending right now. คลิกมิเตอร์แล้วจะมีหน้าต่างเล็ก ๆ เด้งขึ้นมา แต่ละบัญชีมีการ์ดของตัวเอง บอกลิมิต 5 ชั่วโมงกับลิมิตรายสัปดาห์พร้อมเวลารีเซ็ต ถัดลงมาเป็นยอดวันนี้ สัปดาห์นี้ เดือนนี้ ยอดทั้งหมด และอัตราการใช้ตอนนี้

  • The tick on the weekly bar is an even pace, so you see at a glance if you are ahead of it.ขีดบนแถบรายสัปดาห์คือจุดที่ควรอยู่ถ้าใช้เท่า ๆ กันทุกวัน ดูแวบเดียวก็รู้ว่าใช้เร็วไปหรือเปล่า
  • If the current pace would fill a limit before it resets, Hakari says when.ถ้าใช้ด้วยความเร็วนี้แล้วลิมิตจะเต็มก่อนรีเซ็ต Hakari บอกว่าจะเต็มตอนไหน
  • Every source shows its own share: Windows, and each WSL distribution.แยกให้ดูว่าแต่ละแหล่งใช้ไปเท่าไร ทั้ง Windows และ WSL แต่ละ distro

Example flyout. Work account: 5-hour limit 15%, resets in 1 h 48 min at 14:30. Weekly limit 94%, even pace 71%, resets Tuesday 22:00. Today $508.90, this week $1,842, this month $4,960, all time $18,240. Burn rate $18.60 per hour. Windows $6,035, WSL Ubuntu-24.04 $2,378. ตัวอย่างหน้าต่างป๊อปอัป บัญชี Work: ลิมิต 5 ชั่วโมง 15% รีเซ็ตในอีก 1 ชม. 48 นาที ตอน 14:30 ลิมิตรายสัปดาห์ 94% จุดใช้เท่า ๆ กันอยู่ที่ 71% รีเซ็ตวันอังคาร 22:00 วันนี้ $508.90 สัปดาห์นี้ $1,842 เดือนนี้ $4,960 ทั้งหมด $18,240 อัตราการใช้ $18.60 ต่อชั่วโมง Windows $6,035 WSL Ubuntu-24.04 $2,378

A dashboard for the long viewแดชบอร์ดไว้ดูภาพรวม

Daily cost, where the money goes, and which models and projects use the most. Filter by account, source and time range. ดูค่าใช้จ่ายรายวัน เงินไปหมดกับอะไร โมเดลไหนกับโปรเจกต์ไหนใช้เยอะสุด กรองตามบัญชี แหล่งข้อมูล และช่วงเวลาได้

Example dashboard with made-up numbers: cost over 30 days $2,333.92, cache hit rate 98%, a bar chart of daily cost for the last 30 days, the top models by cost, and the top projects by cost. ตัวอย่างแดชบอร์ด ตัวเลขสมมติ: ค่าใช้จ่าย 30 วัน $2,333.92 อัตราใช้แคชซ้ำ 98% กราฟแท่งค่าใช้จ่ายรายวัน 30 วันล่าสุด โมเดลที่ใช้เงินมากสุด และโปรเจกต์ที่ใช้เงินมากสุด

  • Modelsโมเดล
  • Projects and their budgetsโปรเจกต์และงบของแต่ละโปรเจกต์
  • SessionsSession
  • Git branchesBranch ของ Git
  • Heat map by hourHeat map รายชั่วโมง
  • Plan valueความคุ้มของแพ็กเกจ
  • CSV exportส่งออก CSV
See a real screenshotดูภาพหน้าจอจริง Hakari's dashboard Overview page with made-up numbers: cost, responses, cache hit rate, output tokens, where the money goes, daily cost and cost by model.

It can warn Claude Code tooเตือน Claude Code ให้ด้วยก็ได้

Turn on Tell Claude Code sessions and Hakari adds a hook to Claude Code's settings. When a limit gets close, each session gets a short note, so the model can save its work before the limit stops it. เปิด บอก session ของ Claude Code แล้ว Hakari จะเพิ่ม hook ลงในการตั้งค่าของ Claude Code พอลิมิตใกล้เต็ม ทุก session จะได้โน้ตสั้น ๆ โมเดลจะได้เซฟงานไว้ก่อนโดนลิมิตตัด

  • Off until you switch it on in Settings.ปิดไว้จนกว่าจะเปิดเองในหน้าตั้งค่า
  • The first note comes when a limit passes the share you choose, 80% by default.โน้ตแรกมาตอนลิมิตเกินระดับที่เลือกไว้ ค่าเริ่มต้นคือ 80%
  • One more note at each higher step, and one when the limit resets.ขึ้นอีกขั้นก็ได้โน้ตอีกครั้ง และได้อีกทีตอนลิมิตรีเซ็ต
  • Write your own note if you like. Values in braces, such as {percent}, {resets} and {in}, are filled in each time.เขียนข้อความเองก็ได้ ใส่ค่าในวงเล็บปีกกา เช่น {percent} {resets} {in} แล้ว Hakari เติมตัวเลขให้ทุกครั้ง
  • The note goes to the model, not to you, and adds no requests. WSL sessions are not covered yet.โน้ตส่งถึงโมเดล ไม่ได้เด้งมาหาคุณ และไม่เพิ่ม request เลย ตอนนี้ยังไม่รองรับ session ใน WSL

Example terminal. A Claude Code session receives this note from Hakari: ตัวอย่างเทอร์มินัล session ของ Claude Code ได้รับโน้ตนี้จาก Hakari: Hakari usage note for this Claude account: the 5-hour limit is at 92%, resets 22:30 local time (in 1 h 30 min). When a limit reaches 100%, requests are refused until it resets. Before starting long work, save progress (commit, or write down what is done and what is next) so the work can carry on after the reset.

Nine alert sounds, made on the spotเสียงเตือน 9 แบบ

When a limit passes a level you set, or resets, Hakari can play a sound. The app makes its sounds itself from a few notes, so no sound files ship with it. The buttons below make them the same way in your browser. You can also pick your own sound file and set the volume. พอลิมิตเกินระดับที่ตั้งไว้หรือรีเซ็ต Hakari เล่นเสียงบอกได้ เสียงในแอปสร้างขึ้นเองจากโน้ตไม่กี่ตัว ไม่ต้องมีไฟล์เสียงติดมา ปุ่มข้างล่างก็สร้างเสียงแบบเดียวกันในเบราว์เซอร์ กดฟังได้เลย จะใช้ไฟล์เสียงของตัวเองและปรับความดังก็ได้

60

What else it doesทำอะไรได้อีก

Every account, every placeทุกบัญชี ทุกที่

Windows, each WSL distribution and any extra config folder you add, for every signed-in account, in one total.รวม Windows, WSL ทุก distro และโฟลเดอร์ config ที่เพิ่มเอง ของทุกบัญชีที่ล็อกอินไว้ เป็นยอดเดียว

Cache priced rightคิดราคาแคชถูกต้อง

5-minute and 1-hour cache writes cost different amounts, and so do long prompts and fast mode. Hakari prices each one apart.เขียนแคช 5 นาทีกับ 1 ชั่วโมงราคาไม่เท่ากัน prompt ยาว ๆ กับ fast mode ก็เหมือนกัน Hakari แยกคิดให้ทุกแบบ

Prices update themselvesราคาอัปเดตเอง

Hakari checks for new prices once a day. When a new model turns up in your logs, it gets a price without waiting for an app update.เช็กราคาใหม่วันละครั้ง พอมีโมเดลใหม่โผล่ในล็อก ก็ได้ราคาเลยโดยไม่ต้องรออัปเดตแอป

Limits, alerts, a forecastลิมิต การเตือน และพยากรณ์

Get an alert at the levels you pick and see when the current pace would fill a limit. Set a daily and a monthly budget, and a monthly one per project.ตั้งให้เตือนที่ระดับไหนก็ได้ และรู้ว่าถ้าใช้ด้วยความเร็วนี้ลิมิตจะเต็มตอนไหน ตั้งงบรายวัน รายเดือน และงบรายเดือนแยกแต่ละโปรเจกต์ได้

Your own taskbar layoutจัดหน้าตาบนทาสก์บาร์เอง

Start from a template, arrange slots with a ring, a sparkline or thin bars, or write your own text format with any value Hakari knows.เริ่มจากเทมเพลต จัดช่องเองจะใส่วงแหวน กราฟเส้นเล็ก ๆ หรือแถบบางก็ได้ หรือเขียนรูปแบบข้อความเองด้วยค่าที่ Hakari มีให้

Readable on any wallpaperอ่านออกทุกพื้นหลัง

The widget's text color follows what is behind it, or a color you choose.สีตัวอักษรเปลี่ยนตามสิ่งที่อยู่ข้างหลังวิดเจ็ต หรือจะเลือกสีเองก็ได้

Centered taskbars, more screensทาสก์บาร์ตรงกลาง หลายจอ

With centered icons it uses the free left end. With no room at all it turns compact, then moves into the tray. It can show on every display.ถ้าไอคอนอยู่ตรงกลาง Hakari จะไปอยู่ฝั่งซ้ายที่ว่าง ถ้าไม่มีที่เลยก็ย่อเหลือแบบกะทัดรัด แล้วย้ายไปอยู่ในถาดไอคอน จะให้แสดงทุกจอก็ได้

Dashboard pagesหน้าแดชบอร์ด

Models, projects, sessions, branches, a heat map, plan value, and a CSV export of whatever the filter shows.โมเดล โปรเจกต์ session branch heat map ความคุ้มของแพ็กเกจ และส่งออก CSV ตามที่กรองไว้

English, Thai, any currencyไทย อังกฤษ สกุลเงินไหนก็ได้

Costs in the currency you pick, at daily exchange rates. Light, dark and high contrast themes.แสดงค่าใช้จ่ายเป็นสกุลเงินที่เลือก ใช้อัตราแลกเปลี่ยนรายวัน มีธีมสว่าง มืด และคอนทราสต์สูง

Light on your PCไม่หน่วงเครื่อง

It runs at low priority, reads only the new lines of each log and never starts WSL by itself.รันแบบ priority ต่ำ อ่านเฉพาะบรรทัดใหม่ในล็อก และไม่เปิด WSL ขึ้นมาเอง

Your prompts stay yoursprompt ของคุณไม่ไปไหน

  • Hakari reads token counts, model names and times from Claude Code's logs on your PC. Never the text of your prompts or the replies.Hakari อ่านจำนวน token ชื่อโมเดล และเวลา จากล็อกของ Claude Code ในเครื่อง ไม่อ่านข้อความใน prompt หรือคำตอบเลย

  • Everything stays in %LOCALAPPDATA%\Hakari. Nothing is uploaded, and there is no telemetry.ทุกอย่างเก็บอยู่ใน %LOCALAPPDATA%\Hakari ไม่อัปโหลดอะไรออกไปเลย และไม่เก็บสถิติการใช้งาน

  • Limits come from your account, through the sign-in Claude Code already keeps on your PC, and only for accounts where you turn limits on.ลิมิตดึงมาจากบัญชีโดยตรง ผ่านการล็อกอินที่ Claude Code เก็บไว้ในเครื่องอยู่แล้ว และดึงเฉพาะบัญชีที่คุณเปิดใช้ลิมิตเท่านั้น

  • Its other requests fetch prices, exchange rates and updates. None of them carry your usage.request อื่นมีแค่ดึงราคา อัตราแลกเปลี่ยน และอัปเดต ไม่มีอันไหนส่งข้อมูลการใช้งานออกไป

Read the full privacy policyอ่านนโยบายความเป็นส่วนตัวฉบับเต็ม (ภาษาอังกฤษ)

Installติดตั้ง

Free everywhere. Pick one. Windows 10 version 2004 or later, x64 or Arm64.ฟรีทุกช่องทาง เลือกทางเดียวพอ ใช้ได้กับ Windows 10 เวอร์ชัน 2004 ขึ้นไป ทั้ง x64 และ Arm64

Microsoft Store

Hakari - Usage Meter. Updates come through the Store.Hakari - Usage Meter อัปเดตผ่าน Store เอง

Open in Microsoft Storeเปิดใน Microsoft Store

winget

One line in a terminal.พิมพ์บรรทัดเดียวในเทอร์มินัล

winget install PHUICMT.Hakari

Zip

Unzip where you keep apps and run Hakari.exe. Nothing else to install. It updates itself from the flyout.แตกไฟล์ไว้ที่ไหนก็ได้แล้วเปิด Hakari.exe ไม่ต้องลงอะไรเพิ่ม อัปเดตตัวเองได้จากหน้าต่างป๊อปอัป

Download x64 or Arm64ดาวน์โหลด x64 หรือ Arm64

The zip is not code-signed yet, so SmartScreen may warn on first run: choose More info, then Run anyway.ไฟล์ zip ยังไม่ได้เซ็นโค้ด ตอนเปิดครั้งแรก SmartScreen อาจเตือน ให้กด More info แล้วกด Run anyway

What does Hakari count?Hakari นับอะไรบ้าง

Cost and tokens come from the logs Claude Code writes on this PC, in Windows, WSL and any folder you add. Claude Code on another PC or in the cloud is not in them. The usage limits come from your account, so they include everything.ค่าใช้จ่ายกับจำนวน token มาจากล็อกที่ Claude Code เขียนไว้ในเครื่องนี้ ทั้งใน Windows, WSL และโฟลเดอร์ที่เพิ่มเอง ถ้าใช้ Claude Code บนเครื่องอื่นหรือบนคลาวด์ จะไม่นับรวมในยอดนี้ ส่วนลิมิตมาจากบัญชี เลยรวมทุกที่

Is the cost what I pay?ยอดเงินคือที่จ่ายจริงไหม

No. It is what the same tokens would cost at API prices. On a subscription you pay the plan's price; the Plan value page compares the two.ไม่ใช่ เป็นราคาที่ token เท่านี้จะเสียถ้าจ่ายตามราคา API ถ้าใช้แบบสมัครสมาชิก คุณจ่ายตามราคาแพ็กเกจ หน้าความคุ้มของแพ็กเกจจะเทียบสองตัวเลขนี้ให้ดู

Will it start my WSL distributions?จะเปิด WSL ขึ้นมาเองไหม

No. By default Hakari only reads distributions that are already running. Open one once, or change this under Settings, Sources.ไม่เปิด ค่าเริ่มต้นจะอ่านเฉพาะ distro ที่รันอยู่แล้ว ถ้าอยากให้อ่าน เปิด distro นั้นสักครั้ง หรือไปเปลี่ยนในหน้าตั้งค่า ส่วนแหล่งข้อมูล

It shows no numbersไม่มีตัวเลขขึ้นเลย

Hakari looks for .claude folders in your user folder and in WSL. Use Claude Code once and the numbers appear, or add a folder under Settings, Sources, Extra config folders.Hakari หาโฟลเดอร์ .claude ในโฟลเดอร์ผู้ใช้และใน WSL ลองใช้ Claude Code สักครั้งแล้วตัวเลขจะขึ้น หรือเพิ่มโฟลเดอร์เองในหน้าตั้งค่า ส่วนแหล่งข้อมูล