Skip to content

feat: add Apertis provider integration#20200

Open
theQuert wants to merge 1 commit intoanomalyco:devfrom
theQuert:feat/apertis-provider
Open

feat: add Apertis provider integration#20200
theQuert wants to merge 1 commit intoanomalyco:devfrom
theQuert:feat/apertis-provider

Conversation

@theQuert
Copy link
Copy Markdown

@theQuert theQuert commented Mar 31, 2026

Issue for this PR

Closes #9354

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds Apertis as a bundled provider in OpenCode. Apertis provides access to 500+ models via a single API key, similar to OpenRouter.

Changes:

  • packages/opencode/src/provider/provider.ts: Added import, BUNDLED_PROVIDERS entry, and CUSTOM_LOADERS entry with HTTP-Referer and X-Title headers (same pattern as OpenRouter/Zenmux)
  • packages/opencode/package.json: Added @apertis/ai-sdk-provider@2.1.0 dependency

How did you verify your code works?

  • bun typecheck passes
  • Provider loads correctly with APERTIS_API_KEY set
  • Model listing works via /models command

Screenshots / recordings

N/A - no UI changes

Checklist

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

Add @apertis/ai-sdk-provider as a bundled provider with custom loader
for HTTP-Referer and X-Title headers, following the same pattern as
OpenRouter and Zenmux.
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

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.

feat: Add Apertis provider support

1 participant