We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a5af6 commit d722026Copy full SHA for d722026
1 file changed
packages/opencode/src/plugin/index.ts
@@ -25,6 +25,11 @@ export namespace Plugin {
25
const client = createOpencodeClient({
26
baseUrl: "http://localhost:4096",
27
directory: Instance.directory,
28
+ headers: Flag.OPENCODE_SERVER_PASSWORD
29
+ ? {
30
+ Authorization: `Basic ${Buffer.from(`${Flag.OPENCODE_SERVER_USERNAME ?? "opencode"}:${Flag.OPENCODE_SERVER_PASSWORD}`).toString("base64")}`,
31
+ }
32
+ : undefined,
33
fetch: async (...args) => Server.Default().fetch(...args),
34
})
35
const config = await Config.get()
0 commit comments