Skip to content

Feat/add bitdeer ai provider#438

Closed
ruijietey wants to merge 2 commits intoNVIDIA:mainfrom
ruijietey:feat/add-bitdeer-ai-provider
Closed

Feat/add bitdeer ai provider#438
ruijietey wants to merge 2 commits intoNVIDIA:mainfrom
ruijietey:feat/add-bitdeer-ai-provider

Conversation

@ruijietey
Copy link

Summary

Add Bitdeer AI (bitdeer-ai) as a first-class inference provider, enabling OpenAI-compatible inference routing through the Bitdeer AI API with environment-based credential discovery via BITDEERAI_API_KEY.

Related Issue

Changes

  • Add BitdeerAiProvider plugin in openshell-providers with BITDEERAI_API_KEY env-var discovery
  • Add BITDEER_AI_PROFILE inference profile (OpenAI-compatible, Bearer auth, default base URL https://api-inference.bitdeer.ai/v1)
  • Register bitdeer-ai in profile_for(), ProviderRegistry, and normalize_provider_type() (accepts both bitdeer-ai and bitdeer)
  • Add BitdeerAi variant to CliProviderType enum in the CLI
  • Document bitdeer-ai in the provider reference table (docs/sandboxes/manage-providers.md)

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
    • bitdeer_ai_profile_has_correct_defaults — verifies profile type, base URL, credential key, and auth header
    • discovers_bitdeer_ai_env_credentials — verifies env-var-based credential discovery
    • normalize_provider_type test extended to cover bitdeer-ai and bitdeer aliases
    • profile_for test extended to include bitdeer-ai lookup
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Adds bitdeer-ai provider with OpenAI-compatible inference routing,
environment-based credential discovery, CLI integration, and docs.

Made-with: Cursor
@ruijietey ruijietey requested a review from a team as a code owner March 18, 2026 11:43
@github-actions
Copy link

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@github-actions
Copy link

Thank you for your interest in contributing to OpenShell, @ruijietey.

This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer.

To get vouched:

  1. Open a Vouch Request discussion.
  2. Describe what you want to change and why.
  3. Write in your own words — do not have an AI generate the request.
  4. A maintainer will comment /vouch if approved.
  5. Once vouched, open a new PR (preferred) or reopen this one after a few minutes.

See CONTRIBUTING.md for details.

@github-actions github-actions bot closed this Mar 18, 2026
@johntmyers
Copy link
Collaborator

You can configure Bitdeer using the openai provider like this:

openshell provider create \
    --name bitdeer \
    --type openai \
    --credential OPENAI_API_KEY=<bitdeer_api_key> \
    --config OPENAI_BASE_URL=https://api-inference.bitdeer.ai/v1

That would be the preferred way so we do not have to maintain multiple providers for the same OpenAI protocol.

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.

2 participants