Skip to content

chore: add coralbricks provider - #502

Merged
andreynering merged 3 commits into
charmbracelet:mainfrom
divyvasal:add-coralbricks-provider
Aug 31, 2026
Merged

andreynering merged 3 commits into
charmbracelet:mainfrom
divyvasal:add-coralbricks-provider

Conversation

@divyvasal

Copy link
Copy Markdown
Contributor

What

Adds CoralBricks as an inference provider — an OpenAI-compatible gateway serving open models with up to 1M context.

Models: GLM 5.2 (glm-5.2-fp4), Kimi K3 (kimi-k3), GPT-OSS 120B (gpt-oss-120b). Endpoint https://inference.coralbricks.ai/v1, key $CORALBRICKS_API_KEY, type openai-compat.

Notable: cost_per_1m_in_cached: 0 on every model — cached input tokens are free on the gateway.

Follows the existing pattern

  • internal/providers/configs/coralbricks.json (mirrors the other openai-compat configs)
  • //go:embed + coralBricksProvider() + providerRegistry entry in internal/providers/providers.go

Verified

  • go build ./... clean
  • go test ./internal/providers/ green
  • Confirmed the provider loads via GetAll() with 3 models, correct endpoint, and free cached-input pricing

Pricing source: https://www.coralbricks.ai/pricing. Reasoning is declared (can_reason: true); per-request effort levels are intentionally omitted for now.

🤖 Generated with Claude Code

CoralBricks is an OpenAI-compatible inference gateway for open models
(GLM 5.2, Kimi K3, GPT-OSS 120B) with up to 1M context and free cached
input (cost_per_1m_in_cached: 0). Follows the openai-compat config
pattern; loads via GetAll(), build + provider tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@divyvasal

Copy link
Copy Markdown
Contributor Author

Friendly ping @andreynering, this adds CoralBricks as an OpenAI-compat provider (config JSON + providers.go wiring, build + tests green, loads via GetAll()). Mergeable and ready when you have a moment. Thanks!

@divyvasal

Copy link
Copy Markdown
Contributor Author

Gentle follow-up @andreynering, this has been sitting for over a week now. It's mergeable, build + tests green, loads via GetAll() (openai-compat provider, config JSON + providers.go wiring). Anything you'd like changed, or good to merge? Thanks 🙏

New flagship GLM on the CoralBricks gateway: 1M context, $1.12/M in,
$4.40/M out, free cached input, reasoning. Promoted to
default_large_model_id (5.3 supersedes 5.2).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@divyvasal

Copy link
Copy Markdown
Contributor Author

Pushed an update: added GLM 5.3 (glm-5.3-fp4), now live on the gateway, and set it as the default large model (5.3 supersedes 5.2). 1M context, $1.12/M in, $4.40/M out, free cached input.

GLM 5.2 is being deprecated in favor of GLM 5.3. Provider now lists
glm-5.3-fp4 (default large), kimi-k3, gpt-oss-120b.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@divyvasal

Copy link
Copy Markdown
Contributor Author

Follow-up: dropped GLM 5.2 (glm-5.2-fp4) from this PR. It's being deprecated in favor of GLM 5.3, so there's no point landing it in a fresh integration. Provider now lists glm-5.3-fp4, kimi-k3, and gpt-oss-120b. GLM 5.3 is the default large model.

@andreynering andreynering changed the title feat(providers): add CoralBricks chore: add coralbricks provider Aug 31, 2026

@andreynering andreynering left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@andreynering
andreynering merged commit 92e354a into charmbracelet:main Aug 31, 2026
5 checks passed
@divyvasal

Copy link
Copy Markdown
Contributor Author

Thanks for the merge @andreynering! 🎉

andreynering pushed a commit that referenced this pull request Sep 9, 2026
catwalk.KnownProviders() in pkg/catwalk/provider.go returned 35 of the
41 providers that embedded.GetAll() actually ships. deepseek, ionet,
alibaba-singapore, alibaba-us, coralbricks and scaleway are all in
providerRegistry in internal/providers/providers.go with embedded
configs, but none of them was listed, so anything using the public API
to enumerate known providers missed six of them.

The two lists have always been kept in step: atlascloud (#463),
moonshot (#325), fireworks (#373) and baseten each added an
InferenceProvider constant and a KnownProviders entry in one commit,
and the Lambda (#79) and z.ai coding (#66) removals took both away.
These six drifted. ionet (#179), alibaba-singapore (#282), alibaba-us
(#412) and deepseek (#271) added the constant without the entry, and
coralbricks (#502) and scaleway (#309) never got a constant.

Declares InferenceProviderCoralBricks and InferenceProviderScaleway,
and inserts all six into KnownProviders at the position that mirrors
the constant block, so both read in the same order. Adds
TestKnownProvidersMatchesRegistry in internal/providers, which fails
if the registry and KnownProviders disagree in either direction.
@kingsleydon kingsleydon mentioned this pull request Oct 25, 2026
1 of 2 tasks
@jashwanth-12 jashwanth-12 mentioned this pull request Oct 30, 2026
1 of 2 tasks
@Jzstoken-bit Jzstoken-bit mentioned this pull request Oct 31, 2026
1 of 2 tasks
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