Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
// resolveTeamHubBaseUrl returns the configured TeamHub API base, or the page
// origin when none is configured, as a directory URL for relative paths.
export function resolveTeamHubBaseUrl(configured?: string) {
if (configured?.trim()) {
return new URL(configured.endsWith("/") ? configured : `${configured}/`);
}
return new URL("/", globalThis.location?.origin ?? "http://localhost");
}