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

Disable Anthropic advisor in FCC Claude sessions (#1838)

Ali Khokhar7d0b11189ddf
diff --git a/README.md b/README.md
index 75ceb70b..3231cc65 100644
--- a/README.md
+++ b/README.md
@@ -359,6 +359,7 @@ Install the [Claude Code extension](https://marketplace.visualstudio.com/items?i
{ "name": "ANTHROPIC_BASE_URL", "value": "http://localhost:8082" },
{ "name": "ANTHROPIC_AUTH_TOKEN", "value": "freecc" },
{ "name": "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY", "value": "1" },
+ { "name": "CLAUDE_CODE_DISABLE_ADVISOR_TOOL", "value": "1" },
{ "name": "CLAUDE_CODE_AUTO_COMPACT_WINDOW", "value": "190000" },
{ "name": "DISABLE_AUTOUPDATER", "value": "1" },
{ "name": "DISABLE_FEEDBACK_COMMAND", "value": "1" },
@@ -454,6 +455,7 @@ Set the environment for `acp.registry.claude-acp`:
"ANTHROPIC_BASE_URL": "http://localhost:8082",
"ANTHROPIC_AUTH_TOKEN": "freecc",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
+ "CLAUDE_CODE_DISABLE_ADVISOR_TOOL": "1",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "190000",
"DISABLE_AUTOUPDATER": "1",
"DISABLE_FEEDBACK_COMMAND": "1",
diff --git a/pyproject.toml b/pyproject.toml
index e6a5056d..c1fc1296 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "6.2.42"
+version = "6.2.43"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
diff --git a/src/free_claude_code/harnesses/claude.py b/src/free_claude_code/harnesses/claude.py
index 50558e13..9540e161 100644
--- a/src/free_claude_code/harnesses/claude.py
+++ b/src/free_claude_code/harnesses/claude.py
@@ -14,6 +14,7 @@ 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",
+ "CLAUDE_CODE_DISABLE_ADVISOR_TOOL": "1",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": CLAUDE_CODE_AUTO_COMPACT_WINDOW,
"DISABLE_AUTOUPDATER": "1",
"DISABLE_FEEDBACK_COMMAND": "1",
diff --git a/tests/cli/test_claude_launcher.py b/tests/cli/test_claude_launcher.py
index 6956b719..5f5424c6 100644
--- a/tests/cli/test_claude_launcher.py
+++ b/tests/cli/test_claude_launcher.py
@@ -27,3 +27,4 @@ def test_claude_owns_permission_selection(
assert env["ANTHROPIC_BASE_URL"] == "http://127.0.0.1:8182"
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"
diff --git a/tests/cli/test_managed_claude.py b/tests/cli/test_managed_claude.py
index 3041dcee..1fca3dbd 100644
--- a/tests/cli/test_managed_claude.py
+++ b/tests/cli/test_managed_claude.py
@@ -48,7 +48,11 @@ def test_managed_claude_builds_new_task_command_and_env() -> None:
invocation = build_managed_claude_invocation(
config=_config(allowed_dirs=[os.path.normpath("/tmp/extra")]),
request=ManagedClaudeTaskRequest(prompt="hello"),
- base_env={"PATH": "keep", "ANTHROPIC_API_KEY": "official"},
+ base_env={
+ "PATH": "keep",
+ "ANTHROPIC_API_KEY": "official",
+ "CLAUDE_CODE_DISABLE_ADVISOR_TOOL": "0",
+ },
)
assert invocation.argv[:4] == (
@@ -67,6 +71,7 @@ def test_managed_claude_builds_new_task_command_and_env() -> None:
assert invocation.env["ANTHROPIC_BASE_URL"] == "http://localhost:8082"
assert invocation.env["ANTHROPIC_AUTH_TOKEN"] == "proxy-token"
assert invocation.env["CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY"] == "1"
+ assert invocation.env["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"] == "1"
assert invocation.env["CLAUDE_CODE_AUTO_COMPACT_WINDOW"] == "190000"
assert invocation.env["DISABLE_AUTOUPDATER"] == "1"
assert invocation.env["DISABLE_FEEDBACK_COMMAND"] == "1"
diff --git a/tests/harnesses/test_claude_integration.py b/tests/harnesses/test_claude_integration.py
index d8b3338c..bfb9439e 100644
--- a/tests/harnesses/test_claude_integration.py
+++ b/tests/harnesses/test_claude_integration.py
@@ -142,6 +142,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
"claudeCode.environmentVariables": [
{"name": "KEEP", "value": "yes"},
{"name": "ANTHROPIC_AUTH_TOKEN", "value": "old", "extra": "keep"},
+ {"name": "CLAUDE_CODE_DISABLE_ADVISOR_TOOL", "value": "0"},
],
}""",
encoding="utf-8",
@@ -155,6 +156,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
"ANTHROPIC_BASE_URL",
"ANTHROPIC_AUTH_TOKEN",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY",
+ "CLAUDE_CODE_DISABLE_ADVISOR_TOOL",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW",
"DISABLE_AUTOUPDATER",
"DISABLE_FEEDBACK_COMMAND",
@@ -166,6 +168,7 @@ def test_connect_merges_jsonc_and_disconnect_preserves_unrelated_values(tmp_path
"extra": "keep",
}
assert entries["CLAUDE_CODE_AUTO_COMPACT_WINDOW"]["value"] == "190000"
+ assert entries["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"]["value"] == "1"
assert "//" not in path.read_text().replace("http://", "")
assert operate(path, False) == {"connected": False}
assert json.loads(path.read_text()) == {
@@ -250,6 +253,11 @@ def test_manual_setup_only_requires_connection_fields(tmp_path, url):
)
)
assert operate(path) == {"connected": True}
+ assert operate(path, True) == {"connected": True}
+ entries = {
+ entry["name"]: entry["value"] for entry in json.loads(path.read_text())[ENV]
+ }
+ assert entries["CLAUDE_CODE_DISABLE_ADVISOR_TOOL"] == "1"
@pytest.mark.parametrize(
diff --git a/uv.lock b/uv.lock
index 76b39c11..ac56ee3a 100644
--- a/uv.lock
+++ b/uv.lock
@@ -599,7 +599,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "6.2.42"
+version = "6.2.43"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },