@shaidle/bridge 0.1.0 → 0.1.1
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 +8 -43
- package/dist/cli.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# @shaidle/bridge
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
capacity. You never connect a Claude account; the only credential is a Shaidle API token.
|
|
3
|
+
Run coding tasks on the [Shaidle](https://shaidle.com) exchange from your terminal — with the
|
|
4
|
+
Claude Code you already have, billed to your Shaidle wallet.
|
|
6
5
|
|
|
7
6
|
## Install
|
|
8
7
|
|
|
@@ -10,47 +9,13 @@ capacity. You never connect a Claude account; the only credential is a Shaidle A
|
|
|
10
9
|
npm i -g @shaidle/bridge
|
|
11
10
|
```
|
|
12
11
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
Mint a token in the web app under **Connect editor**, then:
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
shaidle login --token sk-shaidle-… --endpoint https://api.shaidle.io
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Use
|
|
22
|
-
|
|
23
|
-
**Open your own Claude Code on Shaidle — reverts when you close the terminal.** This wires the
|
|
24
|
-
endpoint + token into that session only; nothing is written to your global `~/.claude` config, so
|
|
25
|
-
your normal Claude setup is untouched the moment you quit.
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
shaidle code
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Run a one-off task** on the exchange without opening an editor — the result streams back, your
|
|
32
|
-
code stays on your machine:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
shaidle run "add a health endpoint to server.ts"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**Always-on (advanced):** print the two env vars to route any Anthropic-compatible tool through
|
|
39
|
-
Shaidle until you unset them.
|
|
12
|
+
## Quick start
|
|
40
13
|
|
|
41
14
|
```
|
|
42
|
-
shaidle
|
|
15
|
+
shaidle login --token sk-shaidle-… # token from the Shaidle web app → Connect editor
|
|
16
|
+
shaidle code # open your Claude Code on Shaidle (this session only)
|
|
17
|
+
shaidle run "fix the failing test" # or run a one-off task
|
|
43
18
|
```
|
|
44
19
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
| Command | What it does |
|
|
48
|
-
|---|---|
|
|
49
|
-
| `shaidle login --token <sk-shaidle-…> [--endpoint <url>]` | Save your credentials |
|
|
50
|
-
| `shaidle whoami` | Show the account the token belongs to |
|
|
51
|
-
| `shaidle code [claude args…]` | Open your Claude Code wired to Shaidle for this session only |
|
|
52
|
-
| `shaidle run "<prompt>" [--provider auto\|claude\|codex\|gemini\|cursor]` | Run a task, stream the result |
|
|
53
|
-
| `shaidle env` | Print env exports that point Claude Code at the exchange |
|
|
54
|
-
| `shaidle logout` | Forget the saved token |
|
|
55
|
-
|
|
56
|
-
Your code and prompts stay on your machine — only the request and its result cross the wire.
|
|
20
|
+
Run `shaidle help` for every command. Your code stays on your machine — only the request and its
|
|
21
|
+
result cross the wire.
|
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// and no provider SDK on the buyer's side.
|
|
9
9
|
//
|
|
10
10
|
// npm i -g @shaidle/bridge (at launch; pre-launch: build from the repo)
|
|
11
|
-
// shaidle login --token sk-shaidle-… [--endpoint https://api.shaidle.
|
|
11
|
+
// shaidle login --token sk-shaidle-… [--endpoint https://api.shaidle.com]
|
|
12
12
|
//
|
|
13
13
|
// Two ways to spend the credit after login:
|
|
14
14
|
// shaidle code ← open your OWN Claude Code, wired to the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shaidle/bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shaidle Local Bridge CLI — point your own Claude Code at the Shaidle exchange (per-session or always-on) and run coding tasks from your terminal, authenticated by a Shaidle API token.",
|
|
6
6
|
"keywords": [
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"bin": {
|
|
15
|
-
"shaidle": "
|
|
15
|
+
"shaidle": "dist/cli.js"
|
|
16
16
|
},
|
|
17
|
-
"main": "
|
|
17
|
+
"main": "dist/cli.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=18"
|
|
20
20
|
},
|