cd /news/developer-tools/building-a-tiny-windows-tray-app-wit… · home topics developer-tools article
[ARTICLE · art-55359] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Building a tiny Windows tray app with .NET 9 Native AOT and raw Win32

A developer built CreditMeter, a Windows tray app that displays GitHub Copilot AI-credit usage in real time. The app uses .NET 9 Native AOT, raw Win32 APIs, and the GitHub REST API, with no WinForms, WPF, or backend dependencies. The project demonstrates how to create minimal, dependency-free tools for monitoring AI service consumption.

read1 min views1 publishedJul 11, 2026

I built CreditMeter, a small Windows tray app that shows GitHub Copilot AI-credit usage like a taxi meter.

#

Why I built it

Agentic coding makes AI usage feel invisible until you look at the bill.

#

Constraints

  • no WinForms

  • no WPF

  • no backend

  • no telemetry

  • no dependency-heavy architecture

#

Tech stack

  • C# / .NET 9
  • Native AOT
  • raw Win32 / PInvoke
  • GitHub REST API
  • DPAPI for local PAT storage

#

What I learned

For tiny tools, architecture is also about knowing what not to add.

#

Repo

https://github.com/cdilorenzo/CreditMeter

── more in #developer-tools 4 stories · sorted by recency
── more on @creditmeter 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-tiny-wind…] indexed:0 read:1min 2026-07-11 ·