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 Pi routing for nested FCC model IDs (#1090)

Ali Khokhardb3831d9e705
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index c540b872..fd228e4c 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -820,7 +820,8 @@ instead of stopping at its login gate.
is its bundled Pi adapter:
- Session commands load the extension from its absolute installed path and
- scope Pi to the ephemeral `free-claude-code/*` provider.
+ scope Pi to the ephemeral `free-claude-code/**` provider, whose model IDs
+ retain FCC's nested `provider/model` routing reference.
- The extension fetches FCC's `/v1/models` catalog before registration, projects
only routable provider-model IDs, and registers an `anthropic-messages`
provider targeting the local proxy. Catalog failure is fail-closed so Pi never
diff --git a/pyproject.toml b/pyproject.toml
index 6af07403..4eadc121 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "3.6.0"
+version = "4.0.0"
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/cli/launchers/pi.py b/src/free_claude_code/cli/launchers/pi.py
index 3596ac78..59e2553c 100644
--- a/src/free_claude_code/cli/launchers/pi.py
+++ b/src/free_claude_code/cli/launchers/pi.py
@@ -17,7 +17,7 @@ _BASE_URL_ENV = "FCC_PI_BASE_URL"
_BINARY_NAME = "pi"
_DISPLAY_NAME = "Pi"
_HELP_TIMEOUT_SECONDS = 5.0
-_MODEL_SCOPE = "free-claude-code/*"
+_MODEL_SCOPE = "free-claude-code/**"
_REQUIRED_HELP_MARKERS = ("--extension", "--models")
_PASSTHROUGH_COMMANDS = frozenset(
{"config", "install", "list", "remove", "uninstall", "update"}
diff --git a/tests/cli/test_entrypoints.py b/tests/cli/test_entrypoints.py
index 8789e35e..2de74b29 100644
--- a/tests/cli/test_entrypoints.py
+++ b/tests/cli/test_entrypoints.py
@@ -704,7 +704,7 @@ def test_pi_launcher_builds_scoped_session_command_and_proxy_env(
"-e",
str(extension),
"--models",
- "free-claude-code/*",
+ "free-claude-code/**",
"--print",
"hello",
]
@@ -771,7 +771,7 @@ def test_launch_pi_registers_bundled_extension_for_sessions(
"-e",
str(extension),
"--models",
- "free-claude-code/*",
+ "free-claude-code/**",
"--print",
"hello",
]
diff --git a/uv.lock b/uv.lock
index abf8d093..9586f2c3 100644
--- a/uv.lock
+++ b/uv.lock
@@ -561,7 +561,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "3.6.0"
+version = "4.0.0"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },