fix: update Basic auth username from opencode to kilo

This commit is contained in:
Mark IJbema
2026-02-19 16:26:09 +01:00
parent a7cc035b0b
commit 0c213086c7
@@ -24,8 +24,8 @@ export class HttpClient {
constructor(config: ServerConfig) {
this.baseUrl = config.baseUrl
// Auth header format: Basic base64("opencode:password")
// NOTE: The CLI server expects a non-empty username ("opencode"). Using an empty username
// Auth header format: Basic base64("kilo:password")
// NOTE: The CLI server expects a non-empty username ("kilo"). Using an empty username
// (":password") results in 401 for both REST and SSE endpoints.
this.authHeader = `Basic ${Buffer.from(`${this.authUsername}:${config.password}`).toString("base64")}`