This tutorial shows how to connect Claude to a Replit project using Replit's built-in AI integration, so you can add AI-powered features to your app without leaving your workspace.
Notes:
- The built-in Claude integration (Replit-managed) requires a paid Replit plan and bills usage through your Replit credits.
- When the Agent detects an Anthropic dependency, it will display a confirmation prompt showing "Anthropic (Replit managed)." Click Approve to let Replit handle the API credentials automatically.
- Your Anthropic API key is automatically stored in the Secrets pane. You can update or replace it there at any time.
- See How to Set Environment Variables in Replit for more on Secrets.
- Sign in at replit.com and open the project you want to add Claude to, or click + Create Something New to start a fresh one.
- In the Agent prompt field, describe what you want to build and mention Claude directly - for example: Build a client briefing tool for NEPS Corp that takes a project name and returns a short AI-generated summary using Claude. Click the Arrow button to run.
- The Agent generates your project files and wires up the Claude connection. Wait for the build to complete.
- Click Run to launch your app. Test it in the Preview tab - for example, Q3 Budget Review, and confirm Claude returns a summary output.
.gif)
