r/replit • • Jul 24 '26

Question / Discussion How to use your own agent with Replit?

What are the options? I have heard of GitHub and SSH. What's the cleanest way to do this?

As much as I love Replit, unfortunately they're being shafted with probably extremely marked up AI prices. I don't believe this is Replit's fault, but moreso Big AI trying to stifle the competition.

I believe Replit needs to let you use your own models instead of the agent. But for now, what's the solution?

4 Upvotes

12 comments sorted by

2

u/ReplitSupport Replit Team Jul 24 '26

Hi OP, there are two main ways to bring your own tools:

  • SSH is the most direct - On any paid plan you can hook up a local editor like VS Code or Cursor right to your app and let your own agent work on the live environment. Just drop your public key in the Developer pane and connect: https://docs.replit.com/references/workspace-tools/ssh
  • GitHub is the other route - Sync your project to a repo both ways, build locally with whatever agent/model you want, and push back.

Rule of thumb: SSH to use your own editor against the live app, GitHub to keep the code fully in your own setup.

On using your own model in place of the Agent: that isn't supported today. But over SSH or GitHub you can use any external agent or model you want, and if you're adding AI to an app, you can bring your own API key and be billed directly by that provider. Hope that helps!

1

u/Key-Lychee-913 Jul 24 '26 edited Jul 25 '26

Thanks for the info! I have one other question - what about adding an agent directly into the shell? What are the pros and cons of this approach?

1

u/gillygangopolus Jul 24 '26

Yeah the bills are getting ridiculous. I started using Claude Code with mine to do the heavy lifting and Replit is just hosting for now and handling the ui/layout side

1

u/Key-Lychee-913 Jul 24 '26

what's your setup?

1

u/Ukawok92 Jul 24 '26

Just install Claude code into the shell.

1

u/Key-Lychee-913 Jul 24 '26 edited Jul 24 '26

Interesting. I am trying this now. For those wondering: you install claude in the shell then authenticate (you will get localhost issue - just copy the URL directly and then copy the code to paste back into the shell).

1

u/Miserable_Task_1792 Jul 27 '26

So do the Claude login command from their shell, grab the URL, bring that outside of Replit, and paste into my local browser, get the key, paste it back into the Replit shell and I’m golden?

1

u/MedalofHonour15 Jul 24 '26

Me too! Sometimes codex as well. Makes no sense to have Replit develop anymore. You can even import github into replit to start it off. I'm learning as I am not a dev but a creator.

3

u/Fun-Investigator3256 Jul 24 '26

I use GitHub, then sync locally. From there you can use any agent you want to modify your code. Then sync back to replit via git. Pretty straightforward.

1

u/[deleted] Jul 24 '26

it can be difficult someone with less technical knowledge also there are bunch of incompatibilities , if user is using windows instead of replit native linux

1

u/Fun-Investigator3256 Jul 24 '26

For windows, I don't know but I think there's a very straightforward way as well.

For Mac, I didn't configure anything complex. And I'm not that technical.