As recorded at collection: How to use OpenCode's free tier externally
As recorded at collection: The AI model API service OpenCode offers a free tier, and the community has shared a way to continue using it externally. External use produces a 400 error, and the previous API public key and specific request headers are required.
- What you get
- Continue using OpenCode's free tier
- Price
- To be confirmed
- Valid until
- To be confirmed
- Requirements
- 400 error when using OpenCode externally · Previous API public key required · Add the request headers x-opencode-session: public and x-opencode-client
Details
Using the free tier outside OpenCode causes a 400 error from the Console provider. This is a way to use it by continuing to use the previous API public key and adding request headers.
Use the previous API public key, and add x-opencode-session: public and x-opencode-client to the request headers (information sent along with the request). The value to put in x-opencode-client and the API public key itself were not provided separately.
When used externally, an error message appears saying that the free tier can only be used within OpenCode. The usage period and pricing, account requirements, and how to handle errors need to be confirmed.
Sources and verification history
- Collection channel
- linux.do
- Collected at
- September 14, 2026, 11:57 KST
- First published
- Updated