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

Show running version in Admin sidebar (#1617)

Ali Khokhar32491e783d7c
diff --git a/e2e/test_admin_assets.py b/e2e/test_admin_assets.py
index be56b72b..cc83ebe5 100644
--- a/e2e/test_admin_assets.py
+++ b/e2e/test_admin_assets.py
@@ -25,6 +25,9 @@ def test_admin_loads_current_release_assets_before_rendering_dynamic_content(
page.goto(f"{admin_base_url}/admin")
expect(page.locator('[data-provider="nvidia_nim"]')).to_be_visible()
+ expect(page.locator(".brand p")).to_have_text(
+ f"Server Control · v{package_version()}"
+ )
versioned_root = f"/admin/assets/{package_version()}"
assert f"{versioned_root}/admin.css" in requested_paths
diff --git a/pyproject.toml b/pyproject.toml
index 0bab92f2..2293a4bd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "5.17.4"
+version = "5.17.5"
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/api/admin_static/index.html b/src/free_claude_code/api/admin_static/index.html
index 913bb671..649c2257 100644
--- a/src/free_claude_code/api/admin_static/index.html
+++ b/src/free_claude_code/api/admin_static/index.html
@@ -14,7 +14,7 @@
<div class="brand-mark">FC</div>
<div>
<h1>Free Claude Code</h1>
- <p>Server Control</p>
+ <p>Server Control · v__FCC_VERSION__</p>
</div>
</div>
<nav id="sectionNav" class="section-nav" aria-label="Admin views"></nav>
diff --git a/tests/api/test_admin.py b/tests/api/test_admin.py
index c7325108..38aa552a 100644
--- a/tests/api/test_admin.py
+++ b/tests/api/test_admin.py
@@ -90,7 +90,7 @@ def test_admin_page_is_loopback_only(monkeypatch, tmp_path):
assert remote_client.get("/admin").status_code == 403
-def test_admin_page_uses_installed_version_for_asset_urls(monkeypatch, tmp_path):
+def test_admin_page_uses_installed_version(monkeypatch, tmp_path):
_set_home(monkeypatch, tmp_path)
monkeypatch.setattr(
"free_claude_code.api.admin_routes.package_version",
@@ -100,6 +100,7 @@ def test_admin_page_uses_installed_version_for_asset_urls(monkeypatch, tmp_path)
response = _local_client(create_test_app()).get("/admin")
assert response.status_code == 200
+ assert "<p>Server Control · v9.8.7</p>" in response.text
assert 'href="/admin/assets/9.8.7/admin.css"' in response.text
assert 'src="/admin/assets/9.8.7/admin.js"' in response.text
assert 'href="/admin/assets/admin.css"' not in response.text
diff --git a/uv.lock b/uv.lock
index b26f9c60..8f1aa777 100644
--- a/uv.lock
+++ b/uv.lock
@@ -598,7 +598,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "5.17.4"
+version = "5.17.5"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },