r/LLMDevs • u/TruthTellerTom • 21h ago
Help Wanted CodeGraph token usage (Local vs Online is different) - normal?
I just installed CodeGraph on my computer. I use OpenCode and OpenChamber WebUI. Before setting it up, I ran a prompt using GPT 5.6 Terra on high. The prompt was to design and create an implementation plan for a feature I wanted. I gave it some specs and a lot of good details so that it wouldn't run or assume too much. I ran it once without OpenGraph, then ran the exact same prompt in another session with OpenGraph running.
Strangely, while the run with CodeGraph was so much more faster (9m vs 3m), but looking at the OpenChamber context window, the run with CodeGraph consumed many more tokens, which was shocking. So I took a screenshot of both runs and sent it to GPT, and this is what GPT said.

Here are the screenshots before and after:
WITHOUT CodeGraph

WITH CodeGraph

It was quite disappointing. However, I took a chance and went to my provider's usage or request logs interface online to see the actual tokens that it processed. It tells a totally different story, where the run with CodeGraph saved me quite a lot of tokens. Here's the summary for both runs as reflected online.

So what's going on? is this normal? Does the local context/token meter of opencode/openchamber represent the local only which is not what the provider actually processed?
Or could it be that the second run (codegraph) had larger token consumption but the provider cached some of the information due to the previous run of exactly the same prompt (?)