Skip to content

[FEATURE] Add Quartaly as a recognized provider in opencode models list #21690

@clawdiobotelho

Description

@clawdiobotelho

Currently Quartaly API models are not showing in the opencode models list. Quartaly provides a OpenAI-compatible and Anthropic-compatible API at https://api.quatarly.cloud with various models including claude-opus-4-6-thinking, claude-sonnet-4-6-thinking, gpt-5.4, gemini-3.1-pro, etc.

Root Cause

The ProviderID schema is hardcoded in the opencode binary and only includes a fixed set of providers:

openrouter, anthropic, openai, google, google-vertex, github-copilot, amazon-bedrock, azure, mistral, gitlab

Any custom provider (like quartaly) that isn't in this list won't be shown in opencode models, even when credentials are configured in auth.json.

Current workaround

Custom providers can be configured in ~/.openclaw/agents/main/agent/models.json for the openclaw agent, but this doesn't affect the opencode model selector /models.

Request

Add quartaly to the list of recognized ProviderIDs so that:

  1. The quartaly API credentials stored in auth.json are picked up
  2. Quartaly models appear in opencode models output
  3. Users can select Quartaly models via the model selector UI

API Details

  • Quartaly OpenAI-compatible: https://api.quatarly.cloud/v1 (models: claude-sonnet-4-6, claude-opus-4-6-thinking, gpt-5.2-codex, gemini-3.1-pro-high, etc.)
  • Quartaly Anthropic-compatible: https://api.quatarly.cloud/ (models: claude-haiku-4-5-20251001, claude-opus-4-6-thinking, etc.)
  • API Key: stored as QUATARLY_API_KEY env var

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions