Skip to content

feat(provider): add Trillionir AI provider#31385

Open
Abdulhadi446 wants to merge 2 commits into
anomalyco:devfrom
Abdulhadi446:feat/add-thetrillioniar-provider
Open

feat(provider): add Trillionir AI provider#31385
Abdulhadi446 wants to merge 2 commits into
anomalyco:devfrom
Abdulhadi446:feat/add-thetrillioniar-provider

Conversation

@Abdulhadi446
Copy link
Copy Markdown

@Abdulhadi446 Abdulhadi446 commented Jun 8, 2026

Issue for this PR

Closes #N/A (new provider addition)

Type of change

  • New feature
  • Documentation

What does this PR do?

Adds Trillionir AI (https://thetrillioniar.me) as a built-in OpenAI-compatible provider.

Provider details:

  • Provider ID: thetrillioniar
  • Base URL: https://thetrillioniar.me/openai/v1
  • SDK: @ai-sdk/openai-compatible (already bundled)
  • Auth: API key via TRILLIONIAR_API_KEY
  • Pricing: $5/mo flat, unlimited requests — no per-token charges

Changes:

  1. Added thetrillioniar entry to CUSTOM_LOADERS in packages/opencode/src/provider/provider.ts (following the same pattern as kilo, zenmux, openrouter)
  2. Added documentation section in packages/web/src/content/docs/providers.mdx between Together AI and Venice AI with /connect instructions, model table, and config example

About the provider:
Trillionir AI is an inference platform offering OpenAI and Anthropic API compatibility over a pool of open-source models (Gemma 4 31B, Devstral 24B, RNJ-1 8B). Branded model names like openai/gpt-4o are routing aliases to benchmarked OSS models — documented transparently on the site. Flat pricing with no per-token charges makes it especially useful for developers running opencode heavily throughout the day.

How did you verify your code works?

  • Verified the CUSTOM_LOADERS entry follows the exact same pattern as existing simple providers (kilo, zenmux, openrouter)
  • Confirmed @ai-sdk/openai-compatible is already in BUNDLED_PROVIDERS
  • Documentation format matches existing provider entries in providers.mdx

Screenshots / recordings

N/A (not a UI change)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 8, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant