Skip to main content
PUT
Store an OpenRouter key in the OpenCode connection

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
api_key
string
required
Minimum string length: 1

Response

OK

auth
object | null
required
needs_reauth
boolean
required
reauth_reason
string