feat(providers): add opencode_free and kilo_free providers#647
Open
Kayphoon wants to merge 1 commit into
Open
Conversation
Kayphoon
force-pushed
the
feat/opencode-kilo-free-providers
branch
from
June 19, 2026 08:25
bc706bf to
ee4ec29
Compare
…model discovery Add two new free-tier provider types for accessing AI models without API keys: - opencode_free: connects to OpenCode Zen (https://opencode.ai/zen) using ULID session/request headers, no Authorization header required - kilo_free: connects to Kilo Gateway (https://api.kilo.ai/api/gateway) using a fixed Bearer token "free" Both providers: - Auto-create a Default key on provider creation via FixedProviderTemplate reconciliation (opencode_free: empty key, kilo_free: key="free") - Enable auto_fetch_models by default for immediate model discovery - Support openai:chat API format - Use model-only pool adapters (no quota_refresh, plan_tier, or quota_reset) opencode_free model fetch uses a dedicated URL builder to construct /zen/v1/models instead of the default /models path, matching the endpoint's custom_path configuration. Backend validation whitelist and frontend provider dropdown updated to accept both new provider types.
Kayphoon
force-pushed
the
feat/opencode-kilo-free-providers
branch
from
June 19, 2026 08:37
ee4ec29 to
bfdbe13
Compare
Kayphoon
marked this pull request as ready for review
June 19, 2026 20:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new free-tier provider types for accessing AI models without traditional API keys:
opencode_free— connects to OpenCode Zen (https://opencode.ai/zen) using ULID session/request headers (x-opencode-session,x-opencode-request), no Authorization header requiredkilo_free— connects to Kilo Gateway (https://api.kilo.ai/api/gateway) using a fixed Bearer tokenfreeKey features
FixedProviderTemplatereconciliation, so users don't need to manually add keysauto_fetch_modelsis enabled by default for immediate model discoveryopenai:chatAPI formatopencode_freemodel fetch uses a dedicated URL builder to construct/zen/v1/modelsinstead of the default/modelspath (matching the endpoint'scustom_path=/v1configuration)Files changed
opencode_free/andkilo_free/modules inaether-provider-transport(auth, policy, request, URL builders)opencode_free.rsandkilo_free.rsinaether-provider-pool(model-only adapters)aether-model-fetchstrategy selection + opencode_free URL special caseFixedProviderKeyTemplatestruct + default key reconciliation logicVerification
cargo test -p aether-provider-transport provider_types::tests::→ 16 passedcargo test -p aether-gateway handlers::admin::provider::write::provider::template::tests→ 3 passedcargo test -p aether-model-fetch build_models_fetch_url→ 7 passedcargo build --release --bin aether-gateway→ passedopencode_free/kilo_freeproviders auto-creates Default keys withauto_fetch_models=true; opencode_free discovers 46 models from upstream