r/opencode • • 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

14 comments sorted by

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.

2

u/FewDaYS_xoxo 10d ago

I'm learning on Free Api

Many free LLM has limit of 6000 Token per minute 😭

2

u/SnooDoggos3667 10d ago

are you sure, you are not confusing it with 6000 request per minute ?

2

u/FewDaYS_xoxo 10d ago

Yes sir, I'm sure

Free api from Groq

1

u/Oli_Luck 10d ago

btw : why dont you use opencode free tier or even openrouter free tier ?

1

u/FewDaYS_xoxo 9d ago

I does, but I want to resolve this high initial input token cost It will make them last longer on same work.

1

u/Oli_Luck 9d ago

^for real - it is not high, as other told you there are way more heavy harnesses : Claude is about 25k without any addon

1

u/PerfectReflection155 10d ago

Check out freebuff. I am still using the freebuff starter plan as you can get an insane amount of use out of it.

Glm 5.3 flash was the top model I used on it for a while then deepseek 4.1 flash. Now I’m using muse ember which actually seems like deepseek but twice as fast. Not necessarily twice as smart but it’s faster at tasks.

You can bridge it to opencode and yeah maybe I did it. But it’s against tos and a bannable office. Anyway, I’m hoping to replace freebuff with command code goat plan along with opencode go and Claude pro.

1

u/SnooDoggos3667 10d ago

Apinex has 20 m free token per day.

1

u/FewDaYS_xoxo 10d ago

Thanks❤️

2

u/Oli_Luck 10d ago • Heartwarming

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 • Heartwarming

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.