r/opencode • u/FewDaYS_xoxo • 10d ago
Why is my initial token overhead 6-7k per session? Student on free tier
I'm a student on OpenCode's free tier, and each new session starts with about 6-7k input tokens, even for a simple prompt like "Hi" or "2+2." That burns through my free limit fast.
I tried a stripped-down "pure" agent setup, which dropped the same prompt to around 600 input tokens. But it broke or messed with the model's functionality, so it wasn't usable.
Has anyone found a middle ground that trims the overhead without breaking things? Any tips would be really appreciated. Thanks!
3
Upvotes
3
u/PerfectReflection155 10d ago
6-7k is already very light.
If you want lighter go to Pi
Mine is closer to 17k on Pi and 20k on OpenCode. And im ok with that. My system is pretty heavy as I have a lot of skills, plugins and a handful of mcps.
On Claude Code it’s 80k with only a few mcps so it’s still way lighter than that.
1
u/SnooDoggos3667 10d ago
Apinex has 20 m free token per day.
2
u/Oli_Luck 10d ago •
you first tokens are the system prompt - reinjected on each turn ( but cached normally after first ) which contains:
- the content of agent.md globally + if aavailable the agent.md in working dir.
- varying on Harness hard coded instructions like "you are xxx, dont do forbidden things, you are in Harness xxx"
- the available tools to the agent (bash, ls, etc: this is the bigger part. you can enable/disable each tool
- mcps : some mcp got a large list of tools which are also feeded
- skills
2
u/alichherawalla 10d ago
6-7k is already lean, so the easier fix is more usage, not a smaller prompt.
Boost gives you every open-weight model on one key you can plug into OpenCode, for $4.99 a month, 50% off for life, and it never stores or trains on your prompts.
Full disclosure, it's mine.
getoffgridai.co/boost
2
u/CrypticViper_ 9d ago •
That's the system prompt (AGENTS.md, tool instructions, skills, MCP servers, etc.). I would recommend Pi, like the other guy said.
1
u/UseFit 9d ago
Use deepseek free model on openrouter, why are you using grok api.