openclaw-nexos-provider 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,12 +25,13 @@ openclaw plugins install openclaw-nexos-provider
25
25
 
26
26
  ## Configure
27
27
 
28
- Set your Nexos API key (either works):
28
+ Provide your nexos.ai API key via the environment (this is all the provider
29
+ needs — OpenClaw detects it from `NEXOS_API_KEY`):
29
30
 
30
31
  ```bash
31
32
  export NEXOS_API_KEY="your-nexos-key"
32
- # or, interactively:
33
- openclaw onboard --nexos-api-key "your-nexos-key"
33
+ # optional, to run onboarding for the provider explicitly:
34
+ openclaw onboard --auth-choice nexos-api-key
34
35
  ```
35
36
 
36
37
  Then pick a model:
package/dist/index.js CHANGED
@@ -161,6 +161,7 @@ async function buildNexosProviderResult(providerId, apiKey) {
161
161
  return { provider: buildProviderConfig({ models: selected, apiKey, kind }) };
162
162
  }
163
163
  function registerNexosProvider(api, providerId, label) {
164
+ const isPrimary = providerId === NEXOS_PROVIDER_COMPLETIONS;
164
165
  api.registerProvider({
165
166
  id: providerId,
166
167
  label,
@@ -175,7 +176,16 @@ function registerNexosProvider(api, providerId, label) {
175
176
  optionKey: "nexosApiKey",
176
177
  flagName: "--nexos-api-key",
177
178
  envVar: "NEXOS_API_KEY",
178
- promptMessage: "Enter your nexos.ai API key"
179
+ promptMessage: "Enter your nexos.ai API key",
180
+ // Expose the provider in `openclaw onboard` / auth-choice so the
181
+ // host runs its models.json materialization for nexos.
182
+ wizard: isPrimary ? {
183
+ choiceId: "nexos-api-key",
184
+ choiceLabel: "nexos.ai API key",
185
+ groupId: "nexos",
186
+ groupLabel: "nexos.ai",
187
+ onboardingScopes: ["text-inference"]
188
+ } : void 0
179
189
  })
180
190
  ],
181
191
  // Live catalog: consulted at runtime (picker/refresh).
@@ -18,11 +18,12 @@ This plugin registers two OpenClaw providers, both authenticated with
18
18
  ## Getting started
19
19
 
20
20
  1. Get an API key from your nexos.ai dashboard.
21
- 2. Provide it to OpenClaw:
21
+ 2. Provide it to OpenClaw via the environment (auto-detected):
22
22
 
23
23
  ```bash
24
- openclaw onboard --nexos-api-key "$NEXOS_API_KEY"
25
- # or set NEXOS_API_KEY in the environment
24
+ export NEXOS_API_KEY="your-nexos-key"
25
+ # optional: run onboarding for the provider explicitly
26
+ openclaw onboard --auth-choice nexos-api-key
26
27
  ```
27
28
 
28
29
  3. Verify the models are available:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-nexos-provider",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "nexos.ai model provider plugin for OpenClaw — access Claude, GPT, Gemini, Grok and 60+ models through one API key.",
5
5
  "type": "module",
6
6
  "license": "MIT",