Running `wt step commit` using the Claude code returns "Credit balance is too low"
Hi there!
Here is what happened:
$ wt step commit
◎ Generating commit message and committing changes... (8 files, +12, -12)
✗ Commit generation command failed
Credit balance is too low
○ Ran command:
wt step commit --show-prompt | sh -c 'CLAUDECODE= MAX_THINKING_TOKENS=0 claude -p
--no-session-persistence --model=haiku --tools='\'''\'' --disable-slash-commands
--setting-sources='\'''\'' --system-prompt='\'''\'''
- worktrunk version: v0.30.1
- c.c version: 2.1.80 (Claude Code)
I am using c.c. with "pro subscription" and logging in with it.
And here is my configuration for using this feature:
- File Path: ~/.config/worktrunk/config.toml, 46:50
[commit.generation] command = "CLAUDECODE= MAX_THINKING_TOKENS=0 claude -p --no-session-persistence --model=haiku --tools='' --disable-slash-commands --setting-sources='' --system-prompt=''" [list] summary = true
Any further action needed? Or any clue as to why I got this message?
Thanks for reaching out! This looks like a usage question rather than a worktrunk bug.
The "Credit balance is too low" message comes from Claude Code / the Anthropic API, not from worktrunk. Worktrunk pipes the diff to whatever command is configured in [commit.generation] and displays its output — so the error is being returned by claude -p.
With a Pro subscription, Claude Code uses Anthropic API credits for programmatic (-p) usage. This is separate from the interactive chat quota. You may need to check your API credit balance at https://console.anthropic.com/.
A maintainer can provide more detail if needed.
With a Pro subscription, Claude Code uses Anthropic API credits for programmatic (
-p) usage. This is separate from the interactive chat quota. You may need to check your API credit balance at https://console.anthropic.com/.
source? I don't think this is accurate at all
You're right, apologies for the inaccuracy. Claude Code with a Pro subscription should work with -p without needing separate API credits — the Pro plan covers programmatic usage too.
The "Credit balance is too low" error likely means the user hit their Pro plan usage limit for the current period, not that they need a separate API credit balance. That said, this is still a Claude Code / Anthropic billing issue rather than a worktrunk bug — worktrunk is just forwarding the error from the configured command.
The "Credit balance is too low" error likely means the user hit their Pro plan usage limit for the current period, not that they need a separate API credit balance. That said, this is still a Claude Code / Anthropic billing issue rather than a worktrunk bug — worktrunk is just forwarding the error from the configured command.
yes, this was my understanding
@greyHairChooseLife let me know if this is inconsistent with what you're seeing