claudish 1.3.1 → 1.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/dist/index.js +17 -7
- package/package.json +20 -20
- package/scripts/postinstall.cjs +0 -0
package/dist/index.js
CHANGED
|
@@ -56,7 +56,9 @@ var ENV = {
|
|
|
56
56
|
OPENROUTER_API_KEY: "OPENROUTER_API_KEY",
|
|
57
57
|
CLAUDISH_MODEL: "CLAUDISH_MODEL",
|
|
58
58
|
CLAUDISH_PORT: "CLAUDISH_PORT",
|
|
59
|
-
CLAUDISH_ACTIVE_MODEL_NAME: "CLAUDISH_ACTIVE_MODEL_NAME"
|
|
59
|
+
CLAUDISH_ACTIVE_MODEL_NAME: "CLAUDISH_ACTIVE_MODEL_NAME",
|
|
60
|
+
ANTHROPIC_MODEL: "ANTHROPIC_MODEL",
|
|
61
|
+
ANTHROPIC_SMALL_FAST_MODEL: "ANTHROPIC_SMALL_FAST_MODEL"
|
|
60
62
|
};
|
|
61
63
|
|
|
62
64
|
// src/claude-runner.ts
|
|
@@ -121,7 +123,9 @@ async function runClaudeWithProxy(config, proxyUrl) {
|
|
|
121
123
|
const env = {
|
|
122
124
|
...process.env,
|
|
123
125
|
ANTHROPIC_BASE_URL: proxyUrl,
|
|
124
|
-
[ENV.CLAUDISH_ACTIVE_MODEL_NAME]: modelId
|
|
126
|
+
[ENV.CLAUDISH_ACTIVE_MODEL_NAME]: modelId,
|
|
127
|
+
[ENV.ANTHROPIC_MODEL]: modelId,
|
|
128
|
+
[ENV.ANTHROPIC_SMALL_FAST_MODEL]: modelId
|
|
125
129
|
};
|
|
126
130
|
if (config.monitor) {
|
|
127
131
|
delete env.ANTHROPIC_API_KEY;
|
|
@@ -216,9 +220,12 @@ function parseArgs(args) {
|
|
|
216
220
|
stdin: false,
|
|
217
221
|
claudeArgs: []
|
|
218
222
|
};
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
const claudishModel = process.env[ENV.CLAUDISH_MODEL];
|
|
224
|
+
const anthropicModel = process.env[ENV.ANTHROPIC_MODEL];
|
|
225
|
+
if (claudishModel) {
|
|
226
|
+
config.model = claudishModel;
|
|
227
|
+
} else if (anthropicModel) {
|
|
228
|
+
config.model = anthropicModel;
|
|
222
229
|
}
|
|
223
230
|
const envPort = process.env[ENV.CLAUDISH_PORT];
|
|
224
231
|
if (envPort) {
|
|
@@ -340,7 +347,7 @@ function parseArgs(args) {
|
|
|
340
347
|
return config;
|
|
341
348
|
}
|
|
342
349
|
function printVersion() {
|
|
343
|
-
console.log("claudish version 1.3.
|
|
350
|
+
console.log("claudish version 1.3.1");
|
|
344
351
|
}
|
|
345
352
|
function printHelp() {
|
|
346
353
|
console.log(`
|
|
@@ -382,7 +389,9 @@ NOTES:
|
|
|
382
389
|
|
|
383
390
|
ENVIRONMENT VARIABLES:
|
|
384
391
|
OPENROUTER_API_KEY Required: Your OpenRouter API key
|
|
385
|
-
CLAUDISH_MODEL Default model to use
|
|
392
|
+
CLAUDISH_MODEL Default model to use (takes priority)
|
|
393
|
+
ANTHROPIC_MODEL Claude Code standard: model to use (fallback if CLAUDISH_MODEL not set)
|
|
394
|
+
ANTHROPIC_SMALL_FAST_MODEL Claude Code standard: fast model (auto-set by claudish)
|
|
386
395
|
CLAUDISH_PORT Default port for proxy
|
|
387
396
|
CLAUDISH_ACTIVE_MODEL_NAME Auto-set by claudish (read-only) - shows active model in status line
|
|
388
397
|
|
|
@@ -445,6 +454,7 @@ Available OpenRouter Models (in priority order):
|
|
|
445
454
|
console.log("");
|
|
446
455
|
}
|
|
447
456
|
console.log("Set default with: export CLAUDISH_MODEL=<model>");
|
|
457
|
+
console.log(" or: export ANTHROPIC_MODEL=<model>");
|
|
448
458
|
console.log(`Or use: claudish --model <model> ...
|
|
449
459
|
`);
|
|
450
460
|
}
|
package/package.json
CHANGED
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "CLI tool to run Claude Code with any OpenRouter model (Grok, GPT-5, MiniMax, etc.) via local Anthropic API-compatible proxy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"claudish": "dist/index.js"
|
|
9
9
|
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "bun run src/index.ts",
|
|
12
|
-
"dev:grok": "bun run src/index.ts --interactive --model x-ai/grok-code-fast-1",
|
|
13
|
-
"dev:grok:debug": "bun run src/index.ts --interactive --debug --log-level info --model x-ai/grok-code-fast-1",
|
|
14
|
-
"dev:info": "bun run src/index.ts --interactive --monitor",
|
|
15
|
-
"build": "bun build src/index.ts --outdir dist --target node && chmod +x dist/index.js",
|
|
16
|
-
"link": "npm link",
|
|
17
|
-
"unlink": "npm unlink -g claudish",
|
|
18
|
-
"install-global": "bun run build && npm link",
|
|
19
|
-
"kill-all": "pkill -f 'bun.*claudish' || pkill -f 'claude.*claudish-settings' || echo 'No claudish processes found'",
|
|
20
|
-
"test": "bun test ./tests/comprehensive-model-test.ts",
|
|
21
|
-
"typecheck": "tsc --noEmit",
|
|
22
|
-
"lint": "biome check .",
|
|
23
|
-
"format": "biome format --write .",
|
|
24
|
-
"install": "bun run build && bun link",
|
|
25
|
-
"postinstall": "node scripts/postinstall.cjs"
|
|
26
|
-
},
|
|
27
10
|
"dependencies": {
|
|
28
11
|
"hono": "^4.9.0",
|
|
29
12
|
"@hono/node-server": "^1.13.7"
|
|
@@ -51,5 +34,22 @@
|
|
|
51
34
|
"ai"
|
|
52
35
|
],
|
|
53
36
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
54
|
-
"license": "MIT"
|
|
55
|
-
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dev": "bun run src/index.ts",
|
|
40
|
+
"dev:grok": "bun run src/index.ts --interactive --model x-ai/grok-code-fast-1",
|
|
41
|
+
"dev:grok:debug": "bun run src/index.ts --interactive --debug --log-level info --model x-ai/grok-code-fast-1",
|
|
42
|
+
"dev:info": "bun run src/index.ts --interactive --monitor",
|
|
43
|
+
"build": "bun build src/index.ts --outdir dist --target node && chmod +x dist/index.js",
|
|
44
|
+
"link": "npm link",
|
|
45
|
+
"unlink": "npm unlink -g claudish",
|
|
46
|
+
"install-global": "bun run build && npm link",
|
|
47
|
+
"kill-all": "pkill -f 'bun.*claudish' || pkill -f 'claude.*claudish-settings' || echo 'No claudish processes found'",
|
|
48
|
+
"test": "bun test ./tests/comprehensive-model-test.ts",
|
|
49
|
+
"typecheck": "tsc --noEmit",
|
|
50
|
+
"lint": "biome check .",
|
|
51
|
+
"format": "biome format --write .",
|
|
52
|
+
"install": "bun run build && bun link",
|
|
53
|
+
"postinstall": "node scripts/postinstall.cjs"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/scripts/postinstall.cjs
CHANGED
|
File without changes
|