feat: add OpenCode and Antigravity CLI providers#125
feat: add OpenCode and Antigravity CLI providers#125AtharvaGurao wants to merge 1 commit intosipeed:mainfrom
Conversation
|
Could you rebase and do |
|
When this can be merge? |
You need to |
|
I think Antigravity and gemini not the same cuz when login via Antigravity i got more models than just provide gemini api key, and Antigravity provided oauth login, not api key |
Adds two new free CLI-based LLM providers: - **OpenCode**: Uses the opencode CLI (https://github.com/opencode-ai/opencode) with non-interactive JSON output mode (-p, -f json, -q flags) - **Antigravity/Gemini CLI**: Uses the gemini CLI (https://github.com/google-gemini/gemini-cli) with headless mode Both follow the same subprocess pattern as ClaudeCliProvider. Provider names in config: - opencode / open-code - antigravity / gemini-cli Closes sipeed#68
2ced670 to
b1230ae
Compare
|
Rebased onto latest main and ran |
|
whats the status of this pr ? has anyone tested it ? is antigravity working ?? |
|
@Zepan Adds OpenCode and Antigravity CLI providers (+602 lines). These follow the same CLI subprocess pattern as the Codex CLI provider (#80, merged). Recommendation: Review after #213 (Provider Refactor) lands. CLI providers are a good fit for PicoClaw's lightweight philosophy, but the provider architecture is about to change. These would need rework after #213. |
|
Sharing for visibility: we opened a follow-up implementation and validation PR here: #343 It includes Antigravity provider integration plus compatibility fixes found during testing (tool-call normalization, history ordering sanitization, thought_signature preservation). |
Summary
Adds two new free CLI-based LLM providers as requested in #68.
New Providers
opencode -p "prompt" -f json -qgemini -p "prompt" --sandbox falseBoth are free and follow the same subprocess pattern as the existing
ClaudeCliProvider.Provider Names in Config
{"agents": {"defaults": {"provider": "opencode"}}} // or {"agents": {"defaults": {"provider": "antigravity"}}}Aliases:
open-code,gemini-cliFiles Changed
pkg/providers/opencode_provider.go— new OpenCode CLI providerpkg/providers/antigravity_provider.go— new Antigravity/Gemini CLI providerpkg/providers/http_provider.go— wired intoCreateProvider()pkg/config/config.go— added config entries.env.example— documentationTesting
Closes #68