Switching Claude Code's default model to Sonnet and showing session cost in yen
After the Claude account moved to the Enterprise plan in October 2026, token limits were removed and usage became pay-as-you-go. The author says the usage percentage is no longer visible. In the team's shared .claude/settings.json template, the default model is now Sonnet, Opus is set as an advisor for hard decisions, and the subagent[1] default is Haiku. The official documentation lists Opus as the default for many plans, including Enterprise, but the author changed it to Sonnet to reduce costs.
In a personal setup, the author replaced the usage limits in the Statusline[2] with the cost of the current session, taken from the JSON input. This figure is an estimate that Claude Code calculates on the client from the list price[3], so it may differ from the actual bill, and it resets to $0 after /clear. To make the amount easier to judge, the script converts dollars to yen using an exchange rate that is fetched once a day and cached, and it shows dollars if the rate cannot be obtained.
Seeing the cost rise, the author started splitting long sessions and beginning new ones with /clear. The author says the switch to Enterprise happened just over a month ago, so measuring how much the model change saves is left for later.
Repository Claude Code github.com
An agentic coding tool that runs in the terminal, reads your codebase, and carries out coding tasks and git workflows from natural-language commands.
Sources
-
JPZenn JA
Claude Code の既定モデルを Sonnet にして、Statusline に利用金額を円で出した話



