@rayss-dev/openclaude 0.33.3-by-rayss → 0.34.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/dist/acp.mjs +705 -433
- package/dist/cli.mjs +52 -51
- package/dist/sdk.mjs +681 -387
- package/docs/settings-reference.md +150 -162
- package/docs/windows-aliases-and-launchers.md +162 -162
- package/package.json +2 -1
|
@@ -1,163 +1,151 @@
|
|
|
1
|
-
# Settings reference
|
|
2
|
-
|
|
3
|
-
This page documents how to configure OpenClaude via `settings.json`, with an emphasis on the settings that are specific to the by-rayss builds. It is not an exhaustive list — the full, validated settings schema is available at [`config/settings-schema.json`](../config/settings-schema.json) and is linked from the settings file itself via `$schema`.
|
|
4
|
-
|
|
5
|
-
## Where settings live
|
|
6
|
-
|
|
7
|
-
| Scope | Path |
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| User (global) | `~/.openclaude/settings.json` |
|
|
10
|
-
| Project | `.openclaude/settings.json` (or `.openclaude/settings.local.json`) |
|
|
11
|
-
| Enterprise / managed | `managed-settings.json` (policy-controlled, highest precedence) |
|
|
12
|
-
|
|
13
|
-
On first launch the CLI copies [`config/defaults/settings.json`](../config/defaults/settings.json) from the package to `~/.openclaude/settings.json` if it does not already exist, so new installs start with the built-in recommendations below and existing installs are never overwritten.
|
|
14
|
-
|
|
15
|
-
## Editor autocomplete
|
|
16
|
-
|
|
17
|
-
The settings file starts with a `$schema` key, which most JSON editors (VS Code, IntelliJ, Zed, etc.) use to provide autocomplete, descriptions, and validation:
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"$schema": "https://raw.githubusercontent.com/rayss868/openclaude/main/config/settings-schema.json"
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The schema is generated from the settings validation code and kept in sync via `bun run scripts/generate-settings-schema.ts` (use `--check` to verify it is current, e.g. in CI).
|
|
26
|
-
|
|
27
|
-
## Settings specific to the by-rayss builds
|
|
28
|
-
|
|
29
|
-
These settings are either new in this fork or behave differently from stock Claude Code / upstream OpenClaude.
|
|
30
|
-
|
|
31
|
-
### `verificationAgent` (boolean)
|
|
32
|
-
|
|
33
|
-
Enable the built-in verification agent that double-checks completed implementation work. It is **enabled by default** in the by-rayss defaults. Set to `false` to disable it. Takes effect on the next session.
|
|
34
|
-
|
|
35
|
-
```json
|
|
36
|
-
{
|
|
37
|
-
"verificationAgent": false
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### `smartRouting` (object)
|
|
42
|
-
|
|
43
|
-
Opt-in per-turn "simple vs strong" model routing. Off by default. See [`docs/smart-routing.md`](smart-routing.md) for the full guide.
|
|
44
|
-
|
|
45
|
-
```json
|
|
46
|
-
{
|
|
47
|
-
"agentModels": {
|
|
48
|
-
"mini": { "model": "gpt-5-mini" },
|
|
49
|
-
"main": { "model": "gpt-5" }
|
|
50
|
-
},
|
|
51
|
-
"smartRouting": {
|
|
52
|
-
"enabled": true,
|
|
53
|
-
"simpleModel": "mini",
|
|
54
|
-
"strongModel": "main"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Optional tuning fields: `simpleMaxChars`, `simpleMaxWords`.
|
|
60
|
-
|
|
61
|
-
### `maxContextWindow` (number)
|
|
62
|
-
|
|
63
|
-
Global override for the max context window in tokens, applied to all models. This is an explicit override: it wins over env vars, the catalog/discovery cache, and descriptor defaults, and can raise or lower the effective limit. If unset, the normal resolution chain applies.
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"maxContextWindow": 1048576
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### `modelLimits` (object)
|
|
72
|
-
|
|
73
|
-
Per-model overrides for `contextWindow` and `maxOutputTokens`. Used for OpenAI-compatible models whose limits are not in the built-in catalog. Keys match the model name (exact match preferred, then prefix). `CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS` / `CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS` take precedence over these.
|
|
74
|
-
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"modelLimits": {
|
|
78
|
-
"qwen3.6-plus": { "contextWindow": 1048576, "maxOutputTokens": 32768 }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### `
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
These behave as in stock configuration but are worth knowing about:
|
|
153
|
-
|
|
154
|
-
- `model` — the model to use, per provider profile.
|
|
155
|
-
- `permissions` — `allow` / `deny` / `ask` rules, `defaultMode`, `additionalDirectories`.
|
|
156
|
-
- `defaultMode` can be `default`, `plan`, `acceptEdits`, `dontAsk`, `bypassPermissions`, or `fullAccess`. Both `Bypass Permissions` and `Full Access` are selectable directly in the `/config` permission picker. Runtime still enforces org policy and `disableBypassPermissionsMode`.
|
|
157
|
-
- `hooks` — lifecycle hooks (PreToolUse, PostToolUse, Stop, etc.); see `docs/hooks.md`.
|
|
158
|
-
- `env` — environment variables to set for your session.
|
|
159
|
-
- `includeCoAuthoredBy` / `git.addAICoAuthor` / `git.addGeneratedWithFooter` — legacy and current git attribution opt-ins. Attribution for this fork uses `openclaude@rayss868.com`.
|
|
160
|
-
|
|
161
|
-
## Validation
|
|
162
|
-
|
|
1
|
+
# Settings reference
|
|
2
|
+
|
|
3
|
+
This page documents how to configure OpenClaude via `settings.json`, with an emphasis on the settings that are specific to the by-rayss builds. It is not an exhaustive list — the full, validated settings schema is available at [`config/settings-schema.json`](../config/settings-schema.json) and is linked from the settings file itself via `$schema`.
|
|
4
|
+
|
|
5
|
+
## Where settings live
|
|
6
|
+
|
|
7
|
+
| Scope | Path |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| User (global) | `~/.openclaude/settings.json` |
|
|
10
|
+
| Project | `.openclaude/settings.json` (or `.openclaude/settings.local.json`) |
|
|
11
|
+
| Enterprise / managed | `managed-settings.json` (policy-controlled, highest precedence) |
|
|
12
|
+
|
|
13
|
+
On first launch the CLI copies [`config/defaults/settings.json`](../config/defaults/settings.json) from the package to `~/.openclaude/settings.json` if it does not already exist, so new installs start with the built-in recommendations below and existing installs are never overwritten.
|
|
14
|
+
|
|
15
|
+
## Editor autocomplete
|
|
16
|
+
|
|
17
|
+
The settings file starts with a `$schema` key, which most JSON editors (VS Code, IntelliJ, Zed, etc.) use to provide autocomplete, descriptions, and validation:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"$schema": "https://raw.githubusercontent.com/rayss868/openclaude/main/config/settings-schema.json"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The schema is generated from the settings validation code and kept in sync via `bun run scripts/generate-settings-schema.ts` (use `--check` to verify it is current, e.g. in CI).
|
|
26
|
+
|
|
27
|
+
## Settings specific to the by-rayss builds
|
|
28
|
+
|
|
29
|
+
These settings are either new in this fork or behave differently from stock Claude Code / upstream OpenClaude.
|
|
30
|
+
|
|
31
|
+
### `verificationAgent` (boolean)
|
|
32
|
+
|
|
33
|
+
Enable the built-in verification agent that double-checks completed implementation work. It is **enabled by default** in the by-rayss defaults. Set to `false` to disable it. Takes effect on the next session.
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"verificationAgent": false
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### `smartRouting` (object)
|
|
42
|
+
|
|
43
|
+
Opt-in per-turn "simple vs strong" model routing. Off by default. See [`docs/smart-routing.md`](smart-routing.md) for the full guide.
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"agentModels": {
|
|
48
|
+
"mini": { "model": "gpt-5-mini" },
|
|
49
|
+
"main": { "model": "gpt-5" }
|
|
50
|
+
},
|
|
51
|
+
"smartRouting": {
|
|
52
|
+
"enabled": true,
|
|
53
|
+
"simpleModel": "mini",
|
|
54
|
+
"strongModel": "main"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Optional tuning fields: `simpleMaxChars`, `simpleMaxWords`.
|
|
60
|
+
|
|
61
|
+
### `maxContextWindow` (number)
|
|
62
|
+
|
|
63
|
+
Global override for the max context window in tokens, applied to all models. This is an explicit override: it wins over env vars, the catalog/discovery cache, and descriptor defaults, and can raise or lower the effective limit. If unset, the normal resolution chain applies.
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"maxContextWindow": 1048576
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### `modelLimits` (object)
|
|
72
|
+
|
|
73
|
+
Per-model overrides for `contextWindow` and `maxOutputTokens`. Used for OpenAI-compatible models whose limits are not in the built-in catalog. Keys match the model name (exact match preferred, then prefix). `CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS` / `CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS` take precedence over these.
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"modelLimits": {
|
|
78
|
+
"qwen3.6-plus": { "contextWindow": 1048576, "maxOutputTokens": 32768 }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### `apiRetry` (object)
|
|
84
|
+
|
|
85
|
+
Network retry policy for transient errors (rate limits `429`, capacity `529`, `5xx`, and brief network failure). Use it to control both how many times a `429` is retried and how long to wait between attempts. Both sub-fields can also be edited interactively from `/config`.
|
|
86
|
+
|
|
87
|
+
- `maxRetries`: number of retry attempts, `0` to never retry, or `"unlimited"` to keep retrying until the request succeeds (or you cancel). Default is `10` when unset.
|
|
88
|
+
- `delayMs`: fixed milliseconds to wait between retries, e.g. `5000` for 5 seconds, or `0` to retry immediately. When set, it replaces the default exponential backoff. A server-provided `Retry-After` longer than this is still honored.
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"apiRetry": {
|
|
93
|
+
"maxRetries": "unlimited",
|
|
94
|
+
"delayMs": 5000
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
The `OPENCLAUDE_MAX_RETRIES` / `OPENCLAUDE_RETRY_DELAY_MS` env vars are used only when the corresponding config field is unset.
|
|
100
|
+
|
|
101
|
+
Every retry drops the pooled connection and reconnects fresh — keep-alive is disabled and a new client is created, so a retry never reuses the connection that just failed.
|
|
102
|
+
|
|
103
|
+
### `fastMode` (boolean)
|
|
104
|
+
|
|
105
|
+
Fast mode for the CLI (same model family, faster output). Off when absent or `false`.
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"fastMode": true
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### `fastModePerSessionOptIn` (boolean)
|
|
114
|
+
|
|
115
|
+
When `true`, fast mode does not persist across sessions — each session starts with fast mode off.
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"fastMode": true,
|
|
120
|
+
"fastModePerSessionOptIn": true
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### `providerProfileModelPickerMode` (enum: `auto` | `profile` | `provider`)
|
|
125
|
+
|
|
126
|
+
Controls what `/model` shows when an active provider profile is applied. `auto` (the default in by-rayss builds) uses profile mode when the profile has multiple explicitly configured models, otherwise provider mode.
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"providerProfileModelPickerMode": "auto"
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### `autoCompactEnabled` (boolean)
|
|
135
|
+
|
|
136
|
+
Controls whether auto-compact is on. This is a **global config** key (stored in `globalConfig.json`, toggled from the settings UI or `/config`), not a `settings.json` schema field — it is listed in the shipped defaults so new installs start with auto-compact enabled.
|
|
137
|
+
|
|
138
|
+
## Other common settings
|
|
139
|
+
|
|
140
|
+
These behave as in stock configuration but are worth knowing about:
|
|
141
|
+
|
|
142
|
+
- `model` — the model to use, per provider profile.
|
|
143
|
+
- `permissions` — `allow` / `deny` / `ask` rules, `defaultMode`, `additionalDirectories`.
|
|
144
|
+
- `defaultMode` can be `default`, `plan`, `acceptEdits`, `dontAsk`, `bypassPermissions`, or `fullAccess`. Both `Bypass Permissions` and `Full Access` are selectable directly in the `/config` permission picker. Runtime still enforces org policy and `disableBypassPermissionsMode`.
|
|
145
|
+
- `hooks` — lifecycle hooks (PreToolUse, PostToolUse, Stop, etc.); see `docs/hooks.md`.
|
|
146
|
+
- `env` — environment variables to set for your session.
|
|
147
|
+
- `includeCoAuthoredBy` / `git.addAICoAuthor` / `git.addGeneratedWithFooter` — legacy and current git attribution opt-ins. Attribution for this fork uses `openclaude@rayss868.com`.
|
|
148
|
+
|
|
149
|
+
## Validation
|
|
150
|
+
|
|
163
151
|
Settings are validated against the same schema used for editor autocomplete. A single invalid key does not reject the whole file unless it is a known key with a wrong value; unknown keys are preserved. If you see a parse error in the CLI, run `bun run doctor:runtime` for diagnostics or check the JSON against `config/settings-schema.json`.
|
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
# Windows aliases and launchers
|
|
2
|
-
|
|
3
|
-
This page documents optional PowerShell helper functions for launching OpenClaude on Windows after a global npm install.
|
|
4
|
-
|
|
5
|
-
These helpers are designed for the installed package workflow:
|
|
6
|
-
|
|
7
|
-
~~~powershell
|
|
8
|
-
npm install -g @rayss-dev/openclaude
|
|
9
|
-
~~~
|
|
10
|
-
|
|
11
|
-
The helpers use the installed `openclaude` CLI command. They do not require a source checkout and do not call source-only `bun run scripts/*.ts` entrypoints.
|
|
12
|
-
|
|
13
|
-
## One-time setup
|
|
14
|
-
|
|
15
|
-
Run this once in PowerShell:
|
|
16
|
-
|
|
17
|
-
~~~powershell
|
|
18
|
-
$packageRoot = Join-Path (npm root -g) "@rayss-dev/openclaude"
|
|
19
|
-
$aliases = Join-Path $packageRoot "scripts\windows\openclaude-aliases.ps1"
|
|
20
|
-
|
|
21
|
-
if (-not (Test-Path $aliases)) {
|
|
22
|
-
throw "Alias script not found at $aliases. Update or reinstall @rayss-dev/openclaude."
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (-not (Test-Path $PROFILE)) {
|
|
26
|
-
New-Item -ItemType File -Path $PROFILE -Force | Out-Null
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
$profileLine = ". `"$aliases`""
|
|
30
|
-
|
|
31
|
-
if (-not (Select-String -Path $PROFILE -Pattern ([regex]::Escape($profileLine)) -Quiet)) {
|
|
32
|
-
Add-Content -Path $PROFILE -Value "`n$profileLine"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
. $aliases
|
|
36
|
-
oc-help
|
|
37
|
-
~~~
|
|
38
|
-
|
|
39
|
-
Open a new PowerShell window after setup, or dot-source the profile:
|
|
40
|
-
|
|
41
|
-
~~~powershell
|
|
42
|
-
. $PROFILE
|
|
43
|
-
~~~
|
|
44
|
-
|
|
45
|
-
## Daily commands
|
|
46
|
-
|
|
47
|
-
### Launch OpenClaude using the installed CLI
|
|
48
|
-
|
|
49
|
-
~~~powershell
|
|
50
|
-
oc
|
|
51
|
-
~~~
|
|
52
|
-
|
|
53
|
-
You can pass normal CLI arguments through `oc`:
|
|
54
|
-
|
|
55
|
-
~~~powershell
|
|
56
|
-
oc --version
|
|
57
|
-
oc --help
|
|
58
|
-
~~~
|
|
59
|
-
|
|
60
|
-
### Launch with local Ollama/OpenAI-compatible environment hints
|
|
61
|
-
|
|
62
|
-
~~~powershell
|
|
63
|
-
oc-local
|
|
64
|
-
~~~
|
|
65
|
-
|
|
66
|
-
By default, this uses local Ollama through the OpenAI-compatible API:
|
|
67
|
-
|
|
68
|
-
~~~text
|
|
69
|
-
CLAUDE_CODE_USE_OPENAI=1
|
|
70
|
-
OPENAI_BASE_URL=http://localhost:11434/v1
|
|
71
|
-
OPENAI_MODEL=llama3.1:8b
|
|
72
|
-
~~~
|
|
73
|
-
|
|
74
|
-
To use a different local model for that invocation:
|
|
75
|
-
|
|
76
|
-
~~~powershell
|
|
77
|
-
oc-local -Model "qwen2.5-coder:7b"
|
|
78
|
-
~~~
|
|
79
|
-
|
|
80
|
-
The environment overrides are scoped to that single `openclaude` invocation. A later plain `oc` call returns to normal installed CLI behavior and saved-provider-profile behavior.
|
|
81
|
-
|
|
82
|
-
### Launch with low-latency local defaults
|
|
83
|
-
|
|
84
|
-
~~~powershell
|
|
85
|
-
oc-fast
|
|
86
|
-
~~~
|
|
87
|
-
|
|
88
|
-
To use a different model:
|
|
89
|
-
|
|
90
|
-
~~~powershell
|
|
91
|
-
oc-fast -Model "qwen2.5-coder:7b"
|
|
92
|
-
~~~
|
|
93
|
-
|
|
94
|
-
Like `oc-local`, the environment overrides are scoped to that single invocation.
|
|
95
|
-
|
|
96
|
-
### Open the provider manager
|
|
97
|
-
|
|
98
|
-
~~~powershell
|
|
99
|
-
oc-provider
|
|
100
|
-
~~~
|
|
101
|
-
|
|
102
|
-
This opens the provider manager through the installed OpenClaude CLI.
|
|
103
|
-
|
|
104
|
-
### Check local Ollama state
|
|
105
|
-
|
|
106
|
-
~~~powershell
|
|
107
|
-
oc-check
|
|
108
|
-
~~~
|
|
109
|
-
|
|
110
|
-
To check a specific model:
|
|
111
|
-
|
|
112
|
-
~~~powershell
|
|
113
|
-
oc-check -Model "qwen2.5-coder:7b"
|
|
114
|
-
~~~
|
|
115
|
-
|
|
116
|
-
### Pull/check a local model, then launch local mode
|
|
117
|
-
|
|
118
|
-
~~~powershell
|
|
119
|
-
oc-init
|
|
120
|
-
~~~
|
|
121
|
-
|
|
122
|
-
To choose a model:
|
|
123
|
-
|
|
124
|
-
~~~powershell
|
|
125
|
-
oc-init -Model "qwen2.5-coder:7b"
|
|
126
|
-
~~~
|
|
127
|
-
|
|
128
|
-
To skip pulling the model and only check/launch:
|
|
129
|
-
|
|
130
|
-
~~~powershell
|
|
131
|
-
oc-init -Model "qwen2.5-coder:7b" -SkipModelPull
|
|
132
|
-
~~~
|
|
133
|
-
|
|
134
|
-
`oc-init` does not save a provider profile. It pulls/checks the local Ollama model and then launches `oc-local`.
|
|
135
|
-
|
|
136
|
-
### Show quick help
|
|
137
|
-
|
|
138
|
-
~~~powershell
|
|
139
|
-
oc-help
|
|
140
|
-
~~~
|
|
141
|
-
|
|
142
|
-
## Command summary
|
|
143
|
-
|
|
144
|
-
| Command | Purpose |
|
|
145
|
-
| --- | --- |
|
|
146
|
-
| `oc` | Launch OpenClaude using the installed CLI and saved/default behavior |
|
|
147
|
-
| `oc-local` | Launch once with local Ollama/OpenAI-compatible environment hints |
|
|
148
|
-
| `oc-fast` | Launch once with local Ollama/OpenAI-compatible low-latency hints |
|
|
149
|
-
| `oc-provider` | Open the provider manager |
|
|
150
|
-
| `oc-check` | Show local Ollama install/listening/model state |
|
|
151
|
-
| `oc-init` | Pull/check a local Ollama model, then launch local mode |
|
|
152
|
-
| `oc-help` | Show quick command help |
|
|
153
|
-
|
|
154
|
-
## Notes
|
|
155
|
-
|
|
156
|
-
These helpers are intentionally global-install oriented. They use the installed CLI instead of source-checkout development scripts.
|
|
157
|
-
|
|
158
|
-
For advanced provider setup, use the built-in provider manager:
|
|
159
|
-
|
|
160
|
-
~~~powershell
|
|
161
|
-
oc-provider
|
|
162
|
-
~~~
|
|
1
|
+
# Windows aliases and launchers
|
|
2
|
+
|
|
3
|
+
This page documents optional PowerShell helper functions for launching OpenClaude on Windows after a global npm install.
|
|
4
|
+
|
|
5
|
+
These helpers are designed for the installed package workflow:
|
|
6
|
+
|
|
7
|
+
~~~powershell
|
|
8
|
+
npm install -g @rayss-dev/openclaude
|
|
9
|
+
~~~
|
|
10
|
+
|
|
11
|
+
The helpers use the installed `openclaude` CLI command. They do not require a source checkout and do not call source-only `bun run scripts/*.ts` entrypoints.
|
|
12
|
+
|
|
13
|
+
## One-time setup
|
|
14
|
+
|
|
15
|
+
Run this once in PowerShell:
|
|
16
|
+
|
|
17
|
+
~~~powershell
|
|
18
|
+
$packageRoot = Join-Path (npm root -g) "@rayss-dev/openclaude"
|
|
19
|
+
$aliases = Join-Path $packageRoot "scripts\windows\openclaude-aliases.ps1"
|
|
20
|
+
|
|
21
|
+
if (-not (Test-Path $aliases)) {
|
|
22
|
+
throw "Alias script not found at $aliases. Update or reinstall @rayss-dev/openclaude."
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (-not (Test-Path $PROFILE)) {
|
|
26
|
+
New-Item -ItemType File -Path $PROFILE -Force | Out-Null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
$profileLine = ". `"$aliases`""
|
|
30
|
+
|
|
31
|
+
if (-not (Select-String -Path $PROFILE -Pattern ([regex]::Escape($profileLine)) -Quiet)) {
|
|
32
|
+
Add-Content -Path $PROFILE -Value "`n$profileLine"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
. $aliases
|
|
36
|
+
oc-help
|
|
37
|
+
~~~
|
|
38
|
+
|
|
39
|
+
Open a new PowerShell window after setup, or dot-source the profile:
|
|
40
|
+
|
|
41
|
+
~~~powershell
|
|
42
|
+
. $PROFILE
|
|
43
|
+
~~~
|
|
44
|
+
|
|
45
|
+
## Daily commands
|
|
46
|
+
|
|
47
|
+
### Launch OpenClaude using the installed CLI
|
|
48
|
+
|
|
49
|
+
~~~powershell
|
|
50
|
+
oc
|
|
51
|
+
~~~
|
|
52
|
+
|
|
53
|
+
You can pass normal CLI arguments through `oc`:
|
|
54
|
+
|
|
55
|
+
~~~powershell
|
|
56
|
+
oc --version
|
|
57
|
+
oc --help
|
|
58
|
+
~~~
|
|
59
|
+
|
|
60
|
+
### Launch with local Ollama/OpenAI-compatible environment hints
|
|
61
|
+
|
|
62
|
+
~~~powershell
|
|
63
|
+
oc-local
|
|
64
|
+
~~~
|
|
65
|
+
|
|
66
|
+
By default, this uses local Ollama through the OpenAI-compatible API:
|
|
67
|
+
|
|
68
|
+
~~~text
|
|
69
|
+
CLAUDE_CODE_USE_OPENAI=1
|
|
70
|
+
OPENAI_BASE_URL=http://localhost:11434/v1
|
|
71
|
+
OPENAI_MODEL=llama3.1:8b
|
|
72
|
+
~~~
|
|
73
|
+
|
|
74
|
+
To use a different local model for that invocation:
|
|
75
|
+
|
|
76
|
+
~~~powershell
|
|
77
|
+
oc-local -Model "qwen2.5-coder:7b"
|
|
78
|
+
~~~
|
|
79
|
+
|
|
80
|
+
The environment overrides are scoped to that single `openclaude` invocation. A later plain `oc` call returns to normal installed CLI behavior and saved-provider-profile behavior.
|
|
81
|
+
|
|
82
|
+
### Launch with low-latency local defaults
|
|
83
|
+
|
|
84
|
+
~~~powershell
|
|
85
|
+
oc-fast
|
|
86
|
+
~~~
|
|
87
|
+
|
|
88
|
+
To use a different model:
|
|
89
|
+
|
|
90
|
+
~~~powershell
|
|
91
|
+
oc-fast -Model "qwen2.5-coder:7b"
|
|
92
|
+
~~~
|
|
93
|
+
|
|
94
|
+
Like `oc-local`, the environment overrides are scoped to that single invocation.
|
|
95
|
+
|
|
96
|
+
### Open the provider manager
|
|
97
|
+
|
|
98
|
+
~~~powershell
|
|
99
|
+
oc-provider
|
|
100
|
+
~~~
|
|
101
|
+
|
|
102
|
+
This opens the provider manager through the installed OpenClaude CLI.
|
|
103
|
+
|
|
104
|
+
### Check local Ollama state
|
|
105
|
+
|
|
106
|
+
~~~powershell
|
|
107
|
+
oc-check
|
|
108
|
+
~~~
|
|
109
|
+
|
|
110
|
+
To check a specific model:
|
|
111
|
+
|
|
112
|
+
~~~powershell
|
|
113
|
+
oc-check -Model "qwen2.5-coder:7b"
|
|
114
|
+
~~~
|
|
115
|
+
|
|
116
|
+
### Pull/check a local model, then launch local mode
|
|
117
|
+
|
|
118
|
+
~~~powershell
|
|
119
|
+
oc-init
|
|
120
|
+
~~~
|
|
121
|
+
|
|
122
|
+
To choose a model:
|
|
123
|
+
|
|
124
|
+
~~~powershell
|
|
125
|
+
oc-init -Model "qwen2.5-coder:7b"
|
|
126
|
+
~~~
|
|
127
|
+
|
|
128
|
+
To skip pulling the model and only check/launch:
|
|
129
|
+
|
|
130
|
+
~~~powershell
|
|
131
|
+
oc-init -Model "qwen2.5-coder:7b" -SkipModelPull
|
|
132
|
+
~~~
|
|
133
|
+
|
|
134
|
+
`oc-init` does not save a provider profile. It pulls/checks the local Ollama model and then launches `oc-local`.
|
|
135
|
+
|
|
136
|
+
### Show quick help
|
|
137
|
+
|
|
138
|
+
~~~powershell
|
|
139
|
+
oc-help
|
|
140
|
+
~~~
|
|
141
|
+
|
|
142
|
+
## Command summary
|
|
143
|
+
|
|
144
|
+
| Command | Purpose |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `oc` | Launch OpenClaude using the installed CLI and saved/default behavior |
|
|
147
|
+
| `oc-local` | Launch once with local Ollama/OpenAI-compatible environment hints |
|
|
148
|
+
| `oc-fast` | Launch once with local Ollama/OpenAI-compatible low-latency hints |
|
|
149
|
+
| `oc-provider` | Open the provider manager |
|
|
150
|
+
| `oc-check` | Show local Ollama install/listening/model state |
|
|
151
|
+
| `oc-init` | Pull/check a local Ollama model, then launch local mode |
|
|
152
|
+
| `oc-help` | Show quick command help |
|
|
153
|
+
|
|
154
|
+
## Notes
|
|
155
|
+
|
|
156
|
+
These helpers are intentionally global-install oriented. They use the installed CLI instead of source-checkout development scripts.
|
|
157
|
+
|
|
158
|
+
For advanced provider setup, use the built-in provider manager:
|
|
159
|
+
|
|
160
|
+
~~~powershell
|
|
161
|
+
oc-provider
|
|
162
|
+
~~~
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rayss-dev/openclaude",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "OpenClaude opens coding-agent workflows to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"test:coverage:ui": "bun run scripts/render-coverage-heatmap.ts",
|
|
72
72
|
"security:pr-scan": "bun run scripts/pr-intent-scan.ts",
|
|
73
73
|
"test:provider-recommendation": "bun test src/utils/providerRecommendation.test.ts src/utils/providerProfile.test.ts",
|
|
74
|
+
"test:node-options-parity": "bun run scripts/check-node-options-parity.ts",
|
|
74
75
|
"typecheck": "tsc --noEmit",
|
|
75
76
|
"typecheck:type-tests": "bun run scripts/typecheck-type-tests.ts",
|
|
76
77
|
"smoke": "bun run build && node dist/cli.mjs --version",
|