Skip to content

feat: Add Apertis provider support #9354

@theQuert

Description

@theQuert

Summary

Add Apertis AI as a new LLM provider in OpenCode.

Background

Apertis (https://apertis.ai) is an OpenAI-compatible API provider with 470+ models including:

  • Opus 4.5 / Opus 4.5 Thinking
  • Sonnet 4.5 / Sonnet 4.5 Thinking
  • GPT-5.2 Pro / GPT-5.2 / GPT-5.2 Codex
  • Gemini 3 Pro Preview
  • Grok Code Fast 1
  • GLM 4.7 / GLM 4.7 Thinking
  • MiniMax M2.1

Implementation

  1. Add Apertis loader in packages/opencode/src/provider/provider.ts
  2. Use @ai-sdk/openai-compatible package (already available)
  3. Environment variable: APERTIS_API_KEY
  4. API base: https://api.apertis.ai/v1

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions