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

Add Codex integration preview card (#1759)

Ali Khokhard7582de664c8
diff --git a/e2e/test_admin_integrations.py b/e2e/test_admin_integrations.py
index ec7b391b..9a910bb9 100644
--- a/e2e/test_admin_integrations.py
+++ b/e2e/test_admin_integrations.py
@@ -6,6 +6,52 @@ from playwright.sync_api import expect
from free_claude_code.cli import vscode
[email protected]("width", [1280, 390])
+def test_codex_preview_modal_is_noop_and_dismissible(
+ page, admin_base_url, tmp_path, width
+):
+ page.set_viewport_size({"width": width, "height": 900})
+ page.goto(f"{admin_base_url}/admin/integrations")
+ expect(page.locator("#openClaudeIntegration")).to_be_enabled()
+ expect(page.locator("#messageArea")).to_have_text("")
+ cards = page.locator("#view-integrations > article")
+ expect(cards).to_have_count(2)
+ expect(cards.nth(1)).to_contain_text(
+ "Use FCC's models in the Codex CLI, VS Code extension, and desktop app."
+ )
+ requests = []
+ page.on("request", lambda request: requests.append(request.url))
+ opener = page.locator("#openCodexIntegration")
+ dialog = page.get_by_role("dialog", name="Codex", exact=True)
+ opener.click()
+ expect(dialog).to_be_visible()
+ expect(page.locator("#claudeIntegrationDialog")).not_to_be_visible()
+ expect(dialog.get_by_role("button", name="Close", exact=True)).to_be_focused()
+ expect(dialog).to_contain_text(
+ "Will configure Codex to use FCC's models through its shared config.toml."
+ )
+ assert dialog.evaluate("element => element.scrollWidth <= element.clientWidth")
+ action = dialog.get_by_role("button", name="Connect", exact=True)
+ for _ in range(3):
+ action.click()
+ expect(action).to_be_enabled()
+ expect(dialog).to_be_visible()
+ page.locator("#codexIntegrationDescription").click()
+ expect(dialog).to_be_visible()
+ dialog.get_by_role("button", name="Close", exact=True).click()
+ expect(dialog).not_to_be_visible()
+ expect(opener).to_be_focused()
+ opener.click()
+ page.keyboard.press("Escape")
+ expect(dialog).not_to_be_visible()
+ opener.click()
+ page.mouse.click(1, 1)
+ expect(dialog).not_to_be_visible()
+ assert requests == []
+ assert not (tmp_path / "vscode" / "settings.json").exists()
+ assert not (tmp_path / ".claude.json").exists()
+
+
@pytest.mark.parametrize("width", [1280, 390])
def test_modal_shows_files_for_the_selected_action(
page, admin_base_url, tmp_path, width
diff --git a/pyproject.toml b/pyproject.toml
index 0dc832a0..1dc5828d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "free-claude-code"
-version = "6.2.7"
+version = "6.2.8"
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/admin.js b/src/free_claude_code/api/admin_static/admin.js
index c903c902..4589e805 100644
--- a/src/free_claude_code/api/admin_static/admin.js
+++ b/src/free_claude_code/api/admin_static/admin.js
@@ -1341,6 +1341,17 @@ claudeIntegrationDialog.addEventListener("click", (event) => {
}
});
+const codexIntegrationDialog = byId("codexIntegrationDialog");
+byId("openCodexIntegration").addEventListener("click", () => codexIntegrationDialog.showModal());
+byId("closeCodexIntegration").addEventListener("click", () => codexIntegrationDialog.close());
+codexIntegrationDialog.addEventListener("click", (event) => {
+ if (event.target !== codexIntegrationDialog) return;
+ const bounds = codexIntegrationDialog.getBoundingClientRect();
+ if (event.clientX < bounds.left || event.clientX > bounds.right || event.clientY < bounds.top || event.clientY > bounds.bottom) {
+ codexIntegrationDialog.close();
+ }
+});
+
load().then(showRestartNotice).catch((error) => {
showMessage(error.message, "error");
});
diff --git a/src/free_claude_code/api/admin_static/index.html b/src/free_claude_code/api/admin_static/index.html
index 137239bb..37f77bcd 100644
--- a/src/free_claude_code/api/admin_static/index.html
+++ b/src/free_claude_code/api/admin_static/index.html
@@ -107,6 +107,23 @@
<button id="confirmClaudeIntegration" class="primary-button" type="button">Connect</button>
<p id="claudeIntegrationDialogMessage" class="message-area error" role="alert" hidden></p>
</dialog>
+ <article class="provider-strip integration-card">
+ <div class="section-heading">
+ <div>
+ <h3>Codex</h3>
+ <p>Use FCC's models in the Codex CLI, VS Code extension, and desktop app.</p>
+ </div>
+ </div>
+ <button id="openCodexIntegration" class="primary-button" type="button">Connect</button>
+ </article>
+ <dialog id="codexIntegrationDialog" class="integration-dialog" aria-labelledby="codexIntegrationTitle" aria-describedby="codexIntegrationDescription">
+ <div class="section-heading">
+ <h3 id="codexIntegrationTitle">Codex</h3>
+ <button id="closeCodexIntegration" class="ghost-button" type="button" aria-label="Close" autofocus>×</button>
+ </div>
+ <p id="codexIntegrationDescription">Will configure Codex to use FCC's models through its shared config.toml.</p>
+ <button class="primary-button" type="button">Connect</button>
+ </dialog>
</section>
<section id="view-code" class="admin-view" data-view="code" hidden>
diff --git a/uv.lock b/uv.lock
index 412eed3c..b1ede5b2 100644
--- a/uv.lock
+++ b/uv.lock
@@ -598,7 +598,7 @@ wheels = [
[[package]]
name = "free-claude-code"
-version = "6.2.7"
+version = "6.2.8"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },