min-agent 0.6.2 → 0.6.3

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 CHANGED
@@ -35,8 +35,8 @@
35
35
 
36
36
  ```bash
37
37
  npm install -g min-agent
38
- min-agent # start chatting (a built-in model is ready)
39
- min-agent setup # optional: add or switch your own provider
38
+ min-agent # start chatting (built-in OpenRouter model, preset & locked)
39
+ min-agent models # list models (always openrouter/free)
40
40
  ```
41
41
 
42
42
  ## Usage
@@ -93,14 +93,14 @@ In chat: `/memory on|off` toggles, `/memory` lists notes, `/memory some text` sa
93
93
 
94
94
  ## Configuration
95
95
 
96
- No setup needed — a built-in OpenRouter model (`openrouter/free`) is used until you add your own:
96
+ No setup needed — the built-in OpenRouter provider (`openrouter/free`) is preset and locked:
97
97
 
98
98
  ```bash
99
- min-agent setup --type ollama
100
- min-agent setup --type openai-compatible --url https://api.example.com/v1 --api-key "$KEY" --name groq --default-model llama-3.1-70b
101
- min-agent setup --switch ollama
99
+ min-agent models # always lists exactly: openrouter/free
102
100
  ```
103
101
 
102
+ The preset provider cannot be modified and `min-agent setup` refuses to add, edit, switch, or remove providers while it is active; the model is fixed to `openrouter/free` (no model list is fetched). Set `MIN_AGENT_NO_BUILTIN_PROVIDER=1` to disable the preset before configuring your own provider.
103
+
104
104
  Settings live in `~/.min-agent/config.json` (global). For per-project settings, run `min-agent init` to create `.min-agent/config.json`.
105
105
 
106
106
  ## Extending It
@@ -135,8 +135,8 @@ MIT
135
135
 
136
136
  ```bash
137
137
  npm install -g min-agent
138
- min-agent # 开始对话(已内置可用模型)
139
- min-agent setup # 可选:添加或切换你自己的服务商
138
+ min-agent # 开始对话(内置 OpenRouter 模型,已预设并锁定)
139
+ min-agent models # 查看模型(始终为 openrouter/free)
140
140
  ```
141
141
 
142
142
  ## 基本用法
@@ -193,14 +193,14 @@ min-agent memory add "prefer bun"
193
193
 
194
194
  ## 配置
195
195
 
196
- 无需配置即可使用——在添加自己的服务商前,内置的 OpenRouter 模型(`openrouter/free`)会一直可用:
196
+ 无需配置即可使用——内置 OpenRouter 服务商(`openrouter/free`)已预设并锁定:
197
197
 
198
198
  ```bash
199
- min-agent setup --type ollama
200
- min-agent setup --type openai-compatible --url https://api.example.com/v1 --api-key "$KEY" --name groq --default-model llama-3.1-70b
201
- min-agent setup --switch ollama
199
+ min-agent models # 始终只列出: openrouter/free
202
200
  ```
203
201
 
202
+ 预设服务商不可修改:在其生效期间 `min-agent setup` 会拒绝添加、修改、切换或删除服务商,模型固定为 `openrouter/free`(不拉取模型列表)。设置 `MIN_AGENT_NO_BUILTIN_PROVIDER=1` 关闭预设后,才能配置自己的服务商。
203
+
204
204
  配置保存在 `~/.min-agent/config.json`(全局生效)。项目级配置用 `min-agent init` 创建 `.min-agent/config.json`,仅对该项目生效。
205
205
 
206
206
  ## 扩展能力