Opencode no Caching via Openrouter anymore? #488

Closed
opened 2026-02-16 17:27:02 -05:00 by yindo · 2 comments
Owner

Originally created by @wienans on GitHub (Jul 4, 2025).

Originally assigned to: @thdxr on GitHub.

Hey,

did someone else see that opencode does not get cache usage (cache read reduction) via openrouter?

Image

8:56 i noticed that the price is blowing up with every request with opencode, which was very strange to me. I didn't used it in the last days but last time i used it it used cacheing.

9:04 i verified with Roo if it might be that the provider does not cache anymore but it worked with roo (see lower price of second request.
9:05 i asked the same question to opencode and the price increased (and no caching)
9:10 i tried with a old version (v0.1.156) where i knew that caching worked

This log is from where is used opencode first with v0.1.156 and there caching worked.
Image

As the old version didn't work with caching anymore my first though of something in the data send to the API changed which makes it impossible to cache got debunked. Currently no idea why this is. I will also reach out in openrouter discord.

Originally created by @wienans on GitHub (Jul 4, 2025). Originally assigned to: @thdxr on GitHub. Hey, did someone else see that opencode does not get cache usage (cache read reduction) via openrouter? ![Image](https://github.com/user-attachments/assets/739cb1ef-eb93-4f00-8846-492c5f64b3c3) 8:56 i noticed that the price is blowing up with every request with opencode, which was very strange to me. I didn't used it in the last days but last time i used it it used cacheing. 9:04 i verified with Roo if it might be that the provider does not cache anymore but it worked with roo (see lower price of second request. 9:05 i asked the same question to opencode and the price increased (and no caching) 9:10 i tried with a old version (v0.1.156) where i knew that caching worked This log is from where is used opencode first with v0.1.156 and there caching worked. ![Image](https://github.com/user-attachments/assets/91cca2a5-da3d-4e78-924f-f378a32c579a) As the old version didn't work with caching anymore my first though of something in the data send to the API changed which makes it impossible to cache got debunked. Currently no idea why this is. I will also reach out in openrouter discord.
yindo closed this issue 2026-02-16 17:27:02 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 4, 2025):

will fix i think i see the issue

@thdxr commented on GitHub (Jul 4, 2025): will fix i think i see the issue
Author
Owner

@wienans commented on GitHub (Jul 9, 2025):

Tested and fixed in v0.2.13 Thanks alot.

@wienans commented on GitHub (Jul 9, 2025): Tested and fixed in v0.2.13 Thanks alot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#488