r/ClaudeAI • • 9d ago

Built with Claude I built an open-source desktop chat window for Claude Code: live streaming, cost tracking, saved chats (Linux)

Post image

Hi everyone — I hit the weekly limit on my $200 Claude Ultra plan in 3 days of heavy coding, with prepaid API credits sitting unused on console.anthropic.com. So I built AI Chat (aichat-desktop): a PyQt6 desktop window around the official claude command. It can run on your subscription or on an ANTHROPIC_API_KEY.

How I built it: I built it together with Claude. The app is a thin PyQt6 window that runs claude -p --output-format stream-json, so it can stream tool calls and text live, and the permission modes map to Claude Code's own flags (Read only is --permission-mode default with a short allow-list, Full auto is --dangerously-skip-permissions behind a confirmation). The part I'm least sure about is the credit counter: Anthropic has no balance API, so it counts down from the starting balance you type in. I'd like to hear if you've solved that better.

  • Live streaming: you see which tool Claude is using ("Reading app.py", "Running: pytest") and the answer as it's written
  • Cost tracking: cost per reply and per chat, plus a "% left" counter based on the starting balance you enter
  • Context control: context-size readout and a Compact button so long chats don't burn credits
  • Chat features: rendered Markdown (tables, code blocks with one-click Copy), Ctrl+V screenshot paste, message queue, saved chats, Markdown export
  • Safety: project folder picker and permission modes: Read only (default), Edit files, Full auto (asks first)
  • Themes: dark, light, classic, follow system

It needs the claude command installed and signed in.

It's Linux-first, and Windows is beta (the tests pass in CI, but I haven't used it on a Windows desktop). MIT license. The API key is stored in plain text with owner-only permissions, like ~/.aws/credentials.

Not affiliated with or endorsed by Anthropic. Feedback, bug reports and PRs welcome. What would you want a window like this to do that it doesn't yet?

0 Upvotes

7 comments sorted by

4

u/nikkel258 9d ago

for what?! Just cut your subsciption..
This is just token burnage for nothing usefully

2

u/oviovii 9d ago

why not just use browse claude? or claude code or opencode?

2

u/OppositeOfIrony 9d ago

Wait what? I don't get it. So you just...rebuilt the graphical portion of Claude Desktop?

But why? Who would use this over what already exists?

1

u/GotDaOs 9d ago

you claim the issue is you had prepaid API credits and no place to use them? you know that claude code can also be configured to draw from API credits? definitely in claude code tui, not 100% about claude code desktop

1

u/Artium99 6d ago

Bruh not another one of these 😞