---
title: "Switching from Replit to Codex: locate the test runner · Proxy Mail QA"
description: "Codex may run in a terminal, an IDE or the cloud. Decide where your exported Replit app and its browser tests run, then compare sign-up emails."
url: https://proxymail.qa/switching/replit-to-codex
---

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

# Switching from Replit to Codex: locate the test runner

Replit keeps the editor and the running app close together; Codex may work in your terminal, IDE or the cloud. Settle where the app and its tests run before you read a failed connection as broken sign-in.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it for fresh test accounts, real verification and reset mail, and repeatable evidence. It does not transfer code, users or passwords, complete a migration or certify security.

## Source portability is not identity portability

Use Replit’s source ZIP or GitHub sync for code. Reconfigure secrets, database access and deployment separately. Preserve the existing provider initially, with an inventory of variable names, sending service and callback destinations.

Check the provider rather than assuming every Replit app has the same auth:

- Replit Auth identifies people through their Replit accounts. There are no app-owned passwords to export. Replit’s docs describe Replit Auth for apps running on Replit, so check before hosting elsewhere.
- Replit-managed Clerk is automatically provisioned and managed by Replit. Replit’s Clerk Auth page doesn’t say whether that Clerk app can serve a host outside Replit, or whether its users and passwords can move. Switching to your own Clerk app starts with deleting the managed one, so settle what happens to existing users first. Dashboard access requires Pro or Enterprise, and Clerk development and production are separate.
- Custom external auth, including Firebase, Supabase or email auth, may stay in place. Correct environment and callback configuration comes before replacing it.

Test the app you built, not registration on Replit itself. Buying a Codex plan changes neither backend ownership nor export rights.

## Make the execution location explicit

Give Codex root `AGENTS.md` instructions covering the provider, approved hosts, verification policy and test commands. Check for a nearer `AGENTS.override.md` that changes those instructions. Ask for an explanation before edits.

Connect Proxy Mail QA:

Terminal

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

```

Use the login command if authentication is still needed; reuse an existing entry. Choose the baseline’s project. CLI and IDE share configuration; the IDE extension does not support plugins, and this setup needs none.

A cloud runner’s localhost is not your laptop. Run the app where the runner can reach it, or use an authorised staging URL. Do not weaken the sandbox as a default fix. Unattended CI needs a scoped secret, not interactive OAuth. The MCP server supplies mail tools, not browser access.

## Run the same assertions before and after

Record the old and new revision, host and provider environment. Use fresh browser sessions and the [shared retest method](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up).

- Generate an inbox and values with `create_address` (`password: true` where needed) or `form_values`. A browser or runner must submit the app form. OAuth cannot reveal old saved passwords.
- Check policy-required unverified access, complete verification by code or link, reload, sign out and back in.
- If supported, reset the password: new works, old fails, used reset fails in a clean session.
- Test replacement separately with unused A followed by B. Check A under policy and prove B works; use an independent equivalent case if consuming A could invalidate B.
- Exercise supported invites; mark absent flows N/A. Wait to test expiry or mark enforcement skipped.
- For a backend change, test synthetic existing-user fixtures, ID continuity, roles and bounded cross-account access. Fresh signup is not migration proof.
- Record browser assertions with `add_run_note`, explicitly setting `failed: true` for failures. Record skipped or blocked checks separately, never as passes, then call `finish_run`. Preserve the same `run_id` on every supported call.

## A prompt that separates access from failure

Copy the comparison checklist above together with this prompt.

Prompt

```text
If the supplied comparison checklist is missing, ask me for it before proceeding.
Map the Replit export’s runtime and auth dependencies without edits.
State where the app and browser runner will execute. Do not loosen the
sandbox or replace auth to bypass an unavailable environment. Baseline
and replay the supplied comparison checklist using start_run name
replit-codex-auth, passing run_id on every supported call. Capture since
before EACH submission; use mark_submitted if available, then wait_for_code
or wait_for_link with since. Record browser outcomes through add_run_note,
explicitly setting failed: true for failed browser assertions. Record skipped
or blocked checks separately, never as passes, then finish_run.
If execution is unavailable, write portable tests and label them unrun.

```

## Report evidence, not a blanket pass

Use `check_email` for mail authentication, hosts and expiry wording. Approve legitimate provider action hosts and inspect the final app destination. This proves neither server expiry, security nor inbox placement. Filter `count_emails` by `type`, `subtype` and/or `category` over a bounded window; welcome mail is not duplicate verification.

MCP exposes no email bodies and opens no links. `check_delivery` supplies receipt evidence and likely causes, not provider logs; sandbox sending restrictions may explain silence.

Use only authorised local, development or staging apps, never production or real accounts. Never disable verification or reset the owner’s password. Exclude SMS, social login, KYC and payments. Keep tests in the repository and `PROXYMAIL_QA_API_KEY` in CI secrets. Delete exact app test users separately from inboxes.

## Sources

Checked 4 Dec 2026; no migration test is claimed.

- [Replit files](https://docs.replit.com/help/projects-and-files), [Replit Auth](https://docs.replit.com/features/auth-and-identity/authentication) and [managed Clerk](https://docs.replit.com/features/auth-and-identity/clerk-auth)
- [Replit testing](https://proxymail.qa/built-with/replit) and [Codex setup](https://proxymail.qa/built-with/codex)
- [MCP](https://proxymail.qa/docs/mcp) and [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-replit-to-codex)

## Related guides

- [Replit to Cursor](https://proxymail.qa/switching/replit-to-cursor): Treat the code, the database, the sign-in and the hosting as separate moves.
- [Replit to Claude Code](https://proxymail.qa/switching/replit-to-claude-code): Recover what made the app run on Replit before Claude Code starts fixing logins.
- [Replit to Qoder](https://proxymail.qa/switching/replit-to-qoder): Find out who runs the app’s sign-in before Qoder changes it.
- [Replit to Antigravity](https://proxymail.qa/switching/replit-to-antigravity): Keep the Replit app’s sign-in provider unless you have a reviewed reason to change it.

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

Replit is a trademark of Replit, Inc. Clerk is a trademark of Clerk, Inc. 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.
