@protolabsai/proto 0.26.13 → 0.26.17
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 +33 -21
- package/cli.js +2638 -2274
- package/locales/de.js +1 -1
- package/locales/pt.js +1 -1
- package/locales/ru.js +1 -1
- package/locales/zh.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -51,9 +51,40 @@ cargo install beads_rust
|
|
|
51
51
|
|
|
52
52
|
## Quick Start
|
|
53
53
|
|
|
54
|
-
### 1.
|
|
54
|
+
### 1. Run the setup wizard
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
```bash
|
|
57
|
+
proto setup
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`proto setup` is an interactive wizard that picks a provider (OpenAI, Anthropic, Gemini, or any OpenAI-compatible endpoint), discovers the available models, optionally configures voice/STT, and writes everything to `~/.proto/settings.json` for you. Re-run it any time to switch providers or pick a different default model.
|
|
61
|
+
|
|
62
|
+
### 2. Set your API key
|
|
63
|
+
|
|
64
|
+
The wizard tells you which env var it expects (e.g. `OPENAI_API_KEY`). Set it once:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
export OPENAI_API_KEY=sk-your-key-here
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Or persist it in `~/.proto/.env`:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
OPENAI_API_KEY=sk-your-key-here
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 3. Run proto
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
proto # interactive mode
|
|
80
|
+
proto -p "explain this codebase" # one-shot mode
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
No auth screen — proto connects directly to your endpoint.
|
|
84
|
+
|
|
85
|
+
### Manual setup (advanced)
|
|
86
|
+
|
|
87
|
+
If you'd rather skip the wizard, drop a `~/.proto/settings.json` of your own:
|
|
57
88
|
|
|
58
89
|
```json
|
|
59
90
|
{
|
|
@@ -74,25 +105,6 @@ proto connects to any OpenAI-compatible API. Create `~/.proto/settings.json`:
|
|
|
74
105
|
}
|
|
75
106
|
```
|
|
76
107
|
|
|
77
|
-
### 2. Set your API key
|
|
78
|
-
|
|
79
|
-
Create `~/.proto/.env`:
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
MY_API_KEY=sk-your-key-here
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Or export it in your shell: `export MY_API_KEY=sk-your-key-here`
|
|
86
|
-
|
|
87
|
-
### 3. Run proto
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
proto # interactive mode
|
|
91
|
-
proto -p "explain this codebase" # one-shot mode
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
No auth screen — proto connects directly to your endpoint.
|
|
95
|
-
|
|
96
108
|
### Example: Multiple models via a gateway
|
|
97
109
|
|
|
98
110
|
If you run a gateway like [LiteLLM](https://github.com/BerriAI/litellm) in front of multiple providers, register them all under `modelProviders.openai` and switch between them with `/model`:
|