---
title: "Replit to Claude Code: carry the running environment · Proxy Mail QA"
description: "Claude Code gets a Replit app’s source, not its secrets, database or hosting. Record what made it run, then retest sign-up, verification and reset."
url: https://proxymail.qa/switching/replit-to-claude-code
---

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

# From Replit to Claude Code: carry the running environment

Claude Code can work on exported source without inheriting the Replit environment that made it run. Recover that environment first, rather than asking the agent to rewrite every failing login.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it narrowly for fresh test accounts, real account emails and evidence of completed app actions. It is not a migration engine, a user-password transfer service or a security audit.

## Write the handoff before running commands

Replit provides source ZIP downloads and GitHub sync. Copying source does not configure a replacement database, secrets or deployment. Record start commands, variable names, sender ownership, callback hosts and test fixtures without putting secret values in instructions.

Identify which auth system the app actually uses. Replit Auth uses a Replit account as identity; 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 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; development and production Clerk instances are separate.

A custom external provider, such as Firebase or Supabase, may remain in place. Check its environment variables and callbacks before proposing replacement. Claude Code access grants no additional backend rights. Do not register disposable platform accounts on Replit to test your app.

## Give Claude Code the right instructions and tools

Record the contract in `CLAUDE.md` or `.claude/rules/*.md`. Include shared root instructions with `@AGENTS.md` in `CLAUDE.md` when appropriate. Preserve existing files and check `/memory` to confirm what loaded.

Connect mail with:

Terminal

```sh
claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp

```

Use **/mcp → proxymail-qa → Authenticate**, then choose the same Proxy Mail QA project as the baseline. Authenticate an existing entry rather than duplicating it.

The mail connection does not supply a browser. Claude Code needs its own browser access. If its mode cannot reach staging, have it write Playwright tests for a person or CI, and report them as unexecuted until run. OAuth cannot reveal old saved passwords; fresh test accounts avoid that dependency.

## Preserve a baseline before changing the runtime

Follow the [general handoff guide](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up). Use authorised local, development or staging environments and record both revisions and settings that changed.

1. Create fresh values with `create_address` (`password: true` for password forms) or `form_values`. Your browser submits them and creates the app account.
2. Check any required unverified restriction, complete the relevant verification code or link, reload, then sign out and in.
3. For supported password resets, check new-password success, old-password rejection and refusal of a consumed reset in a clean session.
4. Separately obtain unused A, then B. Check A against the replacement policy and demonstrate B works. Use an independent equivalent case for B if consuming A could affect it.
5. Exercise invitations if offered. Test actual expiry by waiting, or mark it skipped. Unsupported flows are N/A, not passes.
6. If auth or the backend changes, add synthetic existing-user fixtures with ID, role and bounded cross-account checks. A fresh registration cannot establish existing-user continuity.
7. 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 for the first terminal session

Copy the comparison checklist above together with this prompt.

Prompt

```text
If the supplied comparison checklist is missing, ask me for it before proceeding.
Explain which Replit runtime dependencies are missing from this source
handoff. Do not replace auth to make the local build pass. Propose a
reviewable environment plan, then run the supplied comparison checklist.
Start runs as replit-claude-auth; carry run_id on every supported call.
Capture since immediately BEFORE each submit or resend; use
mark_submitted when available. Wait for the relevant code or link with
wait_for_code or wait_for_link and since. Use your own browser, or write
tests for our runner. Add browser results with add_run_note, explicitly setting
failed: true for failed browser assertions. Record skipped or blocked checks
separately, never as passes, then finish_run.
Clearly distinguish a blocked environment from a failed app assertion.

```

## Separate the mail result from the app result

`check_email` covers mail authentication, link hosts and stated expiry. Check the legitimate provider action host and final app destination. It does not prove server-enforced expiry, inbox placement or security. Filter `count_emails` by `type`, `subtype` and/or `category` in a bounded window; a welcome message is not duplicate verification.

MCP returns no email bodies and opens no links. A sender sandbox can prevent delivery; `check_delivery` reports receipt evidence and likely causes, not provider logs.

Never use production or real accounts, disable verification or reset the owner’s password. SMS, social sign-in, KYC and payments need separate testing. Keep portable repository tests and secret `PROXYMAIL_QA_API_KEY` storage in CI. Delete exact app test users separately from their inboxes.

## Sources

Guidance checked 4 Dec 2026; this is not a tested migration report.

- [Replit source 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 checks](https://proxymail.qa/built-with/replit) and [Claude Code setup](https://proxymail.qa/built-with/claude-code)
- [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-claude-code)

## 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 Codex](https://proxymail.qa/switching/replit-to-codex): Decide where the app and its tests run before you call a failed connection an auth bug.
- [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. Claude Code is a product of Anthropic. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
