agentspend 0.1.3 → 0.1.4

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 (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # AgentSpend
2
+
3
+ CLI for managing AI agent payment methods — cards (Stripe) and crypto wallets (USDC on Base).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g agentspend
9
+ ```
10
+
11
+ ## Card setup (Stripe)
12
+
13
+ ```bash
14
+ # Start card setup — opens Stripe in your browser
15
+ agentspend card setup
16
+
17
+ # Check setup status
18
+ agentspend card status
19
+ ```
20
+
21
+ `card setup` creates a card via the AgentSpend API, opens the Stripe setup URL in your browser, and polls until the card is ready. The `card_id` is saved to `~/.agentspend/card.json`.
22
+
23
+ Agents use the `card_id` to pay services by sending `x-card-id: card_xxx` in request headers.
24
+
25
+ ## Wallet (crypto)
26
+
27
+ ```bash
28
+ # Generate a new wallet for x402 payments
29
+ agentspend wallet create
30
+
31
+ # Show address, network, and USDC balance
32
+ agentspend wallet status
33
+ ```
34
+
35
+ `wallet create` generates a local private key and saves it to `~/.agentspend/wallet.json`. Fund the address with USDC on Base to pay x402-enabled services.
36
+
37
+ ## Configuration
38
+
39
+ | Variable | Description |
40
+ |----------|-------------|
41
+ | `AGENTSPEND_API_URL` | Platform API base URL (default: `https://api.agentspend.co`) |
42
+
43
+ Config files are stored in `~/.agentspend/`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentspend",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for AgentSpend — manage cards and crypto wallets for AI agent payments",
5
5
  "repository": {
6
6
  "type": "git",