
Does your opencode report low credit usage than actual
I am using OpenCode with Anthropic API key. using Opus 4.6 for some time. The one thing i like in OpenCode is that it spawns subagents to explore the code and subtasks, particularly for exploring the code, the subagents read the entire codebase file by file and their context gets to 100-200k in a minute, they report a summary and important line numbers and filenames to main agent. Now the main agent has the important line numbers and the context and it does not have to carry the file contents in its context. Which helps opencode to not fill its context quickly (unlike cursor) and still be relevant.
I know that the cost reported in the screenshot only includes cost of main agent and we need to click on subagents delegation lines and press right and left arrow to check the costs of subagents. but still, I have summed up the cost of subagents in the chat and also the main agent, it is reaching like 35-40 USD but it anthropic console I am seeing 150 USD consumed. It is happening always, It seems OpenCode is under reporting the cost.
I know claude's TTL of cache is 5 minutes only, I also want to know whether opencode takes this also into count and calculates accordingly or does it assume cache is hit always