---
title: "From Bubble to Codex: make the rebuild testable · Proxy Mail QA"
description: "Codex writes a new app, not a converted Bubble one. Start with a test contract for sign-up, login and reset, and a runner that can reach staging."
url: https://proxymail.qa/switching/bubble-to-codex
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# From Bubble to Codex: make the rebuild testable

Codex writes a new application rather than converting your Bubble one. Make the first deliverable a set of tests for sign-up, login and reset, so you can tell whether the rebuild behaves the same.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it for fresh test accounts, real signup and reset emails, and repeatable evidence. It is not a code, user or password migration service, or a security audit.

## Records are not an executable application

Bubble doesn’t export ready-to-run code. Codex can read the app through Bubble’s MCP server (beta) and recreate it, though not always exactly; that connection can also change your Bubble app, so ask it only to read. Your design and data belong to you; the platform code belongs to Bubble. Leaving means rebuilding application logic. CSV/API exports do not carry workflows or the auth runtime. Enterprise dedicated hosting remains Bubble-managed rather than ordinary self-hosting. Bubble doesn’t export passwords: people set a new one, or keep signing in through your Bubble app as a login provider while you move.

Explicitly choose and approve the new app’s runtime, hosting and authentication provider first. Codex itself supplies none of those.

For the test contract, record Bubble’s built-in signup, login and reset, then inspect configured confirmation and welcome workflows. Verification may not be part of your policy. Map each workflow condition to server enforcement in the replacement. Review privacy rules and role conditions using made-up fixtures, not customer exports. Separately model synthetic existing users, IDs and roles: fresh signup is not proof of a real identity migration.

## Make the execution environment explicit

Keep the contract and commands in root `AGENTS.md`. Codex reads instructions from the repository root towards its working directory; check for overriding instructions before accepting a task. Include approved action hosts and environment-variable names, never secret values.

Connect the inbox from Codex CLI:

Terminal

```sh
codex mcp add proxymail-qa --url https://api.proxymail.qa/mcp
codex mcp login proxymail-qa

```

The login command is needed if authentication did not already open. Choose the same Proxy Mail QA project for both runs. CLI and IDE share configuration; the IDE extension does not support plugins, and this connection needs none. Reuse an existing server entry.

A cloud runner’s localhost is not your laptop’s localhost. Make the rebuilt app reachable from the runner. Unattended tasks need a scoped secret key rather than interactive OAuth. The MCP server provides no browser; use your own browser/test runner, or write tests for a person or CI when execution is unavailable.

## Establish a baseline, then replay it

Use only authorised development or staging of your own app, never Bubble’s platform signup, production or real user/customer data. Baseline the Bubble email flow first; if no safe environment exists, mark it blocked instead of using production.

1. Call `start_run` with a stable name and record environment/revision. Carry `run_id` through all supported calls. `create_address` with `password: true`, or `form_values`, provides made-up details, not an app user. Your browser fills and submits. OAuth cannot read old saved passwords.
2. Capture `since` immediately before every submission, using `mark_submitted` if available. Give its timestamp to `wait_for_code` or `wait_for_link`, with a new marker for each resend/reset.
3. Register fresh; check the unverified gate if policy requires one. Complete configured verification, reload, sign out and sign in. Repeat with a clean account/session on the rebuild.
4. Reset where supported: new password works, old fails, used reset link fails. Separately leave A unused, request replacement B, check A against policy and prove B works. If A may stay valid, test B with an independent equivalent fixture to avoid consumption affecting it. Wait through actual expiry or mark enforcement skipped.
5. Run `check_email` for SPF, DKIM, DMARC, link hosts and expiry wording. Inspect the approved outer provider host and final app destination. Use bounded `count_emails` queries with `type`, `subtype` and/or `category`; welcome mail is not duplicate verification.
6. Record browser assertions using `add_run_note`, with `failed: true` for failures; note skips separately. Close with `finish_run` and compare the same-named runs.

Copy the comparison checklist above together with this prompt, and replace the bracketed target placeholders with your approved settings.

Prompt

```text
If the supplied comparison checklist is missing, ask me for it before proceeding.
Pass run_id to every supported call. Record browser assertions with add_run_note,
setting failed:true on failures; record skipped or blocked checks separately,
never as passes. Finish with finish_run.
Build a test contract from our observed Bubble workflows and privacy rules.
Use [approved auth provider], [runtime] and [host]. First prove the runner
can reach [authorised staging URL]. Propose one implementation slice and
its tests for review. Execute the supplied comparison checklist or label tests unrun.
Never disable confirmation or reset the owner's password.

```

## Limits and repeatability

MCP never exposes email bodies or prefetches links. Email checks prove neither server enforcement nor inbox placement or whole-app security. SMS, social login, KYC and payments require separate coverage. Keep E2E tests in the repository and CI; store `PROXYMAIL_QA_API_KEY` as a secret. Delete app test users separately from their inboxes.

Use the [shared retest guide](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up) for later changes.

## Sources

Checked 4 Dec 2026; this is guidance, not a personally tested migration.

- [Bubble ownership and export boundary](https://manual.bubble.io/account-and-marketplace/application-and-data-ownership), [exporting your Bubble app](https://manual.bubble.io/account-and-marketplace/application-and-data-ownership/exporting-your-bubble-app) and [Bubble’s MCP server](https://manual.bubble.io/help-guides/ai/bubble-mcp)
- [Bubble guide](https://proxymail.qa/built-with/bubble), [Codex setup](https://proxymail.qa/built-with/codex)
- [MCP](https://proxymail.qa/docs/mcp), [flow checks](https://proxymail.qa/docs/flow-checks)

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-bubble-to-codex)

## Related guides

- [Bubble to Cursor](https://proxymail.qa/switching/bubble-to-cursor): Map Bubble’s sign-up workflows to code you can review in Cursor.
- [Bubble to Claude Code](https://proxymail.qa/switching/bubble-to-claude-code): Turn Bubble’s sign-up rules into a specification Claude Code can build from.
- [Bubble to Qoder](https://proxymail.qa/switching/bubble-to-qoder): List Bubble’s privacy rules and conditions so Qoder rebuilds them too.
- [Bubble to Antigravity](https://proxymail.qa/switching/bubble-to-antigravity): Rebuild the workflows behind your Bubble screens, then compare both versions.

[See every email testing problem we solve](https://proxymail.qa/solve)

Bubble is a trademark of its owner. Codex is a product of OpenAI. OpenAI, Codex, ChatGPT and the OpenAI logo are OpenAI’s trademarks. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
