setclaw 1.2.0 → 1.2.1

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 (2) hide show
  1. package/README.md +12 -73
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ Connect [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and [Facto
9
9
  [![npm version](https://img.shields.io/npm/v/setclaw?color=cb3837&label=npm&logo=npm&logoColor=white)](https://www.npmjs.com/package/setclaw)
10
10
  [![node](https://img.shields.io/node/v/setclaw?color=339933&logo=node.js&logoColor=white)](https://nodejs.org)
11
11
  [![license](https://img.shields.io/npm/l/setclaw?color=blue)](./LICENSE)
12
- [![platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwSj0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxyZWN0IHg9IjIiIHk9IjMiIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNCIgcng9IjIiLz48bGluZSB4MT0iOCIgeTE9IjIxIiB4Mj0iMTYiIHkyPSIyMSIvPjxsaW5lIHgxPSIxMiIgeTE9IjE3IiB4Mj0iMTIiIHkyPSIyMSIvPjwvc3ZnPg==)](https://www.npmjs.com/package/setclaw)
12
+ [![platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-lightgrey)](https://www.npmjs.com/package/setclaw)
13
13
 
14
14
  </div>
15
15
 
@@ -35,7 +35,7 @@ Connect [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and [Facto
35
35
  |:-:|:-----|:----|
36
36
  | 1 | **Node.js 18+** | [nodejs.org](https://nodejs.org) |
37
37
  | 2 | **Quatarly API key** | Format: `qua_trail_...` or `qua_...` |
38
- | 3 | **Factory AI** *(optional)* | See [Install Factory](#install-factory-ai-optional) below |
38
+ | 3 | **Factory AI** *(optional)* | See [Install Factory AI](#install-factory-ai-optional) below |
39
39
 
40
40
  ### Install & Configure
41
41
 
@@ -43,47 +43,26 @@ Connect [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and [Facto
43
43
  npx setclaw@latest
44
44
  ```
45
45
 
46
- That's it. It will prompt for your API key and configure everything in one shot.
47
-
48
- Want the `setclaw` command available globally for future use?
49
-
50
- ```bash
51
- npm i -g setclaw
52
- ```
53
-
54
- That's it. When you run `setclaw`, it will:
46
+ That's it. It will prompt for your API key and configure everything in one shot:
55
47
 
56
48
  ```
57
49
  setclaw — BOA & Quatarly setup for Claude Code & Factory
58
50
  ─────────────────────────────────────────────────
59
51
 
60
- > Adding models to Factory...
61
- ✔ Factory: 11 models added, 0 updated (11 total)
62
- ✔ Backup saved to ~/.factory/settings.json.backup
63
- > Setting Claude Code environment variables...
64
- ✔ Env vars written to Windows registry (HKCU\Environment).
65
-
66
- Environment variables set:
67
- ANTHROPIC_BASE_URL = https://api.quatarly.cloud/
68
- ANTHROPIC_AUTH_TOKEN = qua_trai...
69
- ANTHROPIC_DEFAULT_HAIKU_MODEL = claude-haiku-4-5-20251001
70
- ANTHROPIC_DEFAULT_SONNET_MODEL = claude-sonnet-4-6-20250929
71
- ANTHROPIC_DEFAULT_OPUS_MODEL = claude-opus-4-6-thinking
72
-
73
- ✔ All done! Restart your terminal, then launch Claude Code.
52
+ Enter your Quatarly API key: █
74
53
  ```
75
54
 
76
- You can also run without arguments to get an interactive prompt:
55
+ Or pass the key directly:
77
56
 
78
57
  ```bash
79
- setclaw
80
- # Enter your Quatarly API key: █
58
+ npx setclaw@latest <your-quatarly-api-key>
81
59
  ```
82
60
 
83
- ### Non-Interactive (CI / Scripts)
61
+ Want the `setclaw` command available globally for future use?
84
62
 
85
63
  ```bash
86
- QUATARLY_API_KEY=qua_trail_your-key setclaw
64
+ npm i -g setclaw
65
+ setclaw <your-quatarly-api-key>
87
66
  ```
88
67
 
89
68
  ---
@@ -128,13 +107,7 @@ irm https://app.factory.ai/cli/windows | iex
128
107
  curl -fsSL https://app.factory.ai/cli | sh
129
108
  ```
130
109
 
131
- Then create an account at [app.factory.ai](https://app.factory.ai), run `droid` once to generate `~/.factory/settings.json`, and re-run:
132
-
133
- ```bash
134
- npm i -g setclaw
135
- ```
136
-
137
- `setclaw` will detect the Factory config and inject all 11 models automatically.
110
+ Then create an account at [app.factory.ai](https://app.factory.ai), run `droid` once to generate `~/.factory/settings.json`, then run `setclaw` — it will detect the Factory config and inject all 11 models automatically.
138
111
 
139
112
  ---
140
113
 
@@ -179,46 +152,12 @@ npm i -g setclaw
179
152
 
180
153
  ---
181
154
 
182
- ## Manual Setup (Without setclaw)
183
-
184
- <details>
185
- <summary><b>macOS / Linux</b></summary>
186
-
187
- ```bash
188
- export ANTHROPIC_BASE_URL="https://api.quatarly.cloud/"
189
- export ANTHROPIC_AUTH_TOKEN="qua_trail_your-key-here"
190
- export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-4-5-20251001"
191
- export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-4-6-20250929"
192
- export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-4-6-thinking"
193
- ```
194
-
195
- Add these to `~/.zshrc` or `~/.bashrc` to persist.
196
-
197
- </details>
198
-
199
- <details>
200
- <summary><b>Windows (PowerShell)</b></summary>
201
-
202
- ```powershell
203
- $env:ANTHROPIC_BASE_URL = "https://api.quatarly.cloud/"
204
- $env:ANTHROPIC_AUTH_TOKEN = "qua_trail_your-key-here"
205
- $env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-haiku-4-5-20251001"
206
- $env:ANTHROPIC_DEFAULT_SONNET_MODEL = "claude-sonnet-4-6-20250929"
207
- $env:ANTHROPIC_DEFAULT_OPUS_MODEL = "claude-opus-4-6-thinking"
208
- ```
209
-
210
- To persist, use `[System.Environment]::SetEnvironmentVariable("VAR", "value", "User")` for each.
211
-
212
- </details>
213
-
214
- ---
215
-
216
155
  ## FAQ
217
156
 
218
157
  <details>
219
158
  <summary><b>Can I run it again with a different API key?</b></summary>
220
159
 
221
- Yes. Just run `setclaw <new-key>` again — it updates existing models and env vars without creating duplicates. A backup of your Factory settings is saved before any changes.
160
+ Yes. Just run `npx setclaw@latest <new-key>` again — it updates existing models and env vars without creating duplicates. A backup of your Factory settings is saved before any changes.
222
161
 
223
162
  </details>
224
163
 
@@ -243,7 +182,7 @@ No. Claude Code routes through Quatarly — you only need a Quatarly API key.
243
182
  npm uninstall -g setclaw
244
183
  ```
245
184
 
246
- This removes the package. To also remove the env vars:
185
+ To also remove the env vars:
247
186
  - **Windows:** Delete from `HKCU\Environment` via System Properties > Environment Variables
248
187
  - **macOS/Linux:** Remove the `# --- Quatarly / Claude Code env ---` block from `~/.bashrc` / `~/.zshrc`
249
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setclaw",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "BOA & Quatarly setup for Claude Code and Factory",
5
5
  "type": "module",
6
6
  "bin": {