@funnycode/myclaude 0.1.55 → 0.1.56

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
@@ -197,6 +197,69 @@ Use `MYCLAUDE_*` or `CLAUDE_CODE_*` (the latter takes priority).
197
197
 
198
198
  ---
199
199
 
200
+ ## 🔧 Custom Models
201
+
202
+ myclaude supports third-party models (any provider compatible with the Anthropic API format) and local models.
203
+
204
+ ### Basic Configuration
205
+
206
+ | Env Variable | What it does | Example |
207
+ |--------------|-------------|---------|
208
+ | `ANTHROPIC_BASE_URL` | Custom API endpoint | `https://your-api.example.com` |
209
+ | `MYCLAUDE_MODEL` / `CLAUDE_CODE_MODEL` | Specify model name | `claude-sonnet-4-20250514`, `gemini-2.5-pro` |
210
+
211
+ > Supports both `MYCLAUDE_*` and `CLAUDE_CODE_*` prefixes — the latter takes priority, fully compatible with Claude Code environment variable naming.
212
+
213
+ ### Common Scenarios
214
+
215
+ **Using a proxy / relay API:**
216
+ ```bash
217
+ export ANTHROPIC_BASE_URL=https://your-proxy.com/v1
218
+ export ANTHROPIC_API_KEY=your-proxy-key
219
+ export MYCLAUDE_MODEL=claude-sonnet-4-20250514
220
+ npx @funnycode/myclaude
221
+ ```
222
+
223
+ **Using Ollama local models (via compatibility layer):**
224
+ ```bash
225
+ # First, start Ollama and pull a model
226
+ # ollama pull llama3.2
227
+
228
+ # Use tools like llm-cluster or litellm to provide an Anthropic-compatible endpoint
229
+ export ANTHROPIC_BASE_URL=http://localhost:8000/v1
230
+ export ANTHROPIC_API_KEY=sk-local
231
+ export MYCLAUDE_MODEL=llama3.2
232
+ npx @funnycode/myclaude
233
+ ```
234
+
235
+ **Using Google Vertex AI:**
236
+ ```bash
237
+ export MYCLAUDE_USE_VERTEX=true
238
+ export CLOUD_ML_REGION=us-central1
239
+ gcloud auth application-default login
240
+ npx @funnycode/myclaude
241
+ ```
242
+
243
+ **Using AWS Bedrock:**
244
+ ```bash
245
+ export MYCLAUDE_USE_BEDROCK=true
246
+ export AWS_REGION=us-east-1
247
+ # AWS credentials via env vars or ~/.aws/credentials
248
+ npx @funnycode/myclaude
249
+ ```
250
+
251
+ **Using Microsoft Foundry:**
252
+ ```bash
253
+ export MYCLAUDE_USE_FOUNDRY=true
254
+ export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
255
+ export AZURE_OPENAI_API_KEY=your-azure-key
256
+ npx @funnycode/myclaude
257
+ ```
258
+
259
+ > 💘 At runtime, you can also use the `/model` command to quickly switch between supported models.
260
+
261
+ ---
262
+
200
263
  ## 🛠 Dev
201
264
 
202
265
  ```bash
package/README.zh-CN.md CHANGED
@@ -197,6 +197,69 @@ codegraph init
197
197
 
198
198
  ---
199
199
 
200
+ ## 🔧 自定义模型
201
+
202
+ myclaude 支持接入第三方模型(兼容 Anthropic API 格式的任意提供商)或本地模型。
203
+
204
+ ### 基本配置
205
+
206
+ | 环境变量 | 说明 | 示例 |
207
+ |---------|------|------|
208
+ | `ANTHROPIC_BASE_URL` | 自定义 API 端点地址 | `https://your-api.example.com` |
209
+ | `MYCLAUDE_MODEL` / `CLAUDE_CODE_MODEL` | 指定模型名称 | `claude-sonnet-4-20250514`、`gemini-2.5-pro` |
210
+
211
+ > 支持 `MYCLAUDE_*` 或 `CLAUDE_CODE_*` 两种前缀,后者优先级更高,完全兼容 Claude Code 的环境变量命名。
212
+
213
+ ### 常见场景示例
214
+
215
+ **使用代理/中转 API:**
216
+ ```bash
217
+ export ANTHROPIC_BASE_URL=https://your-proxy.com/v1
218
+ export ANTHROPIC_API_KEY=your-proxy-key
219
+ export MYCLAUDE_MODEL=claude-sonnet-4-20250514
220
+ npx @funnycode/myclaude
221
+ ```
222
+
223
+ **使用 Ollama 本地模型(通过兼容层):**
224
+ ```bash
225
+ # 先启动 Ollama 并拉取模型
226
+ # ollama pull llama3.2
227
+
228
+ # 使用 llm-cluster 或 litellm 等工具提供 Anthropic 兼容接口
229
+ export ANTHROPIC_BASE_URL=http://localhost:8000/v1
230
+ export ANTHROPIC_API_KEY=sk-local
231
+ export MYCLAUDE_MODEL=llama3.2
232
+ npx @funnycode/myclaude
233
+ ```
234
+
235
+ **使用 Google Vertex AI:**
236
+ ```bash
237
+ export MYCLAUDE_USE_VERTEX=true
238
+ export CLOUD_ML_REGION=us-central1
239
+ gcloud auth application-default login
240
+ npx @funnycode/myclaude
241
+ ```
242
+
243
+ **使用 AWS Bedrock:**
244
+ ```bash
245
+ export MYCLAUDE_USE_BEDROCK=true
246
+ export AWS_REGION=us-east-1
247
+ # AWS 凭证通过环境变量或 ~/.aws/credentials 配置
248
+ npx @funnycode/myclaude
249
+ ```
250
+
251
+ **使用 Microsoft Foundry:**
252
+ ```bash
253
+ export MYCLAUDE_USE_FOUNDRY=true
254
+ export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
255
+ export AZURE_OPENAI_API_KEY=your-azure-key
256
+ npx @funnycode/myclaude
257
+ ```
258
+
259
+ > 💡 运行时也可通过 `/model` 命令在支持的模型之间快速切换。
260
+
261
+ ---
262
+
200
263
  ## 🛠 开发
201
264
 
202
265
  ```bash
package/dist/myclaude.js CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.55",
8
- BUILD_TIME: "2026-06-29T13:09:38.004Z",
7
+ VERSION: "0.1.56",
8
+ BUILD_TIME: "2026-07-05T14:01:38.459Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
package/dist/myclaude.mjs CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.55",
8
- BUILD_TIME: "2026-06-29T13:09:38.004Z",
7
+ VERSION: "0.1.56",
8
+ BUILD_TIME: "2026-07-05T14:01:38.459Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",