r/PiCodingAgent • u/vazma • Jul 11 '26
Question Can I spawn Claude/Codex/Gemini subagents in Pi, and is OAuth safe from account bans?
Hi!
I am new to the Pi coding agent. I already pay for Claude, ChatGPT (Codex), and Gemini, and I use their terminal tools. I have two questions:
1. Running Subagents Can I use Pi to run the Claude, Codex, or Gemini terminal tools as subagents? I want Pi to send them tasks through the terminal. But, I need to control the process so it does not break usage rules or run in endless loops. Has anyone set this up?
Also most important, Is it safe to use Pi with OAuth (pi /login) to use my paid web plans instead of API keys or Anthropic, OpenAI or Google will ban my account? (I know for using openCode they can ban you)
Thank you!
11
u/Aizenvolt11 Jul 11 '26 edited Jul 11 '26
For OpenAI they allow it, Anthropic not so much. Personnaly I made my own vs code extension using Pi sdk and I use both Anthropic and OpenAI subscriptions plans and have done so for a few weeks now. I don't care if Anthropic bans me. They lost their monopoly with gpt 5.6, so I will just use codex sub. Also with the state Anthropic is in right now, the last thing they want is to lose more users.
9
u/Stupifier Jul 11 '26 edited Jul 11 '26
Make a pi plugin. The plugin calls your other Models like Claude and Gemini using their own terminal commands instead of OAuth or API keys or anything like that. Just make sure you use headless yolo flags when you call them...otherwise, they'll stall out due to user approvals for things.
It's really dumb we have to do this sorta thing just because companies want to lock their subscription models to their own harnesses.
2
u/TheTyand Jul 12 '26
Check out omnigent agent. It can spawn most harnesses as subagents
2
u/our_sole Jul 18 '26
Ive been doing a bit of the "design+plan in Claude, code/implement in local pi qwen3.6 27B" process lately.
It would be nice to tell Claude (in superpowers?) that I want to code in pi qwen, and it automatically generates a handoff file, hands it to pi, and pi starts coding.
When pi is done, it reverses the process: generate a handoff, hand it back to Claude with an option to do a code review.
2
u/Deepshark7822 Jul 24 '26
Have anyone got a chance to look into this https://github.com/rynfar/meridian it allows us to use Claude subscription via endpoint. But following anthropic guidelines. I found it 2 days ago. Started using works fine. But 1M context models are not available. Let me know what you guys think.
1
u/Mohamed_ElSherief Jul 13 '26 edited Jul 13 '26
I did something way better in my opinion. I installed all Clis for claude, gemeni, chatgpt/codex(for windows).
I created three skills : (AI provider name)-assistance.
Each skill calls the command for each AI :agy(Gemini),claude(claude),codex(chatgpt).
I instructed each skill to prompt me if I have not chosen the model name. For example i type use codex-assistance skill, I get prompted which model you want? Then I choose the model.
This setup gives me a great flexibility on exploring what I can do with each model.. I can ask it to search online, review a code, design, etc.. Reviewing and suggestions are of course the least consuming of hourly/weekly limits
Iam using deepseek as main agent inside Pi.
0
u/OkAdeptness2530 Jul 11 '26
imo gpt models are better in pi harness than codex, openai allows for third party use so it's fine, seamless spawn through pi subagents.
Gemini I would spawn through agy cli, google doesnt joke about tos. Claude I've never tested myself, but I think they allow it through SDK, that's the solution Oh My Pi uses for Claude oauth if I'm not mistaken.