myapikey 1.0.0 → 1.0.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/README.md +1 -2
- package/README.zh-CN.md +1 -2
- package/dist/assets/index-mSuIT48J.js +346 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/server/admin.ts +30 -0
- package/src/server/app.ts +4 -2
- package/src/server/auth.ts +6 -2
- package/src/server/index.ts +2 -7
- package/src/server/store.ts +1 -34
- package/src/shared/config.ts +2 -2
- package/src/shared/types.ts +2 -1
- package/dist/assets/index-CIGEPkrP.js +0 -346
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Requires Node.js 18+.
|
|
|
24
24
|
npx myapikey
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Open `http://localhost:7800
|
|
27
|
+
Open `http://localhost:7800`, set your web username and password on first use, then sign in.
|
|
28
28
|
|
|
29
29
|
1. In **Models**, add each backend with its real base URL and API key, select its format (`openai` / `anthropic`), discover models, and enable the ones you need.
|
|
30
30
|
2. Point tools at the gateway and use the generated `sk-myapikey-…` key, **not** your web login password:
|
|
@@ -61,7 +61,6 @@ Data defaults to `~/.myapikey`; override it with `--data-dir` or `MYAPIKEY_DATA_
|
|
|
61
61
|
|---|---|
|
|
62
62
|
| `data.json` | backends, routing, account, and gateway API key |
|
|
63
63
|
| `logs.jsonl` | call history (~90 days / 1M lines) |
|
|
64
|
-
| `credentials.txt` | web credentials and gateway key, rewritten at startup |
|
|
65
64
|
|
|
66
65
|
The web UI includes Connect, Models, Logs, Stats, and Settings. Settings can rotate the gateway key or change the password. This tool is single-user and has no TLS; place it behind a reverse proxy before exposing it beyond a trusted network.
|
|
67
66
|
|
package/README.zh-CN.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
npx myapikey
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
打开 `http://localhost:7800
|
|
27
|
+
打开 `http://localhost:7800`,首次使用时设置网页用户名和密码,然后登录。
|
|
28
28
|
|
|
29
29
|
1. 在 **Models** 中添加后端的真实 base URL 和 API key,选择格式(`openai` / `anthropic`),刷新模型并启用需要的模型。
|
|
30
30
|
2. 让工具指向网关,使用生成的 `sk-myapikey-…`,**不要**填网页登录密码:
|
|
@@ -61,7 +61,6 @@ OpenAI 的 base URL 含版本段(`/v1`、`/api/v3`);Anthropic 的 base URL 不
|
|
|
61
61
|
|---|---|
|
|
62
62
|
| `data.json` | 后端、路由、账号和网关 API key |
|
|
63
63
|
| `logs.jsonl` | 调用历史(约 90 天 / 100 万行) |
|
|
64
|
-
| `credentials.txt` | 网页凭据和网关 key,启动时重写 |
|
|
65
64
|
|
|
66
65
|
Web UI 包含 Connect、Models、Logs、Stats 和 Settings。设置页可轮换网关 key、修改密码。工具为单用户设计且不内置 TLS;暴露到可信网络之外时请使用反向代理。
|
|
67
66
|
|