Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "free-claude-code"
version = "6.2.50"
version = "6.2.51"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
Expand Down
2 changes: 2 additions & 0 deletions src/free_claude_code/harnesses/claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def claude_proxy_values(proxy_root_url: str, auth_token: str) -> dict[str, str]:
"ANTHROPIC_BASE_URL": proxy_root_url,
"ANTHROPIC_AUTH_TOKEN": auth_token,
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
# FCC uses Claude's separate classifier requests, not Anthropic server checks.
"CLAUDE_CODE_AUTO_MODE_SERVER": "0",
"CLAUDE_CODE_DISABLE_ADVISOR_TOOL": "1",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": CLAUDE_CODE_AUTO_COMPACT_WINDOW,
"DISABLE_AUTOUPDATER": "1",
Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_claude_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ def test_claude_owns_permission_selection(
assert env["ANTHROPIC_AUTH_TOKEN"] == "launcher-test-token"
assert env["CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY"] == "1"
assert env["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"] == "1"
assert env["CLAUDE_CODE_AUTO_MODE_SERVER"] == "0"
2 changes: 2 additions & 0 deletions tests/cli/test_entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def test_claude_child_env_targets_current_proxy_config() -> None:
"ANTHROPIC_AUTH_TOKEN": "old-token",
"ANTHROPIC_API_KEY": "official-key",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "0",
"CLAUDE_CODE_AUTO_MODE_SERVER": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"DISABLE_AUTOUPDATER": "0",
"DISABLE_FEEDBACK_COMMAND": "0",
Expand All @@ -446,6 +447,7 @@ def test_claude_child_env_targets_current_proxy_config() -> None:
assert env["ANTHROPIC_BASE_URL"] == "http://127.0.0.1:9090"
assert env["ANTHROPIC_AUTH_TOKEN"] == "proxy-token"
assert env["CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY"] == "1"
assert env["CLAUDE_CODE_AUTO_MODE_SERVER"] == "0"
assert env["CLAUDE_CODE_AUTO_COMPACT_WINDOW"] == "190000"
assert env["DISABLE_AUTOUPDATER"] == "1"
assert env["DISABLE_FEEDBACK_COMMAND"] == "1"
Expand Down
3 changes: 3 additions & 0 deletions tests/harnesses/test_claude_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
{"name": "KEEP", "value": "yes"},
{"name": "ANTHROPIC_AUTH_TOKEN", "value": "old", "extra": "keep"},
{"name": "CLAUDE_CODE_DISABLE_ADVISOR_TOOL", "value": "0"},
{"name": "CLAUDE_CODE_AUTO_MODE_SERVER", "value": "1"},
],
}""",
encoding="utf-8",
Expand All @@ -158,6 +159,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
"ANTHROPIC_AUTH_TOKEN",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY",
"CLAUDE_CODE_DISABLE_ADVISOR_TOOL",
"CLAUDE_CODE_AUTO_MODE_SERVER",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW",
"DISABLE_AUTOUPDATER",
"DISABLE_FEEDBACK_COMMAND",
Expand All @@ -170,6 +172,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
}
assert entries["CLAUDE_CODE_AUTO_COMPACT_WINDOW"]["value"] == "190000"
assert entries["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"]["value"] == "1"
assert entries["CLAUDE_CODE_AUTO_MODE_SERVER"]["value"] == "0"
assert "//" not in path.read_text().replace("http://", "")
assert operate(path, False) == {"connected": False}
assert json.loads(path.read_text()) == {
Expand Down
1 change: 1 addition & 0 deletions tests/harnesses/test_integration_refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_refresh_upgrades_original_claude_directly_and_only_once(tmp_path):
for entry in saved["claudeCode.environmentVariables"]
}
assert env["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"] == "1"
assert env["CLAUDE_CODE_AUTO_MODE_SERVER"] == "0"
assert env["KEEP_ME"] == "user-value"
assert saved["editor.fontSize"] == 15
assert json.loads(state.read_text()) == {
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading