@tokenaut/opentoken 1.4.8 → 1.4.9

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 (3) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
  3. package/src/cli.js +6 -6
package/README.md CHANGED
@@ -24,7 +24,7 @@ npm install -g @tokenaut/opentoken
24
24
  | 应用 | 子命令(别名) | 配置文件 |
25
25
  |------|----------------|----------|
26
26
  | **Claude Code** | `cc`、`claude` | `~/.claude/settings.json`(环境变量:`ANTHROPIC_AUTH_TOKEN`、`ANTHROPIC_BASE_URL`、`ANTHROPIC_MODEL`) |
27
- | **Claude Desktop** | `claude_desktop`、`cdp` | `~/Library/Application Support/Claude-3p/configLibrary/*.json`(`inferenceGatewayApiKey`、`inferenceGatewayBaseUrl`) |
27
+ | **Claude Desktop** | `claude_desktop`、`cdt` | `~/Library/Application Support/Claude-3p/configLibrary/*.json`(`inferenceGatewayApiKey`、`inferenceGatewayBaseUrl`) |
28
28
  | **Atomcode** | `atomcode`、`ac` | `~/.atomcode/config.toml` |
29
29
  | **OpenClaw** | `openclaw`、`oc` | `~/.openclaw/openclaw.json`(合并写入 Opentoken:`models.providers.opentoken`、`agents.defaults.model.primary` 等) |
30
30
  | **Hermes** | `hermes`、`hm` | `~/.hermes/config.yaml`(`model.provider`、`model.base_url`、`model.default`)与 `~/.hermes/.env`(`OPENTOKEN_API_KEY`) |
@@ -69,15 +69,15 @@ opentoken cc -k sk-xxx -u https://gw.opentoken.io -m claude-opus-4-5
69
69
 
70
70
  ```bash
71
71
  opentoken claude_desktop --key <api_key>
72
- opentoken cdp --url <base_url>
73
- opentoken cdp -k <api_key> -u <base_url>
72
+ opentoken cdt --url <base_url>
73
+ opentoken cdt -k <api_key> -u <base_url>
74
74
  ```
75
75
 
76
76
  示例:
77
77
 
78
78
  ```bash
79
- opentoken cdp -k sk-xxx
80
- opentoken cdp -k sk-xxx -u https://gw.opentoken.io
79
+ opentoken cdt -k sk-xxx
80
+ opentoken cdt -k sk-xxx -u https://gw.opentoken.io
81
81
  ```
82
82
 
83
83
  ### Atomcode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenaut/opentoken",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "OpenToken 一键接入 AI 模型 · https://docs.opentoken.io/",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -38,7 +38,7 @@ function isCodexCommand(tool) {
38
38
  }
39
39
 
40
40
  function isClaudeDesktopCommand(tool) {
41
- return tool === 'claude_desktop' || tool === 'cdp';
41
+ return tool === 'claude_desktop' || tool === 'cdt';
42
42
  }
43
43
 
44
44
  function printVersion() {
@@ -92,17 +92,17 @@ function printHelp() {
92
92
  console.log(' opentoken cx -k <k> -u <u> -m <m> 一键设置 URL 与模型');
93
93
  console.log('');
94
94
  console.log(' opentoken claude_desktop 进入 Claude Desktop 配置(configLibrary/*.json)');
95
- console.log(' opentoken cdp 同上(缩写)');
96
- console.log(' opentoken cdp --key <apikey> 设置 API Key(inferenceGatewayApiKey)');
97
- console.log(' opentoken cdp --url <baseurl> 设置 Base URL(inferenceGatewayBaseUrl)');
98
- console.log(' opentoken cdp -k <k> -u <u> 一键设置 Key 与 URL');
95
+ console.log(' opentoken cdt 同上(缩写)');
96
+ console.log(' opentoken cdt --key <apikey> 设置 API Key(inferenceGatewayApiKey)');
97
+ console.log(' opentoken cdt --url <baseurl> 设置 Base URL(inferenceGatewayBaseUrl)');
98
+ console.log(' opentoken cdt -k <k> -u <u> 一键设置 Key 与 URL');
99
99
  console.log('');
100
100
  console.log(chalk.bold('快捷别名(--key / -k,--url / -u,--model / -m)'));
101
101
  console.log('');
102
102
  console.log(chalk.bold('示例:'));
103
103
  console.log(' opentoken cc -k sk-xxx');
104
104
  console.log(` opentoken cc -k sk-xxx -u ${DEFAULT_BASE_URL} -m claude-opus-4-5`);
105
- console.log(` opentoken cdp -k sk-xxx -u ${DEFAULT_BASE_URL}`);
105
+ console.log(` opentoken cdt -k sk-xxx -u ${DEFAULT_BASE_URL}`);
106
106
  console.log('');
107
107
  console.log(chalk.bold('主菜单:'));
108
108
  console.log(' 1. 配置 Claude Code');