@clawcard/cli 1.0.1 → 1.0.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 ADDED
@@ -0,0 +1,92 @@
1
+ # @clawcard/cli
2
+
3
+ On-demand credit cards, email, and phone for your AI agents.
4
+
5
+ ClawCard gives your agent a full identity — dedicated email inbox, SMS-enabled US phone number, virtual Mastercards with spend limits, and an encrypted credential vault. One API key, simple REST endpoints.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @clawcard/cli
11
+ ```
12
+
13
+ ## Get Started
14
+
15
+ ```bash
16
+ # Sign up (requires invite code)
17
+ clawcard signup
18
+
19
+ # Or log in
20
+ clawcard login
21
+
22
+ # Create an API key
23
+ clawcard keys create
24
+
25
+ # Set up your agent (installs skill + configures API key)
26
+ clawcard setup
27
+ ```
28
+
29
+ `clawcard setup` uses [skills.sh](https://skills.sh) to install the ClawCard skill for your agent. Works with Claude Code, Cursor, Codex, Cline, OpenClaw, and 40+ other agents.
30
+
31
+ ## Commands
32
+
33
+ ### Authentication
34
+ | Command | Description |
35
+ |---|---|
36
+ | `clawcard login` | Log in via browser |
37
+ | `clawcard signup` | Sign up with invite code |
38
+ | `clawcard logout` | Clear session |
39
+ | `clawcard whoami` | Show current account |
40
+
41
+ ### Keys
42
+ | Command | Description |
43
+ |---|---|
44
+ | `clawcard keys` | Interactive key management |
45
+ | `clawcard keys create` | Create a new API key |
46
+ | `clawcard keys list` | List all keys |
47
+ | `clawcard keys info` | Show key details |
48
+ | `clawcard keys revoke` | Revoke a key |
49
+
50
+ ### Setup
51
+ | Command | Description |
52
+ |---|---|
53
+ | `clawcard setup` | Install ClawCard skill for your agent |
54
+
55
+ ### Billing
56
+ | Command | Description |
57
+ |---|---|
58
+ | `clawcard billing` | Interactive billing dashboard |
59
+ | `clawcard billing balance` | Quick balance check |
60
+ | `clawcard billing topup` | Top up balance |
61
+ | `clawcard billing upgrade` | Upgrade subscription |
62
+ | `clawcard billing transactions` | View transaction history |
63
+
64
+ ### Other
65
+ | Command | Description |
66
+ |---|---|
67
+ | `clawcard referral` | Show referral code |
68
+ | `clawcard help` | Show all commands |
69
+
70
+ ## What Your Agent Gets
71
+
72
+ Each API key comes with:
73
+
74
+ - **Email** — Dedicated inbox (@mail.clawcard.sh), send and receive
75
+ - **Phone** — SMS-enabled US number for verification codes
76
+ - **Virtual Cards** — Mastercards with per-card spend limits (single-use or merchant-locked)
77
+ - **Credential Vault** — AES-256 encrypted key-value storage
78
+ - **Budget Controls** — Per-key spending limits with full audit trail
79
+
80
+ ## Pricing
81
+
82
+ - **Free** — 1 key, 1 card/month
83
+ - **Starter** ($7/mo) — 2 keys, 5 cards/month
84
+ - **Pro** ($19/mo) — 5 keys, 25 cards/month
85
+
86
+ Card spend is separate — top up your balance anytime.
87
+
88
+ ## Links
89
+
90
+ - [Website](https://clawcard.sh)
91
+ - [Docs](https://clawcard.sh/docs)
92
+ - [Skill](https://github.com/latchagent/skill)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawcard/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "The ClawCard CLI — manage your agent keys, billing, and setup from the terminal",
5
5
  "bin": {
6
6
  "clawcard": "./bin/clawcard.mjs"
package/src/api.js CHANGED
@@ -17,7 +17,7 @@ async function request(path, options = {}) {
17
17
  const url = `${BASE_URL}${path}`;
18
18
  const headers = {
19
19
  "Content-Type": "application/json",
20
- Cookie: `better-auth.session_token=${token}`,
20
+ Authorization: `Bearer ${token}`,
21
21
  ...options.headers,
22
22
  };
23
23
 
package/src/index.js CHANGED
@@ -7,7 +7,7 @@ import { isLoggedIn } from "./config.js";
7
7
  showSplash();
8
8
 
9
9
  const program = new Command();
10
- program.name("clawcard").description("The ClawCard CLI").version("1.0.1");
10
+ program.name("clawcard").description("The ClawCard CLI").version("1.0.3");
11
11
 
12
12
  // Auth commands
13
13
  program