better-ccflare 3.3.18 → 3.3.20

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
@@ -5,9 +5,6 @@
5
5
 
6
6
  The ultimate Claude API proxy with intelligent load balancing across multiple accounts. Full visibility into every request, response, and rate limit.
7
7
 
8
- **🚨 Major Update (v3.0.0):** This release includes critical security fixes, OAuth token health monitoring, and new provider support (NanoGPT, Minimax). All users should upgrade immediately. See [migration guide](docs/migration-v2-to-v3.md) for details.
9
-
10
-
11
8
  https://github.com/user-attachments/assets/c859872f-ca5e-4f8b-b6a0-7cc7461fe62a
12
9
 
13
10
 
@@ -187,6 +184,10 @@ SESSION_DURATION_MS=18000000 # Session duration in milliseconds (5 hou
187
184
  RETRY_ATTEMPTS=3 # Number of retry attempts
188
185
  RETRY_DELAY_MS=1000 # Initial retry delay in milliseconds
189
186
  RETRY_BACKOFF=2 # Retry backoff multiplier
187
+
188
+ # Storage
189
+ STORE_PAYLOADS=false # Disable storing request/response bodies (reduces DB size and memory usage)
190
+ # Token counts, costs, model, status and timing are still recorded
190
191
  ```
191
192
 
192
193
  **Security Notes**:
@@ -229,6 +230,9 @@ LOG_FORMAT=pretty
229
230
  # Database configuration
230
231
  DATA_RETENTION_DAYS=7
231
232
  REQUEST_RETENTION_DAYS=365
233
+
234
+ # Storage (set to false to skip storing request/response bodies, reducing DB size and memory pressure)
235
+ STORE_PAYLOADS=true
232
236
  ```
233
237
 
234
238
  **Usage with different deployment methods**:
@@ -284,6 +288,10 @@ docker exec -it better-ccflare better-ccflare --list
284
288
 
285
289
  See [DOCKER.md](DOCKER.md) for detailed Docker documentation.
286
290
 
291
+ ### Systemd Deployment
292
+
293
+ For running better-ccflare as a native systemd service on Linux (without Docker), see the [Systemd Deployment Guide](docs/systemd.md). It covers unit file configuration, memory management with `--smol`, restart policies, and a preflight script that prevents `BUN_JSC_*` environment variable crashes.
294
+
287
295
  ## Configure Claude SDK
288
296
 
289
297
  ### Option 1: Using Claude CLI with OAuth (Recommended if you have Claude Pro/Team)
@@ -650,6 +658,7 @@ We recommend using one of the workarounds above until the npm bug is fixed.
650
658
  - **Universal API Format** - Use OpenAI-compatible providers with Claude API format
651
659
  - **Automatic Format Conversion** - Seamless conversion between Anthropic and OpenAI request/response formats
652
660
  - **Model Mapping** - Map Claude models (Opus, Sonnet, Haiku) to equivalent OpenAI models
661
+ - **Model Fallbacks** - Automatically retry with a fallback model when the requested model is unavailable (e.g., fallback from Opus to Sonnet on Pro subscriptions)
653
662
  - **Streaming Support** - Full support for streaming responses from OpenAI-compatible providers
654
663
  - **API Key Authentication** - Secure API key management for OpenAI-compatible providers
655
664
  - **Cost Tracking** - Automatic cost calculation for usage monitoring and budgeting
@@ -735,7 +744,7 @@ Inspired by [snipeship/ccflare](https://github.com/snipeship/ccflare) - thanks f
735
744
  - [@bitcoin4cashqc](https://github.com/bitcoin4cashqc) - SSL/HTTPS support implementation with comprehensive documentation
736
745
  - [@anonym-uz](https://github.com/anonym-uz) - Critical auto-pause bug fix, analytics performance optimizations, request body truncation, and incremental vacuum implementation
737
746
  - [@makhweeb](https://github.com/makhweeb) - Enhanced request handling and analytics improvements
738
- - [@jw409](https://github.com/jw409) - Fixed OAuth account addition in WSL2 and compiled binaries by replacing unreliable prompt() with readline
747
+ - [@jw409](https://github.com/jw409) - Fixed OAuth account addition in WSL2 and compiled binaries by replacing unreliable prompt() with readline; systemd deployment guide, BUN_JSC_* crash loop analysis, and preflight environment validator (PR #106)
739
748
  - [@materemias](https://github.com/materemias) - Testing and validation of Vertex AI provider implementation, thorough debugging of OAuth API key authentication (issue #54), requesting and validating AWS Bedrock support (issue #49), and extensive testing of new releases and features
740
749
  - [@tqtensor](https://github.com/tqtensor) - Comprehensive memory leak fix preventing OOM kills with smart chunk capping, memory monitoring, and optimized cleanup (PR #67)
741
750
  - [@lunetics](https://github.com/lunetics) - Force-reset rate limit feature allowing manual clearing of stale rate-limit locks via API, CLI, and dashboard with immediate usage polling (PR #68), OOM kill prevention with periodic data retention cleanup, 3-day default retention, and time-scoped stats queries (PR #70), model registry sync removing retired models and adding sonnet-4.6 CLI shortcut (PR #71)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-ccflare",
3
- "version": "3.3.18",
3
+ "version": "3.3.20",
4
4
  "description": "Load balancer proxy for Claude API with intelligent distribution across multiple OAuth accounts to avoid rate limiting",
5
5
  "license": "MIT",
6
6
  "repository": {