@sleds/cli 0.1.0

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.
Files changed (3) hide show
  1. package/README.md +48 -0
  2. package/dist/sleds.mjs +2721 -0
  3. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @sleds/cli
2
+
3
+ The cost and limits of AI agent work, decided at the wall.
4
+
5
+ SLEDS sits in front of Claude Code. It meters what you spend, sizes a job before it runs, and when you hit a limit — a rate limit, a weekly cap, exhausted credits — it gives you a choice right there in the terminal: continue on the org key, hold until the window resets, switch to a cheaper model, or run it overnight at half price.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npx @sleds/cli init --signup
11
+ ```
12
+
13
+ No org? That's the whole setup: your email plus your own Anthropic API key. SLEDS checks the key, stores it encrypted, and it's the only key your seat ever spends. If your team already runs SLEDS, use the seat token your admin gave you instead:
14
+
15
+ ```bash
16
+ npx @sleds/cli init --token sled_…
17
+ ```
18
+
19
+ `init` points Claude Code at the proxy, installs the `/sled` skill and the status-line meter, and registers two hooks: one that records a usage-limit moment, and one that sizes spec files as you write them.
20
+
21
+ The package is `@sleds/cli`; the command it installs is `sleds`. Requires Node 22.5+ (or Bun). Claude Code must be installed. `seat-sync` is macOS-only.
22
+
23
+ ## Every day
24
+
25
+ ```
26
+ sleds status switch state, proxy health, wall mode
27
+ sleds meter built today · queued · delivered overnight · estimate accuracy
28
+ sleds on hit a limit on your seat? move Claude Code onto the org key
29
+ sleds off back to your seat
30
+ sleds seat-sync read your Claude subscription's own limits into SLEDS (macOS)
31
+ sleds bar the same numbers for the menu bar (SwiftBar)
32
+ sleds mcp MCP server: usage / estimate / overnight / jobs, for Cowork and other clients
33
+ ```
34
+
35
+ Inside Claude Code:
36
+
37
+ ```
38
+ /sled estimate <what you're about to do> a band, a cap, and the price on each model
39
+ /sled 1 · 2 · 3 · 4 at a wall: continue · hold · overnight · switch model
40
+ /sled overnight <spec> queue a batch job with no wall
41
+ /sled jobs · /sled resume <id> what ran overnight, pulled into the session
42
+ ```
43
+
44
+ Nothing changes until a wall.
45
+
46
+ ## Docs
47
+
48
+ Repo: github.com/spdyadam/sleds · Site: sleds.ai