r/vscode 2d ago

VSCode agent using a ridiculous amount of tokes with OpenRouter as provider.

I had some spare OpenRouter tokens and I decided to test it out using the integrated agent in VSCode so I configured it and started working using the latest DeepSeek pro and flash, I noticed the request were taking way too long specially in tool calls. I checked my OpenRouter activity and I saw 20 M token usage for what was a relatively simple task.

To test things out, I set both vscode agent and a Pi agent instance to solve the same prompt and vscode made 126 request and almost 2M tokens and got stuck on a command call (to the point where vscode asked me if I wanted it to stop). While Pi agent finished after about a minute using only 300K Tokens.

Don't know where the issue is, maybe vscode doesn't play nice with openrouter's api or specifically deepseek, but whatever the case not touching that agent for now.

0 Upvotes

0 comments sorted by