Skip to main content

Crate byokey_provider

Crate byokey_provider 

Source
Expand description

Provider executor implementations and model registry.

§Module layout

  • executor — Per-provider [ProviderExecutor] implementations.
  • factory — Executor creation from provider/model identifiers + config.
  • registry — Model-to-provider mapping and model listing.
  • http_util — Shared HTTP send/stream helpers (ProviderHttp).
  • routing — Round-robin API key selection (CredentialRouter).
  • retry — Multi-key retry wrapper ([RetryExecutor]).

Re-exports§

pub use device_profile::DeviceProfileCache;
pub use executor::AntigravityExecutor;
pub use executor::ClaudeExecutor;
pub use executor::CodexExecutor;
pub use executor::CodexWsExecutor;
pub use executor::CopilotExecutor;
pub use executor::GeminiExecutor;
pub use executor::IFlowExecutor;
pub use executor::KimiExecutor;
pub use executor::KiroExecutor;
pub use executor::QwenExecutor;
pub use factory::make_executor;
pub use factory::make_executor_for_model;
pub use factory::make_executor_with_cache;
pub use http_util::ProviderHttp;
pub use registry::ModelEntry;
pub use registry::ThinkingSupport;
pub use registry::all_models;
pub use registry::is_copilot_free_model;
pub use registry::models_for_provider;
pub use registry::parse_qualified_model;
pub use registry::resolve_provider;
pub use registry::resolve_provider_with;
pub use registry::thinking_capability;
pub use registry::thinking_support;
pub use routing::CredentialRouter;
pub use routing::RoutingStrategy;
pub use selector::AccountNode;
pub use selector::AccountSelector;
pub use selector::RoutingPolicy;
pub use selector::StrategyKind;
pub use versions::VersionStore;

Modules§

claude_headers
Claude fingerprint constants shared with the proxy crate’s /v1/messages handler.
cloak
Claude request cloaking — system prompt injection with billing header, agent identifier, metadata injection, and sensitive word obfuscation.
device_profile
Per-auth device fingerprint caching.
executor
Per-provider executor implementations.
factory
Executor factory — creates boxed ProviderExecutor instances from provider identifiers, model strings, and configuration.
http_util
Shared HTTP utilities for provider executors.
registry
Model registry: static model lists and provider resolution.
retry
Retry executor — wraps a provider with multi-key rotation on retryable errors.
routing
Credential routing — API key selection with configurable strategy and per-key state machine.
selector
Per-provider account selection backed by the loadwise load-balancer.
stream_bridge
Bridge between aigw’s canonical StreamEvent and OpenAI SSE chunk format.
versions
Remote version/fingerprint config fetched from assets.byokey.io/versions/.