Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

Fix Windows installer verification for Unicode paths (#1323)

Ali Khokhar6d42adfeea61
diff --git a/pyproject.toml b/pyproject.toml
index 62ffe342..3cd2e679 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "4.16.2"
+version = "4.16.3"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index 87b11213..00918102 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -96,7 +96,7 @@ function Invoke-NativeCommand {
}
}
-function Invoke-NativeCapture {
+function Invoke-Utf8NativeCapture {
param(
[string] $FilePath,
[string[]] $Arguments = @()
@@ -104,9 +104,16 @@ function Invoke-NativeCapture {
$commandText = Format-Command -FilePath $FilePath -Arguments $Arguments
Write-Host "+ $commandText"
- $global:LASTEXITCODE = 0
- $output = & $FilePath @Arguments
- $exitCode = $LASTEXITCODE
+ $originalOutputEncoding = [Console]::OutputEncoding
+ try {
+ [Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
+ $global:LASTEXITCODE = 0
+ $output = & $FilePath @Arguments
+ $exitCode = $LASTEXITCODE
+ }
+ finally {
+ [Console]::OutputEncoding = $originalOutputEncoding
+ }
if ($exitCode -ne 0) {
throw "Command failed with exit code ${exitCode}: $commandText"
}
@@ -389,7 +396,7 @@ function Convert-UvVersionOutput {
function Get-UvVersion {
param([string] $UvPath)
- $output = Invoke-NativeCapture -FilePath $UvPath -Arguments @("--version")
+ $output = Invoke-Utf8NativeCapture -FilePath $UvPath -Arguments @("--version")
$version = Convert-UvVersionOutput $output
if ([string]::IsNullOrWhiteSpace($version)) {
throw "uv is present, but 'uv --version' did not return a valid version."
@@ -573,7 +580,7 @@ function Configure-AndConfirmFreeClaudeCode {
throw "uv is not available for PATH configuration."
}
Invoke-NativeCommand -FilePath $uvCommand.Source -Arguments @("tool", "update-shell")
- $toolBin = Invoke-NativeCapture -FilePath $uvCommand.Source -Arguments @("tool", "dir", "--bin")
+ $toolBin = Invoke-Utf8NativeCapture -FilePath $uvCommand.Source -Arguments @("tool", "dir", "--bin")
if ([string]::IsNullOrWhiteSpace($toolBin)) {
throw "uv returned an empty tool bin directory."
}
diff --git a/uv.lock b/uv.lock
index 0ee0ae31..1071bc8a 100644
--- a/uv.lock
+++ b/uv.lock
@@ -620,7 +620,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "4.16.2"
+version = "4.16.3"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },