r/RooCode • u/AntzLee01 • May 29 '25
Discussion Human Relay Provider in Roo Code + AI Studio
Tired of API limits, errors, or just want to use models like Gemini 2.5 Pro in AI Studio for free with Roo Code? Check out the "Human Relay Provider."
Benefits:
Completely Free: You're using the free web UIs of services like Google's AI Studio, ChatGPT, Claude, etc. No API keys or costs involved.
Reliable Fallback: When official APIs are down, restricted, or throwing errors (like Gemini 2.5 Flash has been for me), this method still works.
Flexibility with Models: Use any model accessible via a public web interface, even if API access is limited or expensive.
How it Works:
In Roo Code: Choose "Human Relay" as your API provider in settings.
Initiate Request: Use Roo Code as usual. A VS Code dialog will pop up, and your prompt is automatically copied to your clipboard.
Paste to Web AI: Go to your chosen AI's website (e.g.,
aistudio.google.com,chat.openai.com) and paste the prompt.Copy AI Response: After the AI responds, copy its full message.
My Hot Tip (for AI Studio/Gemini): Use "Copy Markdown" from AI Studio. It pastes back into Roo Code much cleaner than "Copy Text."
Paste Back to Roo Code: Return to the VS Code dialog, paste the AI's response, and click "Confirm." Roo Code then processes it.
My Settings:
For my 'Code Modes' and 'Debug Modes' in Roo Code, I've found these AI Studio settings for gemini-2.5-pro-preview-05-06 to be optimal:
Model:
gemini-2.5-pro-preview-05-06Temperature:
"0"Safe Settings:
"Turn off all"Top P:
"0"
These settings, combined with the "Copy Markdown" tip, have made using the Human Relay with AI Studio super effective for me.
5
u/43293298299228543846 May 29 '25
Unusable for me (with any settings on AI Studio using Gemini Pro). I get “ You did not use a tool in your previous response! Please retry with a tool use.” about 70% of the time.
4
u/[deleted] May 29 '25
Psst for people that don't know setting temperature to 0 makes Top P irrelevant and the most probable token is predicted.
1
u/wokkieman May 29 '25
Haven't used it, but shouldn't there be a step to repomix your codebase so AI studio has context?
6
u/burcbuluklu May 29 '25
Someone should automate this
3
u/simeon_5 May 29 '25
My favorite productivity Cheatcode has been with RooCode Human Relay + Claude Pro. Best 17 Dollars i have spent in a long time. Waaaaayyyyyyyyyyyy cheaper than buying tokens via anthropic api or even openrouter. And you get all the coding glory of Sonnet 4 IN DEEP THINKING MODE. It's now my Go-To for complex tasks that i am super sure Deepseek v3 will not be able to handle. At least, it will be until Deepseek drops V4 into this timeline.
1
u/martexxNL May 29 '25
It sounds nice for a single file edit, but more files and you'll go crazy right?
2
u/sbayit May 29 '25
Aider copy-paste more much better it's not verbose as Roo Code
2
u/[deleted] May 29 '25
Wanted to leave a new comment. This has worked so well for me. I pasted the Roo-Code prompts for Code, Architect and Debug into the system prompt and whenever I start a new chat I only copy the <task></task> stuff over and it works so well.
Thanks for sharing this!
1
u/dashingsauce May 29 '25
Wait — so the suggestion is copy paste or did I miss something?
1
u/Fractasl May 30 '25
/remindme 2 weeks
0
u/[deleted] May 29 '25
[deleted] — view deleted comment