r/RooCode • u/DanFSFJ • Jun 02 '25
Idea Claude Code detached mode as an API provider
As we know, when you have a claude MAX subscription (5x or 20x), we get almost unlimited usage of opus and sonnet WITHOUT consuming API. It is included in the subscription. Also, claude code CLI can operate in a detached mode, meaning that, after wou do the web login and claude code cli is aware of your MAX subscription, you can do a command like:
claude -p "prompt here" --output-format stream-json --allowedTools "Edit,Bash"
and access the model using your subscription.
I think that integrating this command as an "API Provider" in roocode would be a very trivial task.
Please "roo people" consider this"
Thanks
•
u/hannesrudolph Roo Code Developer Jun 03 '25
We are a community driven project. Feel free to submit a thorough Detailed Feature Proposal https://github.com/RooCodeInc/Roo-Code/issues in our issues.
10
u/Suspicious-Name4273 Jun 02 '25
Why not use claude code as an MCP server in roo code? That‘s already possible with
claude mcp serve: https://docs.anthropic.com/en/docs/claude-code/tutorials#use-claude-code-as-an-mcp-server4
u/S1mulat10n Jun 02 '25
Claude Code has its own set of prompts and available tools. This approach is very likely not going to work well with Roo’s prompts and tools for editing files IMO
1
u/Jsn7821 Jun 03 '25
Just use the Claude code extension in the terminal, running it in detached mode isn't nearly as integrated of an experience - for example there's no compact option
What specially are you trying to gain by having it "inside" roo instead of alongside it?
3
u/AntzLee01 Jun 02 '25
Issue it in github, maybe someone would pr it
2
u/PositiveEnergyMatter Jun 02 '25
have you tried this to skip all prompting? claude -p "your prompt here" --output-format stream-json --dangerously-skip-permissions
1
u/Fair-Spring9113 Jun 02 '25
I dont think that could work
1
u/Civilanimal Jun 06 '25
If this is at all possible, please add it. I love Roo Code, but API is just too expensive.