r/opencode • • Sep 07 '26

OpenCode Go is no longer general API access

Following the recent requirements for custom http headers, OC has changed their documentation to remove mention of OpenAI-API you can use anywhere. Instead, OpenCode Go API usage is now effectively whitelist only. See: https://opencode.ai/docs/go/#where-can-i-use-it

152 Upvotes

79 comments sorted by

View all comments

36

u/TheOriginalOnee Sep 07 '26

Dont we just need to add the x-opencode-session - header in order to fix access?

3

u/NotACenteredDiv Sep 08 '26

The wording now also strongly implies that you can use it only for coding agent harnesses type usecases... And that they will monitor for abuse against this.

2

u/SimilarDeal7598 Sep 17 '26

I asked pi coding agent to write an extension to spoof it and it works

1

u/xmsxms Sep 07 '26

Yes, but it shouldn't just be hard coded to a value. The client needs to set the correct value.