@satori-sh/cli 0.0.12 → 0.0.14

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
@@ -21,7 +21,6 @@ npm install -g @satori-sh/cli
21
21
  Start memory-augmented chat sessions:
22
22
  ```bash
23
23
  satori "What's the best pizza topping?"
24
- satori "hello" --provider openai --model gpt-4o
25
24
  ```
26
25
 
27
26
  ### Search Memories
@@ -38,11 +37,15 @@ Add new memories:
38
37
  satori add "I like pizza"
39
38
  ```
40
39
 
40
+ ### Subscribe
41
+
42
+ Open checkout in the browser:
43
+ ```bash
44
+ npx @satori-sh sub
45
+ ```
46
+
41
47
  **Options & Memory:**
42
- - `--provider <openai|anthropic>` (default: openai)
43
- - `--model <model>` (default: gpt-4o)
44
48
  - `--memory-id <id>` (scopes conversations)
45
- - `--no-stream` (disables streaming)
46
49
 
47
50
  **Memory Sessions:** If no `--memory-id` is provided, a random ID is generated. Set `SATORI_MEMORY_ID=generated-id` to continue sessions:
48
51
  ```bash
@@ -55,22 +58,24 @@ satori chat "Follow up question"
55
58
  **Required:**
56
59
  - `SATORI_API_KEY` - Satori authentication key
57
60
 
58
- **For Chat:**
59
- - `OPENAI_API_KEY` / `ANTHROPIC_API_KEY` - LLM provider keys
60
-
61
61
  **Optional:**
62
62
  - `SATORI_BASE_URL` (default: http://localhost:8000)
63
- - `SATORI_PROVIDER` (default: openai)
64
- - `SATORI_MODEL` (default: gpt-4o)
63
+ - `SATORI_CHECKOUT_URL` - Stripe checkout link for `npx @satori-sh sub`
65
64
  - `SATORI_MEMORY_ID` - Session scoping
66
65
  - `SATORI_MOCK` - Enable mock mode
66
+ - `OPENAI_API_KEY` - Pass-through OpenAI key for `/ask` (sent as `X-OpenAI-Key`)
67
+ - `NODE_ENV` - Set to `development` to default to `http://localhost:8000`
68
+
69
+ Example:
70
+ ```bash
71
+ NODE_ENV=development bun run src/index.ts
72
+ ```
67
73
 
68
74
  ## Troubleshooting
69
75
 
70
- - **API Key Errors**: Ensure provider keys are set (`OPENAI_API_KEY` or `ANTHROPIC_API_KEY`)
71
- - **Memory Server Down**: Chat falls back to raw LLM responses with warning logs
76
+ - **API Key Errors**: Ensure `SATORI_API_KEY` is set
77
+ - **Memory Server Down**: Chat requests to `/ask` will fail
72
78
  - **Memory ID Issues**: Invalid IDs scope searches but don't break functionality
73
- - **Streaming Problems**: Use `--no-stream` for terminal compatibility
74
79
 
75
80
  ## Contributing
76
81