Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/the-open-agent/openagent
/ setAuth
Method
setAuth
model/opencode.go:426–430 ·
view source on GitHub ↗
(req *http.Request)
Source
from the content-addressed store, hash-verified
424
}
425
426
func
(p *OpenCodeProvider) setAuth(req *http.Request) {
427
if
p.apiKey !=
""
{
428
req.SetBasicAuth(
"opencode"
, p.apiKey)
429
}
430
}
Callers
4
createSession
Method · 0.95
deleteSession
Method · 0.95
sendMessageAsync
Method · 0.95
readSSEStream
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected