Articles

Integrate RodiumAI with OpenCode in your project

Add RodiumAI as a custom provider in OpenCode Desktop in 4 steps: Settings → Providers → Custom provider, paste your base URL and API key, add your models from the RodiumAI catalog, and start coding.

  • opencode
  • integration
  • api
  • developer-tools
  • models
  • coding-agent
  • openai-compatible
  • custom-provider
  • rodiumai
4 min read95 views

Why OpenCode + RodiumAI?

OpenCode is an AI-powered coding agent available as a desktop app. It supports any OpenAI-compatible provider through its custom provider feature — which means you can connect RodiumAI directly from the settings UI, no config file needed.

With RodiumAI you get:

  • One API key for GPT, Claude, Gemini, DeepSeek, Mistral, and more.

  • RODI credits rechargeable via Mobile Money (Orange, MTN, Wave…) or bank transfer.

  • Smart routing profiles (auto, pro, fast) that balance cost and performance automatically.

  • Full usage visibility in your RodiumAI dashboard.

OpenCode Desktop main interface — Build anything screen

Prerequisites

Before starting, make sure you have:

  1. A RodiumAI account — sign up at rodiumai.io.

  2. At least one API key created in your dashboard (Dashboard → API Keys).

  3. A positive RODI credit balance (Dashboard → Billing → Top up).

  4. OpenCode Desktop installed — download at opencode.ai.

Note: Your RodiumAI API key starts with rd_sk_prod_ for production keys. It is only shown once at creation — if you lose it, use the Regenerate button in the dashboard.


Step 1 — Open Settings → Providers

Launch OpenCode Desktop. Click the ⚙️ Settings icon at the bottom left of the sidebar.

In the Settings panel, click Providers under the Server section.

OpenCode Desktop Settings — General panel with Providers option in the sidebar

Step 2 — Add a Custom provider

On the Providers page, you will see a list of popular providers. Scroll to the bottom and click + Connect next to Custom provider.

OpenCode Providers list — Custom provider option at the bottom with Connect button

A form opens asking for:

  • Provider ID — a unique identifier for this provider (e.g. rodiumai)

  • Display name — the label shown in the model selector (e.g. RodiumAI)

  • Base URL — the RodiumAI API endpoint

  • API key — your RodiumAI key

OpenCode — Custom provider form with Provider ID, Display name, Base URL and API key fields

Step 3 — Fill in the RodiumAI connection details

Get the Base URL

Go to rodiumai.io/docs and look for the Base URL section. All API samples use:

https://api.rodiumai.io/v1

RodiumAI Docs — Base URL https://api.rodiumai.io/v1 highlighted

Get your API key

Go to rodiumai.io/dashboard/api-keys. Your key is displayed in the format:

rd_sk_prod_u••••••••••••••••••••••••zeMK

Important: The full secret is only shown once at creation. Only the prefix and last 4 characters are stored on the RodiumAI side. If you no longer have the full key, click Regenerate to create a new one.

RodiumAI Dashboard — API Keys page showing the key token and Regenerate button

Fill in the form

Enter the details in the OpenCode Custom provider form:

FieldValueProvider IDrodiumaiDisplay nameRodiumAIBase URLhttps://api.rodiumai.io/v1API keyrd_sk_prod_uxxxxxxxxxxxxxxxxxxxxxxxx


Step 4 — Add your models

Still in the same form, scroll down to the Models section. Here you add each model you want to use from RodiumAI.

For each model, fill in two fields:

  • Model ID — the exact slug from the RodiumAI catalog

  • Display Name — the label shown in the UI (your choice)

Find model slugs

Go to rodiumai.io/models to browse the full catalog. Each model card shows its exact slug — for example:

  • openai/gpt-5.5

  • openai/gpt-5.5-pro

  • anthropic/claude-sonnet-4-6

  • google/gemini-2.5-flash

  • deepseek/deepseek-chat

Copy the slug exactly as shown and paste it into the Model ID field. Then type the display name you want to see in the model picker.

Click + Add model to add more models.

RodiumAI Models page — catalog with model slugs visible on each card

OpenCode — Models section in the Custom provider form with model ID and display name fields filled

Example configuration

Model IDDisplay Nameopenai/gpt-4.1-miniGTP 4.1 Minianthropic/claude-sonnet-4-6Claude Sonnet 4.6openai/gpt-5.5GPT 5.5


Step 5 — Save and restart OpenCode

Once all fields are filled, scroll down and click Save (or Submit depending on your version).

OpenCode — Custom provider form fully filled with API key, two models, and Save button

Then close and reopen OpenCode Desktop. This is required for the new provider and its models to appear in the model selector.


Step 6 — Select a RodiumAI model and start coding

Click the model selector at the bottom of the chat panel (next to Build). You will now see RodiumAi as a provider section in the list, with all the models you added.

Select the model you want and start sending requests. Your RODI credits are consumed per request and tracked in your dashboard.

OpenCode model selector — RodiumAi section with Claude Opus 4.6, Claude Sonnet 4.5, Claude Sonnet 4.6, GPT 5.4 Nano and GTP 4.1 Mini listed

Monitor your usage

Every request made by OpenCode consumes RODI credits. Track your spending in real time:

  1. Go to rodiumai.ioDashboard → Usage Logs

  2. Filter by date range, model, or API key

  3. Set up a low balance alert under Billing settings to avoid interruptions

OpenCode — Formulaire Custom provider entièrement rempli avec clé API, deux modèles et le bouton Save

Troubleshooting

SymptomCauseFix401 UnauthorizedInvalid or missing API keyRegenerate the key in Dashboard → API Keys402 Payment RequiredInsufficient RODI balanceTop up credits in Dashboard → BillingModel not appearing in selectorOpenCode not restarted after saveClose and reopen OpenCode DesktopUnknown model errorWrong model slugCopy the slug exactly from rodiumai.io/modelsNo response / timeoutNetwork or proxy issueCheck internet connection; disable local proxy if any


Next steps

  • Recharge your wallet with Mobile Money directly from the dashboard → rodiumai.io/billing.

  • Create separate API keys per project for granular usage tracking (Dashboard → API Keys → New Key).

  • Explore other integrations: Cursor, Cline, n8n, Continue.dev — check the Insights section.

  • Join the community: share your setup on X or LinkedIn and tag @RodiumAI.


About the author

PT

Parfait Toke

Integrate RodiumAI with OpenCode in your project