rebrand: replace OpenCode with Kilo in OAuth callback pages and auth metadata

This commit is contained in:
Josh Lambert
2026-03-09 01:29:40 -04:00
parent 094fcdf2d1
commit 7b9351f352
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -531,7 +531,7 @@ export namespace ACP {
"terminal-auth": {
command: "opencode",
args: ["auth", "login"],
label: "OpenCode Login",
label: "Kilo Login", // kilocode_change
},
}
}
@@ -556,7 +556,7 @@ export namespace ACP {
},
authMethods: [authMethod],
agentInfo: {
name: "OpenCode",
name: "Kilo", // kilocode_change
version: Installation.VERSION,
},
}
+3 -3
View File
@@ -6,7 +6,7 @@ const log = Log.create({ service: "mcp.oauth-callback" })
const HTML_SUCCESS = `<!DOCTYPE html>
<html>
<head>
<title>OpenCode - Authorization Successful</title>
<title>Kilo - Authorization Successful</title>
<style>
body { font-family: system-ui, -apple-system, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #1a1a2e; color: #eee; }
.container { text-align: center; padding: 2rem; }
@@ -17,7 +17,7 @@ const HTML_SUCCESS = `<!DOCTYPE html>
<body>
<div class="container">
<h1>Authorization Successful</h1>
<p>You can close this window and return to OpenCode.</p>
<p>You can close this window and return to Kilo.</p>
</div>
<script>setTimeout(() => window.close(), 2000);</script>
</body>
@@ -26,7 +26,7 @@ const HTML_SUCCESS = `<!DOCTYPE html>
const HTML_ERROR = (error: string) => `<!DOCTYPE html>
<html>
<head>
<title>OpenCode - Authorization Failed</title>
<title>Kilo - Authorization Failed</title>
<style>
body { font-family: system-ui, -apple-system, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #1a1a2e; color: #eee; }
.container { text-align: center; padding: 2rem; }
+2 -2
View File
@@ -38,8 +38,8 @@ export class McpOAuthProvider implements OAuthClientProvider {
get clientMetadata(): OAuthClientMetadata {
return {
redirect_uris: [this.redirectUrl],
client_name: "OpenCode",
client_uri: "https://opencode.ai",
client_name: "Kilo", // kilocode_change
client_uri: "https://kilo.ai", // kilocode_change
grant_types: ["authorization_code", "refresh_token"],
response_types: ["code"],
token_endpoint_auth_method: this.config.clientSecret ? "client_secret_post" : "none",
+3 -3
View File
@@ -145,7 +145,7 @@ async function refreshAccessToken(refreshToken: string): Promise<TokenResponse>
const HTML_SUCCESS = `<!doctype html>
<html>
<head>
<title>OpenCode - Codex Authorization Successful</title>
<title>Kilo - Codex Authorization Successful</title>
<style>
body {
font-family:
@@ -176,7 +176,7 @@ const HTML_SUCCESS = `<!doctype html>
<body>
<div class="container">
<h1>Authorization Successful</h1>
<p>You can close this window and return to OpenCode.</p>
<p>You can close this window and return to Kilo.</p>
</div>
<script>
setTimeout(() => window.close(), 2000)
@@ -187,7 +187,7 @@ const HTML_SUCCESS = `<!doctype html>
const HTML_ERROR = (error: string) => `<!doctype html>
<html>
<head>
<title>OpenCode - Codex Authorization Failed</title>
<title>Kilo - Codex Authorization Failed</title>
<style>
body {
font-family:
+1 -1
View File
@@ -41,7 +41,7 @@ export namespace ProviderError {
function error(providerID: string, error: APICallError) {
if (providerID.includes("github-copilot") && error.statusCode === 403) {
return "Please reauthenticate with the copilot provider to ensure your credentials work properly with OpenCode."
return "Please reauthenticate with the copilot provider to ensure your credentials work properly with Kilo." // kilocode_change
}
return error.message