@makerbi/openclaude 0.19.0 → 0.20.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.
Files changed (4) hide show
  1. package/README.md +6 -4
  2. package/dist/cli.mjs +72128 -52910
  3. package/dist/sdk.mjs +83085 -65657
  4. package/package.json +13 -14
package/README.md CHANGED
@@ -98,7 +98,7 @@ Inside OpenClaude:
98
98
  - run `/provider` for guided provider setup and saved profiles
99
99
  - run `/onboard-github` for GitHub Models onboarding
100
100
 
101
- > **Note:** OpenClaude does not automatically load project `.env` files. We recommend using the `/provider` command for setup, which securely stores credentials. If you prefer environment variables, export them explicitly or run `openclaude --provider-env-file .env` for provider/setup variables. Export runtime/debug knobs from your shell or launcher.
101
+ > **Note:** OpenClaude does not automatically load project `.env` files. We recommend using the `/provider` command for setup, which saves provider profiles and credentials in `.openclaude-profile.json`. If you prefer environment variables, export them explicitly or run `openclaude --provider-env-file .env` for provider/setup variables. Export runtime/debug knobs from your shell or launcher.
102
102
 
103
103
  ### Background sessions
104
104
 
@@ -188,6 +188,7 @@ Advanced and source-build guides:
188
188
  | Provider | Setup Path | Notes |
189
189
  | --- | --- | --- |
190
190
  | OpenAI-compatible | `/provider` or env vars | Works with OpenAI, OpenRouter, DeepSeek, Groq, Mistral, LM Studio, and other compatible `/v1` servers |
191
+ | Z.AI GLM Coding Plan | `/provider` or OpenAI-compatible env vars | Uses `OPENAI_API_KEY` at `https://api.z.ai/api/coding/paas/v4` and defaults to `glm-5.2` |
191
192
  | Hicap | `/provider` or OpenAI-compatible env vars | Uses `api-key` auth, discovers models from unauthenticated `/models`, and supports Responses mode for `gpt-` models |
192
193
  | Fireworks AI | `/provider` or env vars | First-class provider with 276 curated models (DeepSeek, Qwen, Llama, Gemma, and more); uses `FIREWORKS_API_KEY` |
193
194
  | Gemini | `/provider` or env vars | Supports API key only |
@@ -195,7 +196,7 @@ Advanced and source-build guides:
195
196
  | Codex OAuth | `/provider` | Opens ChatGPT sign-in in your browser and stores Codex credentials securely |
196
197
  | Codex | `/provider` | Uses existing Codex CLI auth, OpenClaude secure storage, or env credentials |
197
198
  | Gitlawb Opengateway | Startup default, `/provider`, or env vars | Smart gateway at `https://opengateway.gitlawb.com/v1`; requires an API key from https://gitlawb.com/opengateway/keys and routes Xiaomi MiMo and GMI Cloud partner models by `OPENAI_MODEL` |
198
- | OpenCode Zen | `/provider` or env vars | Pay-as-you-go AI gateway (43 models); uses `OPENCODE_API_KEY` via `https://opencode.ai/zen/v1`; shared key with OpenCode Go |
199
+ | OpenCode Zen | `/provider` or env vars | Pay-as-you-go AI gateway (48 models); uses `OPENCODE_API_KEY` via `https://opencode.ai/zen/v1`; shared key with OpenCode Go |
199
200
  | OpenCode Go | `/provider` or env vars | $10/mo subscription for open models (13 models); uses `OPENCODE_API_KEY` via `https://opencode.ai/zen/go/v1`; shared key with OpenCode Zen |
200
201
  | Xiaomi MiMo | `/provider` or env vars | OpenAI-compatible API at `https://mimo.mi.com`; uses `MIMO_API_KEY` and defaults to `mimo-v2.5-pro` |
201
202
  | NEAR AI | `/provider` or env vars | Unified gateway (Claude, GPT, Gemini + TEE open models); uses `NEARAI_API_KEY` at `https://cloud-api.near.ai/v1` |
@@ -221,6 +222,7 @@ OpenClaude supports multiple providers, but behavior is not identical across all
221
222
  - Smaller local models can struggle with long multi-step tool flows
222
223
  - Some providers impose lower output caps than the CLI defaults, and OpenClaude adapts where possible
223
224
  - Gitlawb Opengateway is the fresh-install startup default and requires an API key from https://gitlawb.com/opengateway/keys. It uses one OpenAI-compatible base URL; switch between `mimo-*` and `google/gemini-3.1-flash-lite-preview` with `/model`, and do not pin the base URL to `/v1/xiaomi-mimo`.
225
+ - Z.AI GLM Coding Plan uses `https://api.z.ai/api/coding/paas/v4` with `glm-5.2` by default. Use `glm-5.2?reasoning=high` for enhanced reasoning, `glm-5.2?reasoning=xhigh` to request Z.AI `reasoning_effort=max`, or `glm-5.2?thinking=disabled` for faster direct answers.
224
226
  - Xiaomi MiMo uses `api-key` header auth on the direct OpenAI-compatible route and currently does not support `/usage` reporting in OpenClaude
225
227
 
226
228
  ### GitHub Copilot sub-agent optimization
@@ -254,7 +256,7 @@ Add to `~/.openclaude.json`:
254
256
  "api_key": "sk-your-key"
255
257
  },
256
258
  "zai-default": {
257
- "model": "glm-5.1",
259
+ "model": "glm-5.2",
258
260
  "base_url": "https://api.z.ai/api/coding/paas/v4",
259
261
  "api_key": "sk-your-key"
260
262
  },
@@ -275,7 +277,7 @@ Add to `~/.openclaude.json`:
275
277
 
276
278
  When no routing match is found, the global provider remains the fallback.
277
279
 
278
- `agentRouting` values and explicit Agent tool `model` overrides match keys in `agentModels`. By default, that key is also the model string sent to the provider. Set `agentModels.<key>.model` when you want a local route key such as `zai-default` to call a different provider model name such as `glm-5.1`.
280
+ `agentRouting` values and explicit Agent tool `model` overrides match keys in `agentModels`. By default, that key is also the model string sent to the provider. Set `agentModels.<key>.model` when you want a local route key such as `zai-default` to call a different provider model name such as `glm-5.2`.
279
281
 
280
282
  > **Note:** `/provider` changes the global/parent provider for your current session. `agentModels` and `agentRouting` are specifically for configuring per-agent provider overrides while keeping the parent session unchanged.
281
283