Direct-API Providers (OpenAI-compatible key-loop)
This page covers the OpenAI-compatible direct-key providers registered in Cyberine as
loop-*-build build-fleet workers. Each uses LoopAgentAdapter and requires only an API
key — no CLI install, no gateway, no Docker.
Excluded from this page (they have dedicated pages): openai, minimax, deepseek,
openrouter, moonshot-kimi, anthropic, ollama.
Also excluded: loop-copilot-build (OAuth token, not a static API key) and
loop-bedrock-build / loop-vertex-build (SigV4 / ADC auth — see their own sections in
the codebase).
Quick reference
| Provider | Build-fleet worker id | Base URL | Key env var | Model env var | Default model |
|---|---|---|---|---|---|
| Google Gemini | loop-gemini-build | https://generativelanguage.googleapis.com/v1beta/openai | GEMINI_API_KEY | GEMINI_MODEL | gemini-2.5-pro |
| xAI Grok | loop-xai-build | https://api.x.ai/v1 | XAI_API_KEY | XAI_MODEL | grok-3 |
| Groq | loop-groq-build | https://api.groq.com/openai/v1 | GROQ_API_KEY | GROQ_MODEL | llama-3.3-70b-versatile |
| Mistral | loop-mistral-build | https://api.mistral.ai/v1 | MISTRAL_API_KEY | MISTRAL_MODEL | mistral-large-latest |
| Together AI | loop-together-build | https://api.together.xyz/v1 | TOGETHER_API_KEY | TOGETHER_MODEL | meta-llama/Llama-3.3-70B-Instruct-Turbo |
| Fireworks AI | loop-fireworks-build | https://api.fireworks.ai/inference/v1 | FIREWORKS_API_KEY | FIREWORKS_MODEL | accounts/fireworks/models/deepseek-v3 |
| Qwen / DashScope | loop-qwen-build | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 | QWEN_API_KEY | QWEN_MODEL | qwen3-coder-plus |
| Zhipu GLM | loop-zhipu-build | https://open.bigmodel.cn/api/paas/v4 | ZHIPU_API_KEY | ZHIPU_MODEL | glm-4.6 |
| Perplexity | loop-perplexity-build | https://api.perplexity.ai | PERPLEXITY_API_KEY | PERPLEXITY_MODEL | sonar-pro |
| Cerebras | loop-cerebras-build | https://api.cerebras.ai/v1 | CEREBRAS_API_KEY | CEREBRAS_MODEL | llama-3.3-70b |
| NVIDIA NIM | loop-nvidia-build | https://integrate.api.nvidia.com/v1 | NVIDIA_API_KEY | NVIDIA_MODEL | meta/llama-3.3-70b-instruct |
| Cohere | loop-cohere-build | https://api.cohere.ai/compatibility/v1 | COHERE_API_KEY | COHERE_MODEL | command-r-plus |
| Azure OpenAI | loop-azure-build | AZURE_OPENAI_ENDPOINT (instance-specific) | AZURE_OPENAI_API_KEY | AZURE_OPENAI_DEPLOYMENT | gpt-4o |
| Xiaomi MiMo | loop-mimo-build | https://api.xiaomimimo.com/v1 | XIAOMI_API_KEY | XIAOMI_MODEL | mimo-v2.5-pro |
All workers: adapter = LoopAgentAdapter, kind = key-loop, auth header =
Authorization: Bearer <KEY> (except Azure — see notes below).
Per-provider notes
Google Gemini (loop-gemini-build)
- Endpoint style: Google exposes an OpenAI-compatible shim at
generativelanguage.googleapis.com/v1beta/openai. TheopenaiSDK works as-is by overridingbaseURL. - Auth:
GEMINI_API_KEYfrom https://aistudio.google.com/app/apikey — no project or ADC required (distinct fromloop-vertex-buildwhich uses Vertex ADC / service account). - Multimodal: yes (
gemini-2.5-proaccepts images). - Model env:
GEMINI_MODEL(defaultgemini-2.5-pro). - Gotcha: JSON output can be inconsistent across model versions; tool-call schemas must be precise.
xAI Grok (loop-xai-build)
- Auth:
XAI_API_KEYfrom https://console.x.ai/. - Multimodal: yes (
grok-3accepts images). - Model env:
XAI_MODEL(defaultgrok-3). - Cost: frontier tier (cost class 3); reserve for hard / critical tasks.
Groq (loop-groq-build)
- Auth:
GROQ_API_KEYfrom https://console.groq.com/keys. - Strengths: very low latency, cheap.
- Gotcha: aggressive rate limits on the free tier; quota errors trigger the automatic cooldown and worker re-registration on the next run.
- Model env:
GROQ_MODEL(defaultllama-3.3-70b-versatile).
Mistral (loop-mistral-build)
- Auth:
MISTRAL_API_KEYfrom https://console.mistral.ai/api-keys/. - Model env:
MISTRAL_MODEL(defaultmistral-large-latest). - Cost: standard tier (cost class 2).
Together AI (loop-together-build)
- Auth:
TOGETHER_API_KEYfrom https://api.together.xyz/settings/api-keys. - Model id format:
<org>/<model>(e.g.meta-llama/Llama-3.3-70B-Instruct-Turbo). - Model env:
TOGETHER_MODEL(defaultmeta-llama/Llama-3.3-70B-Instruct-Turbo). - Strengths: cheap, broad open-weights catalog.
Fireworks AI (loop-fireworks-build)
- Auth:
FIREWORKS_API_KEYfrom https://fireworks.ai/account/api-keys. - Model id format:
accounts/fireworks/models/<model>— always the full path. - Model env:
FIREWORKS_MODEL(defaultaccounts/fireworks/models/deepseek-v3). - Strengths: cheap, fast inference, open-weights catalog.
Qwen / DashScope (loop-qwen-build)
- Auth:
QWEN_API_KEY— international (non-mainland) key from https://bailian.console.alibabacloud.com/ (DashScope international account). - Base URL: international endpoint (
dashscope-intl.aliyuncs.com). For mainland China, override withQWEN_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1. - Model env:
QWEN_MODEL(defaultqwen3-coder-plus). - Strengths: cheap, strong code generation, long context.
Zhipu GLM (loop-zhipu-build)
- Auth:
ZHIPU_API_KEYfrom https://open.bigmodel.cn/. - Base URL:
https://open.bigmodel.cn/api/paas/v4(OpenAI-compatible path). - Model env:
ZHIPU_MODEL(defaultglm-4.6). - Strengths: cheap, solid instruction following.
Perplexity (loop-perplexity-build)
- Auth:
PERPLEXITY_API_KEYfrom https://www.perplexity.ai/settings/api. - Base URL:
https://api.perplexity.ai(no/v1suffix — the Cyberine adapter appends the completions path). - Model env:
PERPLEXITY_MODEL(defaultsonar-pro). - Strengths: live web search, up-to-date knowledge, inline citations.
- Gotcha: Sonar models are search-optimised; they are less suited to pure code generation than the other workers in this fleet. Use for research/Q&A steps.
- Note:
PERPLEXITY_API_KEYalso backs theweb_searchtool used by all loop workers. Setting it registers both the search tool AND this build worker.
Cerebras (loop-cerebras-build)
- Auth:
CEREBRAS_API_KEYfrom https://cloud.cerebras.ai/. - Model env:
CEREBRAS_MODEL(defaultllama-3.3-70b). - Strengths: ultra-fast inference (wafer-scale chip), very cheap.
- Gotcha: capability ceiling — the current Llama 3.3 70B default is strong for its price point but weaker than frontier models on complex reasoning tasks.
NVIDIA NIM (loop-nvidia-build)
- Auth:
NVIDIA_API_KEYfrom https://build.nvidia.com/explore/discover. - Base URL:
https://integrate.api.nvidia.com/v1(OpenAI-compatible). - Model env:
NVIDIA_MODEL(defaultmeta/llama-3.3-70b-instruct). - Model id format:
<org>/<model>(e.g.meta/llama-3.3-70b-instruct). - Strengths: broad model catalog (Llama, Mixtral, Nemotron, etc.), optimised NIM containers.
Cohere (loop-cohere-build)
- Auth:
COHERE_API_KEYfrom https://dashboard.cohere.com/api-keys. - Base URL:
https://api.cohere.ai/compatibility/v1— Cohere's OpenAI-compatible shim (distinct from their native/v1endpoint). - Model env:
COHERE_MODEL(defaultcommand-r-plus). - Strengths: retrieval-augmented generation, solid instruction following.
Azure OpenAI (loop-azure-build)
- Auth:
AZURE_OPENAI_API_KEY— resource-scoped, not a personal key. - Endpoint:
AZURE_OPENAI_ENDPOINT— the full deployment URL for your Azure resource, e.g.https://<resource>.openai.azure.com/openai/deployments/<deployment>/. - Deployment name:
AZURE_OPENAI_DEPLOYMENT(defaultgpt-4o) — the deployment id inside your resource, not the model id. - API version:
AZURE_OPENAI_API_VERSION(default2024-12-01-preview) — appended as an?api-version=query parameter on every request. - Multimodal: yes (
gpt-4odefault accepts images). - Gotcha: both
AZURE_OPENAI_API_KEYandAZURE_OPENAI_ENDPOINTmust be set for the worker to register; missing either skips the adapter with a note. - Cost: frontier tier (cost class 3); suited for enterprise compliance scenarios where data must not leave Azure.
Xiaomi MiMo (loop-mimo-build)
- Auth:
XIAOMI_API_KEY— funded direct key from Xiaomi's AI platform. - Base URL:
https://api.xiaomimimo.com/v1(OpenAI-compatible). Regional variants exist (e.g.token-plan-cn.xiaomimimo.com,token-plan-ams.xiaomimimo.com,token-plan-sgp.xiaomimimo.com) — override withXIAOMI_BASE_URL. - Model env:
XIAOMI_MODEL(defaultmimo-v2.5-pro). - Strengths: cheap, long context, surgical edits.
- Note: also registered as
loop-mimo-directin the default (read-only) adapter set whenXIAOMI_API_KEYis set;loop-mimo-buildis the implementer (write-capable) build worker. - Model catalog (T651a, 2026-08-27, live-probed with a real
XIAOMI_API_KEY): the catalog used to also listmimo-v2-pro/mimo-v2-flash/mimo-v2-omnibehind a CONTRADICTED deprecation signal (one source said deprecated 2026-06-30, two others didn't). Resolved byGET /v1/models(returns exactly 7 live ids:mimo-v2.5,mimo-v2.5-asr,mimo-v2.5-pro,mimo-v2.5-pro-ultraspeed,mimo-v2.5-tts,mimo-v2.5-tts-voiceclone,mimo-v2.5-tts-voicedesign— none of the three non-2.5 chat ids appear) plus a 1-tokenPOST /v1/chat/completionsper id:mimo-v2.5-proandmimo-v2.5both 200 with a real completion;mimo-v2-pro/mimo-v2-flash/mimo-v2-omniall 400{"error":{"code":"400","message":"Unsupported model mimo-v2-<id>"}}. The three non-2.5 ids were removed frommodelCatalog.ts/modelPricing.ts(and theisMultimodalModel()regex inworkerProfiles.tsthat matchedmimo-v2-omni).mimo-v2.5-pro-ultraspeed(untested faster variant) and the-asr/-tts*ids (different modality) were seen live but NOT added — a future sweep should probe-pro-ultraspeedfor the chat catalog.
Usage
Enable one or more workers in CYBERINE_BUILD_FLEET:
CYBERINE_BUILD_FLEET="loop-gemini-build,loop-groq-build" npm run cli -- "<task>"Override the model for a specific worker:
GEMINI_MODEL=gemini-2.0-flash-001 CYBERINE_BUILD_FLEET="loop-gemini-build" npm run cli -- "<task>"All workers inherit the global LOOP_MAX_TOOL_ROUNDS (default 25) and LOOP_MAX_TOKENS
(default 16000) limits.
Ollama Cloud (hosted inference)
Fact-checked 2026-06-27 against https://docs.ollama.com/cloud and https://ollama.com/blog/cloud-models; cross-referenced with https://fabiorehm.com/blog/2026/04/12/pi-ollama-cloud-api/ (hands-on...
Cloud-Native Providers (Bedrock, Vertex AI, GitHub Copilot)
These three workers use cloud-platform auth rather than a plain API key. None of them routes through the LiteLLM gateway; each has a dedicated adapter in src/adapters/.