croo-cli 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +108 -2
- package/dist/cli.js +1759 -0
- package/package.json +50 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Xander Taylor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,109 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Croo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A quick, minimal, open-source terminal AI coding agent. Bring your own API key (or a local model) and let a small frog help you code.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
▄▄▄ ▄▄▄ “ribbit. ready when you are.”
|
|
7
|
+
██▄█▄▄▄█▄██ Croo v0.1.0
|
|
8
|
+
▀█▄▀▀▀▀▀▄█▀ gpt-4o · openai
|
|
9
|
+
▀▀ ▀▀ ~/projects/my-app
|
|
10
|
+
/help for commands
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- **Fully local.** No accounts, no login, no telemetry, no backend. Config lives in `~/.config/croo/config.json`.
|
|
14
|
+
- **Provider-agnostic.** OpenAI-compatible endpoints, Anthropic, and Google Gemini.
|
|
15
|
+
- **Tiny.** Zero runtime dependencies: native `fetch` and Node built-ins only.
|
|
16
|
+
|
|
17
|
+
Croo works with API keys and any OpenAI-compatible endpoint, including local models. It does not use anyone's consumer-subscription logins.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm i -g croo-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Requires Node 20+.
|
|
26
|
+
|
|
27
|
+
## Quick start
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cd your-project
|
|
31
|
+
croo # first run walks you through setup
|
|
32
|
+
croo "add a --verbose flag to the CLI" # one-shot
|
|
33
|
+
croo --continue # resume the last session in this directory
|
|
34
|
+
croo --profile local # use a named profile
|
|
35
|
+
croo --yolo # skip permission prompts (be careful)
|
|
36
|
+
croo --no-pet # no frog
|
|
37
|
+
croo --demo # look around with a fake model, no API key
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Slash commands: `/help`, `/model` (list, `/model <name>` to switch, `/model add`), `/clear`, `/config`, `/exit`.
|
|
41
|
+
`Ctrl+C` cancels the current generation; a second `Ctrl+C` exits.
|
|
42
|
+
|
|
43
|
+
## Configuration
|
|
44
|
+
|
|
45
|
+
`~/.config/croo/config.json` (created with mode 600). API keys may live here or in env vars: `CROO_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`. Priority is the profile's `apiKey`, then `CROO_API_KEY`, then the provider's own variable.
|
|
46
|
+
|
|
47
|
+
```jsonc
|
|
48
|
+
{
|
|
49
|
+
"activeProfile": "openai",
|
|
50
|
+
"pet": true,
|
|
51
|
+
"animations": true,
|
|
52
|
+
"profiles": {
|
|
53
|
+
"openai": { "type": "openai", "model": "gpt-4o" },
|
|
54
|
+
"anthropic": { "type": "anthropic", "model": "claude-sonnet-4-5" },
|
|
55
|
+
"gemini": { "type": "gemini", "model": "gemini-2.5-pro" },
|
|
56
|
+
"openrouter": {
|
|
57
|
+
"type": "openai",
|
|
58
|
+
"baseUrl": "https://openrouter.ai/api/v1",
|
|
59
|
+
"model": "anthropic/claude-sonnet-4.5"
|
|
60
|
+
},
|
|
61
|
+
"ollama": {
|
|
62
|
+
"type": "openai",
|
|
63
|
+
"baseUrl": "http://localhost:11434/v1",
|
|
64
|
+
"model": "qwen2.5-coder"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Optional per-profile `inputPerMTok` / `outputPerMTok` (USD per million tokens) adds a cost estimate to the status line.
|
|
71
|
+
|
|
72
|
+
## Tools and permissions
|
|
73
|
+
|
|
74
|
+
| Tool | What it does | Asks first? |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| `read_file` | Read a file with line numbers | no |
|
|
77
|
+
| `list_files` | List/glob files (respects `.gitignore`) | no |
|
|
78
|
+
| `grep` | Regex search (respects `.gitignore`) | no |
|
|
79
|
+
| `write_file` | Create or overwrite a file | yes, shows a diff |
|
|
80
|
+
| `edit_file` | Exact string replace | yes, shows a diff |
|
|
81
|
+
| `bash` | Run a shell command (120s timeout, truncated output) | yes, shows the command |
|
|
82
|
+
|
|
83
|
+
Prompts accept `y`, `n` or `a` (always, for that tool, this session). File tools cannot leave the current directory. Put project guidance in `CROO.md` or `AGENTS.md` and Croo will include it in its system prompt.
|
|
84
|
+
|
|
85
|
+
Sessions are saved as JSON under `~/.local/share/croo/sessions`.
|
|
86
|
+
|
|
87
|
+
## Development
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npm install && npm test && npm run build
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
94
|
+
|
|
95
|
+
## Roadmap
|
|
96
|
+
|
|
97
|
+
- Custom pets: the `Pet` interface in `src/ui/pet.ts` is designed so you can drop in your own frames
|
|
98
|
+
- Idle animation at the prompt
|
|
99
|
+
- Context window management and compaction
|
|
100
|
+
- MCP support
|
|
101
|
+
- More tools (web fetch, multi-edit)
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT, see [LICENSE](LICENSE).
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
An Entity of The Tizzle Collective
|