Adding support for Nebius Token Factory

This commit is contained in:
kiranchilledout committed 2026-01-30 15:13:23 +05:30
1 parent 6af205a13a
commit 6df311565a
17 files changed
+408 -1

No files matched your search

+24
View File
@@ -186,6 +186,30 @@ Kimi Code uses a dedicated endpoint and key (separate from Moonshot):
}
```
### Nebius
- Provider: `nebius`
- Auth: `NEBIUS_API_KEY`
- Example model: `nebius/zai-org/GLM-4.7-FP8`
```json5
{
agents: {
defaults: { model: { primary: "nebius/zai-org/GLM-4.7-FP8" } }
},
models: {
mode: "merge",
providers: {
nebius: {
baseUrl: "https://api.tokenfactory.nebius.com/v1",
apiKey: "${NEBIUS_API_KEY}",
api: "openai-completions"
}
}
}
}
```
### Qwen OAuth (free tier)
Qwen provides OAuth access to Qwen Coder + Vision via a device-code flow.
+8
View File
@@ -101,6 +101,14 @@
"source": "/moonshot/",
"destination": "/providers/moonshot"
},
{
"source": "/nebius",
"destination": "/providers/nebius"
},
{
"source": "/nebius/",
"destination": "/providers/nebius"
},
{
"source": "/openrouter",
"destination": "/providers/openrouter"
+1
View File
@@ -39,6 +39,7 @@ See [Venice AI](/providers/venice).
- [OpenRouter](/providers/openrouter)
- [Vercel AI Gateway](/providers/vercel-ai-gateway)
- [Moonshot AI (Kimi + Kimi Code)](/providers/moonshot)
- [Nebius](/providers/nebius)
- [OpenCode Zen](/providers/opencode)
- [Amazon Bedrock](/bedrock)
- [Z.AI](/providers/zai)
+41
View File
@@ -0,0 +1,41 @@
# Nebius
Nebius offers OpenAI-compatible endpoints. OpenClaw can auto-discover available models from the Nebius `/v1/models` endpoint when you provide an API key.
## Quick start
```bash
export NEBIUS_API_KEY="sk-..."
openclaw onboard --auth-choice nebius-api-key --nebius-api-key "$NEBIUS_API_KEY"
```
This writes the key to your OpenClaw auth profiles and sets the default model to `nebius/zai-org/GLM-4.7-FP8`.
## Configuration snippet
```json5
{
agents: {
defaults: { model: { primary: "nebius/zai-org/GLM-4.7-FP8" } }
},
models: {
mode: "merge",
providers: {
nebius: {
baseUrl: "https://api.tokenfactory.nebius.com/v1",
apiKey: "${NEBIUS_API_KEY}",
api: "openai-completions",
// models auto-discovered from /v1/models; optional static fallback:
models: [{ id: "zai-org/GLM-4.7-FP8", name: "Nebius GLM 4.7" }]
}
}
}
}
```
## Notes
- Endpoint: `https://api.tokenfactory.nebius.com/v1`
- Auth: `NEBIUS_API_KEY` (Bearer)
- API: OpenAI chat completions + `/v1/models` for discovery
- Vision support is inferred from the provider’s `capabilities.vision` flag on each model.