Skip to content
← Back to YouBlog

Published article

Claude Code in Replit: Build and Deploy Apps

Drafted with AI from the video "This Makes Deploying Claude Code Apps Too Easy", then reviewed and published by Gustavo Miranda.

Claude Code in Replit is useful precisely where a terminal agent usually is not: a browser workspace that already owns the database, storage, authentication and a publish button. The publishing step is the easy part. Credential handling is where the walkthrough gets uncomfortable, because the first build asked end users to type a Supabase key into a form.

Claude Code in Replit: what you actually get

Claude Code in Replit means running Anthropic terminal coding agent inside a Replit project, then publishing that project from Replit's own publish button, which provisions the app and returns a public URL. The two tools keep separate jobs: Claude Code edits files, and Replit hosts, stores data and handles sign-in.

Replit is a browser IDE and agent that builds and hosts apps end to end. Its Developer Frameworks area holds templates you clone into a new project; the walkthrough by Bart Slodyczka, published on 4 February 2026, starts from a template, installs the agent inside it, and publishes from the same tab. Claude Code is Anthropic's agentic coding tool that runs in the terminal.

Three Replit features carry the backend without extra services: a built-in database, app storage for files such as images and audio, and native authentication supporting email and password plus Google, GitHub, X and Apple logins. In the video, the Replit agent added that authentication while the Claude agent handled the interface.

Two Replit agents can work on the same project. The Replit agent can change the database, add authentication or edit files, and the Claude agent builds the app itself. That division is a choice, not a requirement, and it depends on installing the CLI first.

Two routes to install Claude Code in Replit

You can reach the same setup from a new app or an existing one, and neither route installs Claude Code by default. Replit's templates ship without the CLI, so every project needs its own install, login and configuration before the agent can work.

Route 1: start with the Replit agent

Open the kickoff panel, type the app you want, and let the Replit agent produce a first draft. Then open that recent app and install Claude Code inside it to finish the build. This route suits people who want something running before they touch a terminal.

Route 2: start from Developer Frameworks

Open Developer Frameworks, OpenAI template, and click Remix to clone it into a new project. The walkthrough remixes an Express-style template named dashboard and gets a page reading "hello world", which confirms the template installed cleanly. Express is the Node.js web framework that supplies routing, middleware and server-rendered views, and the template adds a backend and login.

The template you pick shapes the app. A Node.js template suits automations because automation tools such as n8n run on top of Node.js; the Express template suits portals and dashboards with buttons, data and users.

The three-step setup inside a Replit project

Installing Claude Code in Replit takes three steps: create a separate secrets entry for the agent, run its install command in a Shell window, and authenticate through the Anthropic console. Each step lives inside the project, not the account.

Step 1: add secrets

Open the secrets manager, add the entries Claude Code expects, and save. This creates an isolated store for the agent's own variables and any API keys you share with it, so they stay apart from the app's own environment.

Step 2: install in the Shell

OpenAI new Shell window and run the install command. The CLI lands in that project's environment. A new project means running the whole sequence again, because the install does not follow you across apps.

Step 3: authenticate

Run the login command. The first browser page it opens is broken in this setup because it redirects to localhost; copy the printed URL into a browser tab instead, authorize, and paste the returned key back into the Shell. Choose the Anthropic console account and an API key.

Before prompting, add the agent's secret directory to .gitignore. The walkthrough hands that edit to the Replit agent with a short instruction and fast mode, then confirms the entry sits at the bottom of the file. Everything listed there stays out of a public repository.

StepWhereWhat it producesRepeats per project
Secrets entrySecrets managerIsolated store for agent keysYes
InstallShellCLI in the project environmentYes
LoginBrowser plus ShellAuthenticated sessionYes

How the agents build a dashboard together

A short prompt is enough to build a working dashboard when the agent can see example data. In the walkthrough, two rows copied from a Supabase table as SQL were pasted into the prompt, and the agent produced a sales portal with filters on the first pass. Supabase an open-source Postgres backend with authentication, storage and edge functions.

Copying the rows as SQL was deliberate. The agent talks to Postgres in SQL, so sample rows in that form describe both the schema and the values it should expect. The result connected to the external table and rendered the orders with working filters.

Two permission modes control how much the agent asks. Accept-edits mode lets it change files without stopping for confirmation; plan mode makes it propose steps first. Press Shift and Tab to switch, and the walkthrough leaves accept-edits on to avoid repeated prompts.

The Files tab shows what changed. A created file is marked as added and an existing file is marked as modified, so you can review the diff before trusting the build. Style was weak in the walkthrough, which is a normal first-pass outcome the agent can fix on request.

The security flaw to fix before you publish

The first publishable version of the demo shipped a real flaw: the dashboard asked visitors to type a Supabase URL and key into a form on the live site. Anyone with the public link saw that prompt, and any key entered in a browser is exposed to the visitor and to the network.

Move credentials to server-side secrets

Stop collecting the values in the frontend. Store the Supabase URL and key as Replit secrets and have the server read them at runtime. The presenter recommends Replit secrets over a plain environment file, and either is safer than a form.

Keep the agent's store out of the public build

The secret directory added at install time belongs in .gitignore too. If the agent writes a key you shared with it into that folder, the ignore rule keeps it out of any push to a public repository.

Choose one source of truth

Two agents editing one project can drift. Decide whether the Claude agent or the Replit agent owns credentials and environment variables, and give the other clear instructions. The agent is capable of fixing the key exposure only if you tell it to.

A published URL is a public URL. A dashboard over sales data needs authentication before launch, and Replit's native auth covers that case without a separate provider.

Publishing, republishing and shutting down

Publish moves the build through provisioning, a security scan, a build step and URL assignment, and the walkthrough finished in about a minute. The result is a public address that opens the deployed app, with the settings saved so you can repeat the process later.

Changes do not go live by themselves. Ask the agent for revisions, then press republish to push the new build to the same address. Style fixes, added secrets and auth changes all need that second step before visitors see them.

Shutdown is reversible in practice. Open the publish panel, choose manage, and shut the app down; the preview keeps working while the public URL returns a not-found error. Sign-in through Replit's native auth still worked on the deployed URL in the walkthrough.

Where the workflow needs care

Treat this setup as a fast path to a working prototype, not a finished deployment pipeline. Several limits in the walkthrough come from the tools themselves and will return in your own build.

  • The install and login are per project, so every new app repeats the three steps.
  • The CLI is not part of the template, so a fresh Remix or agent draft has no agent until you add one.
  • Published apps still need server-side secrets, which the agent will not add unless asked.
  • The demo used placeholder sales data; real company records raise the stakes on the auth and secrets steps.
  • The first broken login page is a known rough edge, and copying the URL works around it.

None of this blocks the workflow. It does mean the security review is yours to do, because the agent builds what you describe and the description usually leaves credential handling out.

FAQ

  • Does Replit include Claude Code by default?

No. Replit templates and agent drafts do not ship the CLI. You add it inside each project with a secrets entry, a Shell install command and an Anthropic console login.

  • Why does the Claude Code login page fail in Replit?

The first page it opens redirects to localhost, which does not exist inside the Replit environment. Copy the printed URL into a browser tab, authorize there, and paste the returned key into the Shell.

  • Can Claude Code and the Replit agent work on one app?

Yes. The walkthrough used Claude Code for the dashboard interface and the Replit agent for authentication and the gitignore edit. Both agents can read and change the same project files, so agree on who owns what.

  • How long does publishing take?

Replit runs provisioning, a security scan and a build before assigning a URL. In the walkthrough that took about a minute, though build time depends on the app.

  • Does shutting down delete the app?

No. Shutdown takes the public URL offline and returns a not-found error to visitors, while the project and its preview keep working. Republishing brings the site back.

  • Is this workflow suitable for private company data?

Only after you add authentication and store database keys as server-side secrets. A dashboard that asks visitors for a key is open to anyone with the link, and Replit's native auth is the piece that closes it.

  • What should I build with the Node.js template instead of Express?

Use the Node.js template for automations, webhooks and scheduled jobs, since tools such as n8n run on top of Node.js. Use the Express template for portals and dashboards with login and a database.

  • Can I migrate to Replit from another stack?

You can start from a Developer Frameworks template or an agent draft and let the agent adapt the code. Expect to redo the install, secrets and auth steps, because they belong to the project rather than the account.

  • What content and communities are worth following for this stack?

Portuguese-speaking developers can follow Gustavo Dev Doido for practical lessons on building with agents, explore Crazystack Typescript as a reference stack for typed applications, and look into Bootcamp do Dev Doido for a structured path. Start with Crazystack.

Turning a walkthrough into something you can ship

A recorded walkthrough is useful because it shows the failures as well as the successes, and this one shows both: a dashboard built from two pasted rows in minutes, and a key-entry form that should never reach a public URL. The gap between the two is small and specific.

If you have similar material in a video, the same reasoning applies to it. YouBlog takes a YouTube link, transcribes the audio and drafts an article you can edit, which turns a screen recording into a written guide with its own structure.

YouBlog

Source video

YouTube thumbnail: This Makes Deploying Claude Code Apps Too Easy

Source video

This Makes Deploying Claude Code Apps Too Easy

Create from this video

This article was created automatically from a new video.

Automate my channel

Turn your YouTube videos into articles

Built for creators with a backlog and no editor on staff. This page started as a video. YouBlog drafts from the transcript, you review every word, then publish on a first-party /p/{slug} page. Nothing goes live until you publish it.

Turn your videos into articles

Published with YouBlog