claudish 1.3.1 → 1.4.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.
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 envModel = process.env[ENV.CLAUDISH_MODEL];
220
- if (envModel) {
221
- config.model = envModel;
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.0");
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,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
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",
@@ -21,17 +21,16 @@
21
21
  "typecheck": "tsc --noEmit",
22
22
  "lint": "biome check .",
23
23
  "format": "biome format --write .",
24
- "install": "bun run build && bun link",
25
24
  "postinstall": "node scripts/postinstall.cjs"
26
25
  },
27
26
  "dependencies": {
28
- "hono": "^4.9.0",
29
- "@hono/node-server": "^1.13.7"
27
+ "@hono/node-server": "^1.19.6",
28
+ "hono": "^4.10.6"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@biomejs/biome": "^1.9.4",
33
32
  "@types/bun": "latest",
34
- "typescript": "^5.7.0"
33
+ "typescript": "^5.9.3"
35
34
  },
36
35
  "files": [
37
36
  "dist/",
@@ -1,25 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { execSync } = require('child_process');
4
-
5
- try {
6
- // Check if bun is installed
7
- execSync('bun --version', { stdio: 'ignore' });
8
- console.log('\x1b[32m✓ Bun runtime detected\x1b[0m');
9
- console.log('\x1b[32m✓ Claudish installed successfully!\x1b[0m');
10
- console.log('');
11
- console.log('\x1b[1mUsage:\x1b[0m');
12
- console.log(' claudish --model x-ai/grok-code-fast-1 "your prompt"');
13
- console.log('');
14
- } catch (error) {
15
- console.error('\x1b[33m⚠ WARNING: Bun runtime not found!\x1b[0m');
16
- console.error('');
17
- console.error('Claudish requires Bun for optimal performance (10x faster than Node.js).');
18
- console.error('');
19
- console.error('\x1b[1mInstall Bun:\x1b[0m');
20
- console.error(' curl -fsSL https://bun.sh/install | bash');
21
- console.error('');
22
- console.error('Or visit: https://bun.sh');
23
- console.error('');
24
- process.exit(0); // Don't fail installation, just warn
25
- }
3
+ console.log('\x1b[32m✓ Claudish installed successfully!\x1b[0m');
4
+ console.log('');
5
+ console.log('\x1b[1mUsage:\x1b[0m');
6
+ console.log(' claudish --model x-ai/grok-code-fast-1 "your prompt"');
7
+ console.log(' claudish --interactive # Interactive model selection');
8
+ console.log(' claudish --list-models # List all available models');
9
+ console.log('');
10
+ console.log('\x1b[1mGet started:\x1b[0m');
11
+ console.log(' 1. Set OPENROUTER_API_KEY environment variable');
12
+ console.log(' 2. Run: claudish --interactive');
13
+ console.log('');