better-ccflare 3.0.1 → 3.0.2

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
@@ -69,7 +69,7 @@ npm install -g better-ccflare
69
69
  # Start better-ccflare (Server + Dashboard)
70
70
  better-ccflare
71
71
  ```
72
-
72
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
73
73
  ### Install via bun
74
74
 
75
75
  ```bash
@@ -78,7 +78,7 @@ bun install -g better-ccflare
78
78
  # Start better-ccflare (Server + Dashboard)
79
79
  better-ccflare
80
80
  ```
81
-
81
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
82
82
  ### Install Pre-compiled Binary (All Architectures)
83
83
 
84
84
  Download the appropriate binary for your platform from [GitHub Releases](https://github.com/tombii/better-ccflare/releases/latest):
@@ -89,14 +89,14 @@ wget https://github.com/tombii/better-ccflare/releases/latest/download/better-cc
89
89
  chmod +x better-ccflare-linux-amd64
90
90
  ./better-ccflare-linux-amd64
91
91
  ```
92
-
92
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
93
93
  #### Linux ARM64 (Raspberry Pi 3/4/5, Oracle Cloud ARM, AWS Graviton)
94
94
  ```bash
95
95
  wget https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-linux-arm64
96
96
  chmod +x better-ccflare-linux-arm64
97
97
  ./better-ccflare-linux-arm64
98
98
  ```
99
-
99
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
100
100
  #### macOS Intel
101
101
  ```bash
102
102
  curl -L -o better-ccflare-macos-x86_64 https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-macos-x86_64
@@ -107,7 +107,7 @@ xattr -d com.apple.quarantine better-ccflare-macos-x86_64
107
107
 
108
108
  ./better-ccflare-macos-x86_64
109
109
  ```
110
-
110
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
111
111
  #### macOS Apple Silicon
112
112
  ```bash
113
113
  curl -L -o better-ccflare-macos-arm64 https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-macos-arm64
@@ -118,12 +118,13 @@ xattr -d com.apple.quarantine better-ccflare-macos-arm64
118
118
 
119
119
  ./better-ccflare-macos-arm64
120
120
  ```
121
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
121
122
 
122
123
  **macOS Gatekeeper Notice:** Our macOS binaries are not notarized by Apple as this requires a paid Apple Developer subscription. After downloading, you must remove the quarantine attribute using the `xattr` command shown above to run the binary. If you prefer not to run unsigned binaries, you can [install from source](#install-from-source) instead.
123
124
 
124
125
  #### Windows x86_64
125
126
  Download [`better-ccflare-windows-x64.exe`](https://github.com/tombii/better-ccflare/releases/latest/download/better-ccflare-windows-x64.exe) and run it.
126
-
127
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
127
128
  ### Run without installation (npx/bunx)
128
129
 
129
130
  ```bash
@@ -133,7 +134,7 @@ npx better-ccflare@latest
133
134
  # Run with bunx (faster for bun users)
134
135
  bunx better-ccflare@latest
135
136
  ```
136
-
137
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
137
138
  ### Install from source
138
139
 
139
140
  ```bash
@@ -148,6 +149,7 @@ bun run build
148
149
  # Start better-ccflare (TUI + Server)
149
150
  bun run better-ccflare
150
151
  ```
152
+ Continue to [Configure Claude SDK](https://github.com/tombii/better-ccflare#configure-claude-sdk).
151
153
 
152
154
  **Note**: You must run `bun run build` at least once to build the dashboard files before starting the server. This can also be done by running `bun run better-ccflare` which includes the build step.
153
155
 
@@ -283,23 +285,12 @@ See [DOCKER.md](DOCKER.md) for detailed Docker documentation.
283
285
  ```bash
284
286
  # Set the base URL to point to better-ccflare
285
287
  export ANTHROPIC_BASE_URL=http://localhost:8080
288
+ export ANTHROPIC_API_KEY=dummy-key
286
289
 
287
- # Add multiple accounts with priorities
288
- better-ccflare --add-account primary --mode claude-oauth --priority 0
289
- better-ccflare --add-account secondary --mode claude-oauth --priority 10
290
-
291
- # Add OpenAI-compatible provider (like OpenRouter)
292
- better-ccflare --add-account openrouter --mode openai-compatible --priority 5
293
-
294
- # Enable auto-fallback on your primary account (via API)
295
- curl -X POST http://localhost:8080/api/accounts/$(curl -s http://localhost:8080/api/accounts | jq -r '.[0].id')/auto-fallback \
296
- -H "Content-Type: application/json" \
297
- -d '{"enabled": 1}'
290
+ # Make sure to configure your accounts in the better-ccflare dashboard
298
291
 
299
- # Configure custom endpoint for an account (via API)
300
- curl -X POST http://localhost:8080/api/accounts/$(curl -s http://localhost:8080/api/accounts | jq -r '.[0].id')/custom-endpoint \
301
- -H "Content-Type: application/json" \
302
- -d '{"customEndpoint": "https://your-custom-api.anthropic.com"}'
292
+ # Start claude
293
+ claude
303
294
  ```
304
295
 
305
296
  ### SSL/HTTPS Configuration
@@ -515,10 +506,22 @@ No `NODE_OPTIONS` needed - Traefik provides trusted certificates automatically!
515
506
  - **API Key Authentication** - Secure API key management for OpenAI-compatible providers
516
507
  - **Cost Tracking** - Automatic cost calculation for usage monitoring and budgeting
517
508
 
509
+ ## Troubleshooting Database Issues
510
+
511
+ If you encounter "All accounts failed" errors, the database runs integrity checks automatically on startup and will guide you to repair if needed. You can also manually run:
512
+
513
+ ```bash
514
+ bun run cli --repair-db
515
+ ```
516
+
517
+ This will check integrity, fix NULL values, validate constraints, and optimize the database. See the [Troubleshooting Guide](docs/troubleshooting.md#database-corruption-or-integrity-errors) for more details.
518
+
518
519
  ## Documentation
519
520
 
520
521
  Full documentation available in [`docs/`](docs/):
521
522
  - [Getting Started](docs/index.md)
523
+ - [CLI Commands](docs/cli.md)
524
+ - [Troubleshooting](docs/troubleshooting.md)
522
525
  - [Architecture](docs/architecture.md)
523
526
  - [API Reference](docs/api-http.md)
524
527
  - [Configuration](docs/configuration.md)
@@ -604,7 +607,3 @@ MIT - See [LICENSE](LICENSE) for details
604
607
  <p align="center">
605
608
  Built with ❤️ for developers who ship
606
609
  </p>
607
-
608
- [![Mentioned in Awesome Claude Code](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/hesreallyhim/awesome-claude-code)
609
-
610
- [![Mentioned in Awesome Claude Code](https://awesome.re/mentioned-badge.svg)](https://github.com/hesreallyhim/awesome-claude-code)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-ccflare",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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": {