To be able to add funds/credits in Claude Code like you can in normal Claude (a small button shows up saying Add Funds)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
This is an excerpt from chatting in "normal" Claude after being somewhat frustrated when working in Claude Code. I was suggested in the end of this chat to report to you guys here, hence this "issue"-report. So I just copied the text from the chat and pasted it here, and you can do what you want with it :)
_Me_ - "I'm sitting coding with Claude Code, and suddenly I get the annoying message "Spending cap reached resets 8pm". I guess my credits ran out (very annoying and unproductive when you're in a flow). So now I got a message that says "Wallet empty" with a link "Add funds". Why don't I get that in Claude Code so that I can easily add funds from there?"
_Claude_ - "Validated frustration and contemplated product feedback implications.
Peter is frustrated because he hit his spending cap in Claude Code and there's no easy way to add funds directly from the CLI tool - he has to go to the web interface instead. This is a reasonable UX complaint about the Claude Code product.
Let me think about this:
He's using Claude Code (the command line tool for agentic coding)
He hit a spending cap
The web interface shows "Wallet empty" with an "Add funds" link
Claude Code doesn't provide this convenience - it just shows the cap message
This is product feedback/a feature request. I should:
Acknowledge his frustration - hitting a cap mid-flow is genuinely disruptive
Explain what I know about the current state (Claude Code is a CLI tool, and adding funds typically requires web authentication/payment processing)
_Suggest he provide this as feedback to Anthropic_
I shouldn't pretend to know exactly why the feature isn't there, but I can speculate reasonably about technical/UX reasons while validating his point that it would be more convenient.Ugh, that's genuinely frustrating — hitting a spending cap when you're deep in flow is one of the most jarring interruptions. I totally get the annoyance.
As for why Claude Code doesn't have a direct "Add funds" link: I don't have insider knowledge of the product decisions, but I'd guess it comes down to a few practical factors:
Payment flows need a browser — Adding funds involves authenticated payment processing (credit cards, billing info, etc.) which is inherently a web-based interaction. A CLI can't easily embed that securely.
Claude Code is still in beta — It's a relatively new tool and the team may simply not have built out the convenience features yet. The core focus has been on the coding capabilities.
Separation of concerns — The billing/account management is centralized in the web console, which keeps the CLI lean.
That said, your point is valid: at minimum, Claude Code could output a clickable URL directly to the "Add funds" page instead of just a generic message. Something like:
Spending cap reached. Add funds: https://console.anthropic.com/settings/billing
That would at least save you the friction of navigating there manually.
My suggestion: This is exactly the kind of UX feedback Anthropic wants to hear. You can:
Use the /bug command in Claude Code to report feedback
Or submit it via the GitHub repo: https://github.com/anthropics/claude-code
Given how much time devs spend in flow states, a smoother "refuel" experience seems like a reasonable ask. 🙂"
Proposed Solution
Add the same kind of button/link to Claude Code as you have in regular Claude, i.e. "Add funds", to make it easier to quickly refill when you've run out of funds. Especially if you're sitting coding and have an extensive exchange of ideas and so on. I believe this is morre important for Claude Code than to have it in the regular Claude since you are more likely to run out of funds in Code.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗