@askalf/dario 1.1.1 → 1.1.3
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 +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ That's it. Any tool that speaks the Anthropic API now uses your subscription.
|
|
|
33
33
|
|
|
34
34
|
You pay $100-200/mo for Claude Max or Pro. But that subscription only works on claude.ai and Claude Code. If you want to use Claude with **any other tool** — OpenClaw, Cursor, Continue, Aider, your own scripts — you need a separate API key with separate billing.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
**Note:** Claude subscriptions have [usage limits](https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work) that reset on rolling 5-hour and 7-day windows. When exceeded, Opus and Sonnet may return 429 errors while Haiku continues working. Use `--cli` mode to route through Claude Code's binary, which is not affected by these limits.
|
|
37
37
|
|
|
38
|
-
**dario fixes
|
|
38
|
+
**dario fixes this.** It creates a local proxy that translates API key auth into your subscription's OAuth tokens — and with `--cli` mode, routes through the Claude Code binary for uninterrupted access.
|
|
39
39
|
|
|
40
40
|
## Quick Start
|
|
41
41
|
|
|
@@ -95,7 +95,7 @@ python my_script.py
|
|
|
95
95
|
|
|
96
96
|
## CLI Backend
|
|
97
97
|
|
|
98
|
-
If you're getting rate limited on Opus or Sonnet, use `--cli` mode. This routes requests through the Claude Code binary instead of hitting the API directly
|
|
98
|
+
If you're getting rate limited on Opus or Sonnet, use `--cli` mode. This routes requests through the Claude Code binary instead of hitting the API directly. Claude Code has priority routing that continues working even when direct API calls return 429.
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
101
|
dario proxy --cli # Opus works even when rate limited
|
|
@@ -124,8 +124,8 @@ Model: claude-opus-4-6 (all requests)
|
|
|
124
124
|
| Streaming | Yes | No (full response) |
|
|
125
125
|
| Tool use passthrough | Yes | No |
|
|
126
126
|
| Latency | Low | Higher (process spawn) |
|
|
127
|
-
| Rate limits | Subject to
|
|
128
|
-
| Opus when throttled |
|
|
127
|
+
| Rate limits | Subject to 5h/7d quotas | Not affected |
|
|
128
|
+
| Opus when throttled | May return 429 | **Works** |
|
|
129
129
|
|
|
130
130
|
## Model Selection
|
|
131
131
|
|
|
@@ -290,7 +290,7 @@ ANTHROPIC_BASE_URL=http://localhost:3456 ANTHROPIC_API_KEY=dario your-tool-here
|
|
|
290
290
|
- All Claude models — including Opus when rate limited
|
|
291
291
|
- Non-streaming responses
|
|
292
292
|
- System prompts and multi-turn conversations (via context injection)
|
|
293
|
-
-
|
|
293
|
+
- Not affected by API rate limits
|
|
294
294
|
|
|
295
295
|
## Endpoints
|
|
296
296
|
|
|
@@ -343,7 +343,10 @@ Should work if your plan includes Claude Code access. Not tested yet — please
|
|
|
343
343
|
Dario auto-refreshes tokens 30 minutes before expiry. You should never see an auth error in normal use. If something goes wrong, `dario refresh` forces an immediate refresh, or `dario login` to re-authenticate.
|
|
344
344
|
|
|
345
345
|
**I'm getting rate limited on Opus. What do I do?**
|
|
346
|
-
Use `--cli` mode: `dario proxy --cli`. This routes through the Claude Code binary, which
|
|
346
|
+
Use `--cli` mode: `dario proxy --cli`. This routes through the Claude Code binary, which continues working when direct API calls are rate limited. You can also enable [extra usage](https://support.claude.com/en/articles/12429409-manage-extra-usage-for-paid-claude-plans) in your Anthropic account settings to extend your limits at API rates.
|
|
347
|
+
|
|
348
|
+
**What are the usage limits?**
|
|
349
|
+
Claude subscriptions have rolling 5-hour and 7-day usage windows shared across claude.ai and Claude Code. See [Anthropic's docs](https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work) for details. Check your current status with `echo "hi" | ANTHROPIC_LOG=debug claude --print --model claude-haiku-4-5 2>&1 | grep ratelimit`.
|
|
347
350
|
|
|
348
351
|
**Can I run this on a server?**
|
|
349
352
|
Dario binds to localhost by default. For server use, you'd need to handle the initial browser-based login on a machine with a browser, then copy `~/.dario/credentials.json` to your server. Auto-refresh will keep it alive from there.
|