[FEATURE]:Add Support for Gab.ai API Provider
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Feature Request: Add Support for Gab.ai API Provider
Is your feature request related to a problem? Please describe.
OpenCode already supports several popular AI API providers out-of-the-box (e.g., Anthropic, OpenAI, Google, etc.), which makes it flexible and provider-agnostic. However, Gab.ai is not currently listed or supported. Gab.ai offers powerful, uncensored AI models like Arya 2, built for truth-seeking and unfiltered responses, with a focus on free speech and no Big Tech censorship. Adding native support would allow users to leverage these models seamlessly in OpenCode's TUI, desktop app, GitHub integration, and more.
Describe the solution you'd like
Integrate Gab.ai as a first-class provider in OpenCode's configuration system. Users could then select models in the provider/model format, such as:
-
gab.ai/arya-2(the flagship model, based right-wing nationalist Christian principles, excels at coding, analysis, and unfiltered tasks) - Other potential models like
gab.ai/various-model-name(check Gab.ai docs for full list).
Steps for integration (based on OpenCode's existing provider-agnostic architecture):
- Add Gab.ai to the list of supported providers in the config/TUI setup (e.g., via
/connect). - Handle API authentication: Gab.ai uses standard API keys (available via Gab AI Plus subscription at $20/month). Users sign up at gab.ai, get an API key from account settings.
- API endpoint: Base URL is
https://api.gab.ai/v1(OpenAI-compatible endpoints for chat completions).- Example payload: Standard OpenAI
/v1/chat/completionsformat.{ "model": "arya-2", "messages": [{"role": "user", "content": "prompt"}], "temperature": 0.7 } - Headers:
Authorization: Bearer <API_KEY>,Content-Type: application/json.
- Example payload: Standard OpenAI
- Update docs (e.g., opencode.ai/docs) with Gab.ai setup instructions, similar to other providers.
- Test with GitHub Actions workflow (e.g.,
model: gab.ai/arya-2in.github/workflows/opencode.yml).
Gab.ai does not train on user data, protects privacy, and is funded independently—aligning perfectly with OpenCode's open-source ethos.
Describe alternatives you've considered
- Manual proxying via custom OpenAI-compatible wrappers (hacky, loses native integration).
- Using local models, but Gab.ai's cloud models are optimized for speed/cost on coding tasks.
Additional context
- Gab.ai API docs: Available in account dashboard after signup (covers rate limits, pricing, models).
- Why Gab.ai? Uncensored, high-quality coding assistance without moralizing or refusals—ideal for "based" devs tired of filtered AIs. Stars: Growing fast on Gab platform.
- Repo for reference: Gab AI (API powered by their models).
Happy to provide more details, test betas, or contribute a PR if needed!
OpenCode version: Latest (1.1.12 as of Jan 2026)
OS/Terminal: N/A (feature request)