@funnycode/myclaude 0.1.200 โ†’ 0.1.267

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 (4) hide show
  1. package/README.md +317 -308
  2. package/dist/myclaude.js +1683 -659
  3. package/dist/myclaude.mjs +1683 -659
  4. package/package.json +131 -131
package/README.md CHANGED
@@ -1,308 +1,317 @@
1
- # ๐ŸŽญ myclaude
2
-
3
- > **Your AI coding sidekick in the terminal โ€” write smarter, ship faster.**
4
-
5
- ```bash
6
- npx @funnycode/myclaude
7
- ```
8
-
9
- [![npm](https://img.shields.io/npm/v/@funnycode/myclaude)](https://www.npmjs.com/package/@funnycode/myclaude)
10
- [![License](https://img.shields.io/npm/l/@funnycode/myclaude)](LICENSE)
11
-
12
- ---
13
-
14
- ## โœจ What Makes MyClaude Different?
15
-
16
- | | Feature | Why You'll Love It |
17
- |---|---------|-------------------|
18
- | ๐Ÿพ | **BUDDY Pet** | A virtual pet grows as you code โ€” hatch it, feed it, play with it. 18 species, legendary rarity, shiny variants. |
19
- | ๐Ÿ† | **Achievements** | Unlock 20+ achievements. Streaks, milestones, discoveries โ€” your coding journey gamified. |
20
- | ๐ŸŽฏ | **Frontend TDD** | `/frontend-tdd` โ€” Red-Green-Refactor workflow for frontend testing, built right in. |
21
- | ๐ŸŒŠ | **Git Flow** | `/new-feature`, `/finish-release`, `/new-hotfix` โ€” full Git Flow workflow as slash commands. |
22
- | ๐Ÿค– | **ECC Built-in** | 76+ commands and 246+ skills loaded at startup โ€” zero setup. |
23
- | ๐Ÿง  | **AI Chat** | Write, refactor, debug, and explain code. Multi-model (Anthropic, Bedrock, Vertex, Foundry). |
24
- | ๐ŸŽจ | **Beautiful TUI** | React Ink terminal UI with themes, Vim mode, syntax highlighting. |
25
- | ๐Ÿ”Œ | **Plugins & MCP** | Extend with plugins, MCP servers, custom skills. |
26
-
27
- ---
28
-
29
- ## ๐Ÿš€ Start in 10 Seconds
30
-
31
- ```bash
32
- # Set your API key
33
- export ANTHROPIC_API_KEY=sk-ant-...
34
-
35
- # Run instantly (no install needed)
36
- npx @funnycode/myclaude
37
-
38
- # Or install globally
39
- npm install -g @funnycode/myclaude
40
- myclaude
41
- ```
42
-
43
- **Prerequisites:** Bun โ‰ฅ 1.3.5 (or Node.js โ‰ฅ 22.17) ยท Git
44
-
45
- ---
46
-
47
- ## ๐ŸŽฎ Slash Commands at a Glance
48
-
49
- ### ๐Ÿ“ Essential
50
- | Command | What it does |
51
- |---------|-------------|
52
- | `/help` | Show help |
53
- | `/config` | Configure settings |
54
- | `/doctor` | Diagnose & verify installation |
55
- | `/model` | Switch AI model |
56
- | `/effort` | Set effort level |
57
-
58
- ### ๐Ÿงช Testing & Quality
59
- | Command | What it does |
60
- |---------|-------------|
61
- | **`/frontend-tdd <description>`** | **TDD Red-Green-Refactor cycle for frontend features** |
62
- | `/review` | Review a pull request |
63
- | `/plan` | Create an implementation plan |
64
-
65
- ### ๐ŸŒŠ Git Flow
66
- | Command | What it does |
67
- |---------|-------------|
68
- | `/new-feature <name> [from]` | Create feature branch from `main` |
69
- | `/finish-feature [target]` | Merge feature to `main` |
70
- | `/new-release <version> [from]` | Create release branch |
71
- | `/finish-release` | Merge release to `main` & `develop` |
72
- | `/new-hotfix <name> [from]` | Create hotfix branch |
73
- | `/finish-hotfix` | Merge hotfix to `main` & `develop` |
74
- | `/commit` | Generate a git commit |
75
-
76
- ### ๐Ÿพ BUDDY & Achievements
77
- | Command | What it does |
78
- |---------|-------------|
79
- | `/buddy hatch` | Hatch a new companion |
80
- | `/buddy pet` | Pet your buddy (+5 XP โค๏ธ) |
81
- | `/buddy feed` | Feed your buddy (+15 XP) |
82
- | `/buddy play` | Play with your buddy (+20 XP) |
83
- | `/buddy card` | View stats & milestones |
84
- | `/achievements` | Track your unlocks |
85
-
86
- ### ๐Ÿ”Œ Integrations
87
- | Command | What it does |
88
- |---------|-------------|
89
- | `/mcp` | Manage MCP servers |
90
- | `/plugin` | Install & manage plugins |
91
- | `/hooks` | Manage hooks |
92
- | `/skills` | List available skills |
93
-
94
- ### โš™๏ธ System
95
- | Command | What it does |
96
- |---------|-------------|
97
- | `/status` | Session & auth status |
98
- | `/vim` | Toggle Vim mode |
99
- | `/theme` | Change UI theme |
100
- | `/keybindings` | Customize shortcuts |
101
- | `/memory` | Manage AI memory |
102
- | `/feedback` | Submit feedback |
103
-
104
- ---
105
-
106
- ## ๐Ÿพ BUDDY โ€” Your Terminal Pet
107
-
108
- myclaude has a virtual pet that **lives in your terminal**. It's generated from your user ID โ€” **yours is unique, no two alike**.
109
-
110
- ### 18 Species
111
-
112
- ๐Ÿฆ† Duck ยท ๐Ÿชฟ Goose ยท ๐Ÿซง Blob ยท ๐Ÿฑ Cat ยท ๐Ÿ‰ Dragon ยท ๐Ÿ™ Octopus ยท ๐Ÿฆ‰ Owl
113
- ๐Ÿง Penguin ยท ๐Ÿข Turtle ยท ๐ŸŒ Snail ยท ๐Ÿ‘ป Ghost ยท ๐ŸฆŽ Axolotl ยท ๐Ÿฆซ Capybara
114
- ๐ŸŒต Cactus ยท ๐Ÿค– Robot ยท ๐Ÿฐ Rabbit ยท ๐Ÿ„ Mushroom ยท ๐Ÿˆ Chonk
115
-
116
- ### Rarity & Stats
117
-
118
- | Rarity | Odds | Stars |
119
- |--------|------|-------|
120
- | Common | 60% | โ˜… |
121
- | Uncommon | 25% | โ˜…โ˜… |
122
- | Rare | 10% | โ˜…โ˜…โ˜… |
123
- | Epic | 4% | โ˜…โ˜…โ˜…โ˜… |
124
- | Legendary | **1%** | โ˜…โ˜…โ˜…โ˜…โ˜… |
125
- | โœจ Shiny | **1%** (independent) | Sparkles! |
126
-
127
- Each companion has 5 stats: `DEBUGGING`, `PATIENCE`, `CHAOS`, `WISDOM`, `SNARK`. Gain XP, level up (max 50), and **evolve** into new forms.
128
-
129
- ---
130
-
131
- ## ๐ŸŽฏ Frontend TDD
132
-
133
- ```bash
134
- /frontend-tdd Create a user login form with email validation
135
- ```
136
-
137
- This command guides the AI through the **Red-Green-Refactor** cycle:
138
-
139
- ๐Ÿ”ด **Red** โ†’ Write a failing test first
140
- ๐ŸŸข **Green** โ†’ Minimum code to pass
141
- ๐Ÿ”ต **Refactor** โ†’ Clean up, keep the test green
142
-
143
- It includes frontend-specific testing best practices: Testing Library behavior queries, `user-event` over `fireEvent`, async handling with `waitFor`/`findBy*`, MSW for API mocking, and accessibility-first selectors.
144
-
145
- ---
146
-
147
- ## ๐ŸŒŠ Git Flow Workflow
148
-
149
- ```bash
150
- /new-feature user-auth # feature/user-auth from main
151
- /new-feature api-rate-limit develop # feature/api-rate-limit from develop
152
- /finish-feature # merge to main
153
- /finish-feature develop # merge to develop instead
154
- /new-release 1.2.0 # release/1.2.0 from main
155
- /new-hotfix security-patch # hotfix/security-patch from main
156
- /finish-hotfix # merge to main & develop
157
- ```
158
-
159
- All commands default to `main` and accept an optional `[from]` or `[target]` argument.
160
-
161
- ---
162
-
163
- ## ๐Ÿ”Œ Built-in Integrations
164
-
165
- ### CodeGraph โ€” Semantic Code Intelligence
166
- Auto-detects `codegraph` CLI and enables it as a built-in plugin for surgical code context.
167
-
168
- ```bash
169
- npm i -g @colbymchenry/codegraph
170
- cd your-project
171
- codegraph init
172
- /plugin enable codegraph
173
- ```
174
-
175
- ### ECC โ€” Agent Operating System
176
- **76+ commands and 246+ skills** are loaded at startup โ€” no install, no config. Just start typing `/`.
177
-
178
- ---
179
-
180
- ## โš™๏ธ Environment Variables
181
-
182
- Use `MYCLAUDE_*` or `CLAUDE_CODE_*` (the latter takes priority).
183
-
184
- | Key Variables | What it does |
185
- |--------------|-------------|
186
- | `ANTHROPIC_API_KEY` / `MYCLAUDE_API_KEY` | API key (required) |
187
- | `ANTHROPIC_BASE_URL` | Custom API endpoint |
188
- | `MYCLAUDE_MODEL` | Override model |
189
- | `MYCLAUDE_SIMPLE` | Non-TUI mode |
190
- | `MYCLAUDE_DISABLE_THINKING` | Skip extended thinking |
191
- | `MYCLAUDE_USE_BEDROCK` | AWS Bedrock provider |
192
- | `MYCLAUDE_USE_VERTEX` | Google Vertex AI provider |
193
- | `MYCLAUDE_USE_FOUNDRY` | Microsoft Foundry provider |
194
- | `MYCLAUDE_SYNTAX_HIGHLIGHT` | Highlight theme |
195
- | `MYCLAUDE_IDLE_THRESHOLD_MINUTES` | Idle timeout (default: 75) |
196
- | `MYCLAUDE_EFFORT_LEVEL` | Effort level |
197
-
198
- ---
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
-
263
- ## ๐Ÿ›  Dev
264
-
265
- ```bash
266
- git clone https://github.com/thomaslwq/myclaude.git
267
- cd myclaude
268
- bun install
269
- bun run dev # Dev mode
270
- bun run build # Bundle to dist/myclaude.mjs
271
- bun run version # Verify CLI boots
272
- ```
273
-
274
- ### Structure
275
-
276
- ```
277
- src/
278
- โ”œโ”€โ”€ achievements/ # Achievement system
279
- โ”œโ”€โ”€ buddy/ # BUDDY companion (sprites, evolution)
280
- โ”œโ”€โ”€ commands/ # All slash commands
281
- โ”œโ”€โ”€ components/ # React Ink UI
282
- โ”œโ”€โ”€ events/ # Calendar & seasonal easter eggs
283
- โ”œโ”€โ”€ services/ # API, MCP, analytics
284
- โ”œโ”€โ”€ tools/ # Tool implementations
285
- โ”œโ”€โ”€ utils/ # Shared utilities
286
- โ”œโ”€โ”€ entrypoints/ # CLI entry points
287
- โ””โ”€โ”€ main.tsx # TUI main entry
288
- ```
289
-
290
- ---
291
-
292
- ## ๐Ÿค Contributing
293
-
294
- PRs welcome! Fork โ†’ branch โ†’ small focused changes โ†’ test โ†’ PR.
295
-
296
- ---
297
-
298
- ## ๐Ÿ“Ž Links
299
-
300
- - **GitHub**: [github.com/thomaslwq/myclaude](https://github.com/thomaslwq/myclaude)
301
- - **Gitee**: [gitee.com/thomaslwq/myclaude](https://gitee.com/thomaslwq/myclaude)
302
- - **npm**: [npmjs.com/package/@funnycode/myclaude](https://www.npmjs.com/package/@funnycode/myclaude)
303
-
304
- ---
305
-
306
- ## ๐Ÿ“„ License
307
-
308
- MIT
1
+ # ๐ŸŽญ myclaude
2
+
3
+ > **โš ๏ธ SECURITY NOTICE: This is an open-source fork/rebrand of Anthropic's Claude Code.**
4
+ > This package is **NOT** the official Anthropic package. It is published by a third party
5
+ > under the `@funnycode` organization. If you are looking for the official Anthropic
6
+ > package, use `@anthropic-ai/claude-code` (if available) or visit https://claude.ai.
7
+ >
8
+ > This fork uses the official Anthropic SDK to communicate with the Anthropic API โ€”
9
+ > your API keys are sent directly to Anthropic's servers, not to this package's author.
10
+ > However, as with any third-party fork, you should review the source code before use.
11
+
12
+ > **Your AI coding sidekick in the terminal โ€” write smarter, ship faster.**
13
+
14
+ ```bash
15
+ npx @funnycode/myclaude
16
+ ```
17
+
18
+ [![npm](https://img.shields.io/npm/v/@funnycode/myclaude)](https://www.npmjs.com/package/@funnycode/myclaude)
19
+ [![License](https://img.shields.io/npm/l/@funnycode/myclaude)](LICENSE)
20
+
21
+ ---
22
+
23
+ ## โœจ What Makes MyClaude Different?
24
+
25
+ | | Feature | Why You'll Love It |
26
+ |---|---------|-------------------|
27
+ | ๐Ÿพ | **BUDDY Pet** | A virtual pet grows as you code โ€” hatch it, feed it, play with it. 18 species, legendary rarity, shiny variants. |
28
+ | ๐Ÿ† | **Achievements** | Unlock 20+ achievements. Streaks, milestones, discoveries โ€” your coding journey gamified. |
29
+ | ๐ŸŽฏ | **Frontend TDD** | `/frontend-tdd` โ€” Red-Green-Refactor workflow for frontend testing, built right in. |
30
+ | ๐ŸŒŠ | **Git Flow** | `/new-feature`, `/finish-release`, `/new-hotfix` โ€” full Git Flow workflow as slash commands. |
31
+ | ๐Ÿค– | **ECC Built-in** | 76+ commands and 246+ skills loaded at startup โ€” zero setup. |
32
+ | ๐Ÿง  | **AI Chat** | Write, refactor, debug, and explain code. Multi-model (Anthropic, Bedrock, Vertex, Foundry). |
33
+ | ๐ŸŽจ | **Beautiful TUI** | React Ink terminal UI with themes, Vim mode, syntax highlighting. |
34
+ | ๐Ÿ”Œ | **Plugins & MCP** | Extend with plugins, MCP servers, custom skills. |
35
+
36
+ ---
37
+
38
+ ## ๐Ÿš€ Start in 10 Seconds
39
+
40
+ ```bash
41
+ # Set your API key
42
+ export ANTHROPIC_API_KEY=sk-ant-...
43
+
44
+ # Run instantly (no install needed)
45
+ npx @funnycode/myclaude
46
+
47
+ # Or install globally
48
+ npm install -g @funnycode/myclaude
49
+ myclaude
50
+ ```
51
+
52
+ **Prerequisites:** Bun โ‰ฅ 1.3.5 (or Node.js โ‰ฅ 22.17) ยท Git
53
+
54
+ ---
55
+
56
+ ## ๐ŸŽฎ Slash Commands at a Glance
57
+
58
+ ### ๐Ÿ“ Essential
59
+ | Command | What it does |
60
+ |---------|-------------|
61
+ | `/help` | Show help |
62
+ | `/config` | Configure settings |
63
+ | `/doctor` | Diagnose & verify installation |
64
+ | `/model` | Switch AI model |
65
+ | `/effort` | Set effort level |
66
+
67
+ ### ๐Ÿงช Testing & Quality
68
+ | Command | What it does |
69
+ |---------|-------------|
70
+ | **`/frontend-tdd <description>`** | **TDD Red-Green-Refactor cycle for frontend features** |
71
+ | `/review` | Review a pull request |
72
+ | `/plan` | Create an implementation plan |
73
+
74
+ ### ๐ŸŒŠ Git Flow
75
+ | Command | What it does |
76
+ |---------|-------------|
77
+ | `/new-feature <name> [from]` | Create feature branch from `main` |
78
+ | `/finish-feature [target]` | Merge feature to `main` |
79
+ | `/new-release <version> [from]` | Create release branch |
80
+ | `/finish-release` | Merge release to `main` & `develop` |
81
+ | `/new-hotfix <name> [from]` | Create hotfix branch |
82
+ | `/finish-hotfix` | Merge hotfix to `main` & `develop` |
83
+ | `/commit` | Generate a git commit |
84
+
85
+ ### ๐Ÿพ BUDDY & Achievements
86
+ | Command | What it does |
87
+ |---------|-------------|
88
+ | `/buddy hatch` | Hatch a new companion |
89
+ | `/buddy pet` | Pet your buddy (+5 XP โค๏ธ) |
90
+ | `/buddy feed` | Feed your buddy (+15 XP) |
91
+ | `/buddy play` | Play with your buddy (+20 XP) |
92
+ | `/buddy card` | View stats & milestones |
93
+ | `/achievements` | Track your unlocks |
94
+
95
+ ### ๐Ÿ”Œ Integrations
96
+ | Command | What it does |
97
+ |---------|-------------|
98
+ | `/mcp` | Manage MCP servers |
99
+ | `/plugin` | Install & manage plugins |
100
+ | `/hooks` | Manage hooks |
101
+ | `/skills` | List available skills |
102
+
103
+ ### โš™๏ธ System
104
+ | Command | What it does |
105
+ |---------|-------------|
106
+ | `/status` | Session & auth status |
107
+ | `/vim` | Toggle Vim mode |
108
+ | `/theme` | Change UI theme |
109
+ | `/keybindings` | Customize shortcuts |
110
+ | `/memory` | Manage AI memory |
111
+ | `/feedback` | Submit feedback |
112
+
113
+ ---
114
+
115
+ ## ๐Ÿพ BUDDY โ€” Your Terminal Pet
116
+
117
+ myclaude has a virtual pet that **lives in your terminal**. It's generated from your user ID โ€” **yours is unique, no two alike**.
118
+
119
+ ### 18 Species
120
+
121
+ ๐Ÿฆ† Duck ยท ๐Ÿชฟ Goose ยท ๐Ÿซง Blob ยท ๐Ÿฑ Cat ยท ๐Ÿ‰ Dragon ยท ๐Ÿ™ Octopus ยท ๐Ÿฆ‰ Owl
122
+ ๐Ÿง Penguin ยท ๐Ÿข Turtle ยท ๐ŸŒ Snail ยท ๐Ÿ‘ป Ghost ยท ๐ŸฆŽ Axolotl ยท ๐Ÿฆซ Capybara
123
+ ๐ŸŒต Cactus ยท ๐Ÿค– Robot ยท ๐Ÿฐ Rabbit ยท ๐Ÿ„ Mushroom ยท ๐Ÿˆ Chonk
124
+
125
+ ### Rarity & Stats
126
+
127
+ | Rarity | Odds | Stars |
128
+ |--------|------|-------|
129
+ | Common | 60% | โ˜… |
130
+ | Uncommon | 25% | โ˜…โ˜… |
131
+ | Rare | 10% | โ˜…โ˜…โ˜… |
132
+ | Epic | 4% | โ˜…โ˜…โ˜…โ˜… |
133
+ | Legendary | **1%** | โ˜…โ˜…โ˜…โ˜…โ˜… |
134
+ | โœจ Shiny | **1%** (independent) | Sparkles! |
135
+
136
+ Each companion has 5 stats: `DEBUGGING`, `PATIENCE`, `CHAOS`, `WISDOM`, `SNARK`. Gain XP, level up (max 50), and **evolve** into new forms.
137
+
138
+ ---
139
+
140
+ ## ๐ŸŽฏ Frontend TDD
141
+
142
+ ```bash
143
+ /frontend-tdd Create a user login form with email validation
144
+ ```
145
+
146
+ This command guides the AI through the **Red-Green-Refactor** cycle:
147
+
148
+ ๐Ÿ”ด **Red** โ†’ Write a failing test first
149
+ ๐ŸŸข **Green** โ†’ Minimum code to pass
150
+ ๐Ÿ”ต **Refactor** โ†’ Clean up, keep the test green
151
+
152
+ It includes frontend-specific testing best practices: Testing Library behavior queries, `user-event` over `fireEvent`, async handling with `waitFor`/`findBy*`, MSW for API mocking, and accessibility-first selectors.
153
+
154
+ ---
155
+
156
+ ## ๐ŸŒŠ Git Flow Workflow
157
+
158
+ ```bash
159
+ /new-feature user-auth # feature/user-auth from main
160
+ /new-feature api-rate-limit develop # feature/api-rate-limit from develop
161
+ /finish-feature # merge to main
162
+ /finish-feature develop # merge to develop instead
163
+ /new-release 1.2.0 # release/1.2.0 from main
164
+ /new-hotfix security-patch # hotfix/security-patch from main
165
+ /finish-hotfix # merge to main & develop
166
+ ```
167
+
168
+ All commands default to `main` and accept an optional `[from]` or `[target]` argument.
169
+
170
+ ---
171
+
172
+ ## ๐Ÿ”Œ Built-in Integrations
173
+
174
+ ### CodeGraph โ€” Semantic Code Intelligence
175
+ Auto-detects `codegraph` CLI and enables it as a built-in plugin for surgical code context.
176
+
177
+ ```bash
178
+ npm i -g @colbymchenry/codegraph
179
+ cd your-project
180
+ codegraph init
181
+ /plugin enable codegraph
182
+ ```
183
+
184
+ ### ECC โ€” Agent Operating System
185
+ **76+ commands and 246+ skills** are loaded at startup โ€” no install, no config. Just start typing `/`.
186
+
187
+ ---
188
+
189
+ ## โš™๏ธ Environment Variables
190
+
191
+ Use `MYCLAUDE_*` or `CLAUDE_CODE_*` (the latter takes priority).
192
+
193
+ | Key Variables | What it does |
194
+ |--------------|-------------|
195
+ | `ANTHROPIC_API_KEY` / `MYCLAUDE_API_KEY` | API key (required) |
196
+ | `ANTHROPIC_BASE_URL` | Custom API endpoint |
197
+ | `MYCLAUDE_MODEL` | Override model |
198
+ | `MYCLAUDE_SIMPLE` | Non-TUI mode |
199
+ | `MYCLAUDE_DISABLE_THINKING` | Skip extended thinking |
200
+ | `MYCLAUDE_USE_BEDROCK` | AWS Bedrock provider |
201
+ | `MYCLAUDE_USE_VERTEX` | Google Vertex AI provider |
202
+ | `MYCLAUDE_USE_FOUNDRY` | Microsoft Foundry provider |
203
+ | `MYCLAUDE_SYNTAX_HIGHLIGHT` | Highlight theme |
204
+ | `MYCLAUDE_IDLE_THRESHOLD_MINUTES` | Idle timeout (default: 75) |
205
+ | `MYCLAUDE_EFFORT_LEVEL` | Effort level |
206
+
207
+ ---
208
+
209
+ ## ๐Ÿ”ง Custom Models
210
+
211
+ myclaude supports third-party models (any provider compatible with the Anthropic API format) and local models.
212
+
213
+ ### Basic Configuration
214
+
215
+ | Env Variable | What it does | Example |
216
+ |--------------|-------------|---------|
217
+ | `ANTHROPIC_BASE_URL` | Custom API endpoint | `https://your-api.example.com` |
218
+ | `MYCLAUDE_MODEL` / `CLAUDE_CODE_MODEL` | Specify model name | `claude-sonnet-4-20250514`, `gemini-2.5-pro` |
219
+
220
+ > Supports both `MYCLAUDE_*` and `CLAUDE_CODE_*` prefixes โ€” the latter takes priority, fully compatible with Claude Code environment variable naming.
221
+
222
+ ### Common Scenarios
223
+
224
+ **Using a proxy / relay API:**
225
+ ```bash
226
+ export ANTHROPIC_BASE_URL=https://your-proxy.com/v1
227
+ export ANTHROPIC_API_KEY=your-proxy-key
228
+ export MYCLAUDE_MODEL=claude-sonnet-4-20250514
229
+ npx @funnycode/myclaude
230
+ ```
231
+
232
+ **Using Ollama local models (via compatibility layer):**
233
+ ```bash
234
+ # First, start Ollama and pull a model
235
+ # ollama pull llama3.2
236
+
237
+ # Use tools like llm-cluster or litellm to provide an Anthropic-compatible endpoint
238
+ export ANTHROPIC_BASE_URL=http://localhost:8000/v1
239
+ export ANTHROPIC_API_KEY=sk-local
240
+ export MYCLAUDE_MODEL=llama3.2
241
+ npx @funnycode/myclaude
242
+ ```
243
+
244
+ **Using Google Vertex AI:**
245
+ ```bash
246
+ export MYCLAUDE_USE_VERTEX=true
247
+ export CLOUD_ML_REGION=us-central1
248
+ gcloud auth application-default login
249
+ npx @funnycode/myclaude
250
+ ```
251
+
252
+ **Using AWS Bedrock:**
253
+ ```bash
254
+ export MYCLAUDE_USE_BEDROCK=true
255
+ export AWS_REGION=us-east-1
256
+ # AWS credentials via env vars or ~/.aws/credentials
257
+ npx @funnycode/myclaude
258
+ ```
259
+
260
+ **Using Microsoft Foundry:**
261
+ ```bash
262
+ export MYCLAUDE_USE_FOUNDRY=true
263
+ export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
264
+ export AZURE_OPENAI_API_KEY=your-azure-key
265
+ npx @funnycode/myclaude
266
+ ```
267
+
268
+ > ๐Ÿ’˜ At runtime, you can also use the `/model` command to quickly switch between supported models.
269
+
270
+ ---
271
+
272
+ ## ๐Ÿ›  Dev
273
+
274
+ ```bash
275
+ git clone https://github.com/thomaslwq/myclaude.git
276
+ cd myclaude
277
+ bun install
278
+ bun run dev # Dev mode
279
+ bun run build # Bundle to dist/myclaude.mjs
280
+ bun run version # Verify CLI boots
281
+ ```
282
+
283
+ ### Structure
284
+
285
+ ```
286
+ src/
287
+ โ”œโ”€โ”€ achievements/ # Achievement system
288
+ โ”œโ”€โ”€ buddy/ # BUDDY companion (sprites, evolution)
289
+ โ”œโ”€โ”€ commands/ # All slash commands
290
+ โ”œโ”€โ”€ components/ # React Ink UI
291
+ โ”œโ”€โ”€ events/ # Calendar & seasonal easter eggs
292
+ โ”œโ”€โ”€ services/ # API, MCP, analytics
293
+ โ”œโ”€โ”€ tools/ # Tool implementations
294
+ โ”œโ”€โ”€ utils/ # Shared utilities
295
+ โ”œโ”€โ”€ entrypoints/ # CLI entry points
296
+ โ””โ”€โ”€ main.tsx # TUI main entry
297
+ ```
298
+
299
+ ---
300
+
301
+ ## ๐Ÿค Contributing
302
+
303
+ PRs welcome! Fork โ†’ branch โ†’ small focused changes โ†’ test โ†’ PR.
304
+
305
+ ---
306
+
307
+ ## ๐Ÿ“Ž Links
308
+
309
+ - **GitHub**: [github.com/thomaslwq/myclaude](https://github.com/thomaslwq/myclaude)
310
+ - **Gitee**: [gitee.com/thomaslwq/myclaude](https://gitee.com/thomaslwq/myclaude)
311
+ - **npm**: [npmjs.com/package/@funnycode/myclaude](https://www.npmjs.com/package/@funnycode/myclaude)
312
+
313
+ ---
314
+
315
+ ## ๐Ÿ“„ License
316
+
317
+ MIT