From 48c74d8e1288b628b7ed22e2fbfa581986b1e14b Mon Sep 17 00:00:00 2001 From: AbdulHadi <179337358+Abdulhadi446@users.noreply.github.com> Date: Mon, 8 Jun 2026 21:33:43 +0500 Subject: [PATCH] feat(provider): add Trillionir AI as built-in provider --- packages/opencode/src/provider/provider.ts | 10 +++++ packages/web/src/content/docs/providers.mdx | 43 +++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.ts index 85a582e47d5c..f6d19af101a6 100644 --- a/packages/opencode/src/provider/provider.ts +++ b/packages/opencode/src/provider/provider.ts @@ -589,6 +589,16 @@ function custom(dep: CustomDep): Record { }, }, }), + thetrillioniar: () => + Effect.succeed({ + autoload: false, + options: { + headers: { + "HTTP-Referer": "https://opencode.ai/", + "X-Title": "opencode", + }, + }, + }), gitlab: Effect.fnUntraced(function* (input: Info) { const { VERSION: GITLAB_PROVIDER_VERSION, diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx index 628e2244e03c..2d34513969cb 100644 --- a/packages/web/src/content/docs/providers.mdx +++ b/packages/web/src/content/docs/providers.mdx @@ -2026,6 +2026,49 @@ The model catalog is provided automatically. A minimal `opencode.json` is all th --- +### Trillionir AI + +[Trillionir AI](https://thetrillioniar.me) is an OpenAI-compatible inference platform +offering a pool of open-source models behind branded routing aliases. Flat $5/mo +pricing with no per-token charges. + +1. Head over to [thetrillioniar.me](https://thetrillioniar.me), create an account, and generate an API key (format: `sk-tr-xxx`). + +2. Run the `/connect` command and search for **Trillionir AI**. + + ```txt + /connect + ``` + +3. Enter your Trillionir AI API key. + + ```txt + ┌ API key + │ + │ + └ enter + ``` + +4. Run the `/models` command to select a model like _GPT-4o (Gemma 4 31B)_ or the _Auto Router_. + + ```txt + /models + ``` + + Available models: + + | Model ID | Backend | + | -------------------------- | ------------------- | + | `auto` | Smart router | + | `openai/gpt-4o` | Gemma 4 31B | + | `openai/gpt-5.5` | Gemma 4 31B | + | `anthropic/claude-sonnet-4` | Devstral 24B | + | `anthropic/claude-opus-4` | Gemma 4 31B | + | `google/gemini-2.5-pro` | Gemma 4 31B | + | `google/gemini-2.0-flash` | RNJ-1 8B | + +--- + ### Venice AI 1. Head over to the [Venice AI console](https://venice.ai), create an account, and generate an API key.