duskware 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +119 -39
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,32 +6,118 @@ CLI for Duskware - Sovereign Onchain Runtime for AI Agents on Base.
6
6
 
7
7
  ```bash
8
8
  npm install -g duskware
9
- # or
9
+ # or run directly with npx
10
10
  npx duskware
11
11
  ```
12
12
 
13
13
  ## Quick Start
14
14
 
15
15
  ```bash
16
- # Initialize a new agent
17
- duskware init
16
+ # Initialize a new agent identity
17
+ npx duskware init
18
18
 
19
- # Check agent status
20
- duskware status
19
+ # Add credits (requires USDC on Base)
20
+ npx duskware credits topup 10
21
+
22
+ # Run AI inference
23
+ npx duskware inference prompt "Hello, I am an autonomous agent"
24
+
25
+ # Check your status
26
+ npx duskware status
21
27
  ```
22
28
 
23
29
  ## Commands
24
30
 
31
+ ### Credits (Unified Balance)
32
+
33
+ Duskware uses a unified credits system. Deposit USDC once, use across all services.
34
+
35
+ ```bash
36
+ # Check your credits balance
37
+ duskware credits balance
38
+
39
+ # Top up credits ($5, $10, $25, $50, or $100)
40
+ duskware credits topup 10
41
+
42
+ # View transaction history
43
+ duskware credits transactions
44
+
45
+ # View usage breakdown by service
46
+ duskware credits usage
47
+ ```
48
+
49
+ ### Inference
50
+
51
+ Access Claude, GPT, and other frontier models. Paid from your credits balance.
52
+
53
+ ```bash
54
+ # Send inference request (uses claude-4.5-sonnet by default)
55
+ duskware inference prompt "What is the meaning of life?"
56
+
57
+ # Specify a different model
58
+ duskware inference prompt "Hello" --model claude-4.5-haiku
59
+
60
+ # List available models and pricing
61
+ duskware inference models
62
+
63
+ # Check credits balance
64
+ duskware inference balance
65
+
66
+ # Check inference proxy health
67
+ duskware inference health
68
+ ```
69
+
70
+ **Available Models:**
71
+ | Model | Price |
72
+ |-------|-------|
73
+ | claude-4.5-haiku | $0.01 |
74
+ | claude-4.5-sonnet | $0.05 |
75
+ | claude-4.5-opus | $0.25 |
76
+ | gpt-5.2 | $0.10 |
77
+ | gpt-5-mini | $0.03 |
78
+
25
79
  ### Agent Identity
26
80
 
27
81
  ```bash
28
- # Deploy new AgentIdentity contract
29
- duskware init --network sepolia --name "MyAgent" --capabilities "research,coding"
82
+ # Deploy new AgentIdentity contract on Base
83
+ duskware init
30
84
 
31
85
  # Show agent status
32
86
  duskware status
33
87
  ```
34
88
 
89
+ ### Sandboxes
90
+
91
+ Persistent Linux environments for autonomous agents.
92
+
93
+ ```bash
94
+ # List your sandboxes
95
+ duskware sandbox list
96
+
97
+ # Create a new sandbox
98
+ duskware sandbox create my-agent --tier starter
99
+
100
+ # Execute command in sandbox
101
+ duskware sandbox exec <sandboxId> "echo hello"
102
+
103
+ # Stop sandbox (sleep mode - preserves state)
104
+ duskware sandbox stop <sandboxId>
105
+
106
+ # Delete sandbox
107
+ duskware sandbox delete <sandboxId>
108
+
109
+ # View available tiers and pricing
110
+ duskware sandbox tiers
111
+ ```
112
+
113
+ **Sandbox Tiers:**
114
+ | Tier | vCPU | Memory | Disk | Price |
115
+ |------|------|--------|------|-------|
116
+ | starter | 1 | 512 MB | 5 GB | $5/mo |
117
+ | medium | 2 | 2 GB | 20 GB | $10/mo |
118
+ | power | 4 | 8 GB | 50 GB | $25/mo |
119
+ | pro | 8 | 16 GB | 100 GB | $50/mo |
120
+
35
121
  ### Skills
36
122
 
37
123
  ```bash
@@ -62,7 +148,7 @@ duskware spawn revoke <childAddress>
62
148
  ### Trust
63
149
 
64
150
  ```bash
65
- # Submit attestation
151
+ # Submit attestation (score 1-100)
66
152
  duskware trust attest <agentAddress> <score> --context "Great work"
67
153
 
68
154
  # Get trust score
@@ -89,20 +175,23 @@ duskware memory read
89
175
  duskware memory version
90
176
  ```
91
177
 
92
- ### Inference
178
+ ### Specter (Autonomous Agents)
93
179
 
94
180
  ```bash
95
- # Send inference request
96
- duskware inference prompt "What is the meaning of life?" --model claude-sonnet
181
+ # Initialize specter configuration
182
+ duskware specter init
97
183
 
98
- # List available models
99
- duskware inference models
184
+ # Start autonomous agent
185
+ duskware specter start
100
186
 
101
- # Check prepaid balance
102
- duskware inference balance
187
+ # Check status
188
+ duskware specter status
189
+
190
+ # Stop agent
191
+ duskware specter stop
103
192
 
104
- # Prepay USDC for inference
105
- duskware inference prepay 10
193
+ # View logs
194
+ duskware specter logs
106
195
  ```
107
196
 
108
197
  ## Configuration
@@ -116,34 +205,25 @@ Config files are stored in `~/.duskware/`:
116
205
  └── memory/ # Local memory cache
117
206
  ```
118
207
 
119
- ## Networks
208
+ ## Network
120
209
 
121
- - **Base Sepolia** (testnet): `--network sepolia`
122
- - **Base Mainnet**: `--network mainnet`
210
+ Duskware runs on **Base Mainnet** by default.
123
211
 
124
- ## Contract Addresses
212
+ - **USDC Contract**: `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`
213
+ - **Chain ID**: 8453
125
214
 
126
- ### Base Sepolia
127
- - USDC: `0x036CbD53842c5426634e7929541eC2318f3dCF7e`
215
+ ## Payment
128
216
 
129
- ### Base Mainnet
130
- - USDC: `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`
217
+ All payments are processed via the x402 protocol through OpenX402.ai facilitator:
218
+ - USDC on Base Mainnet
219
+ - EIP-3009 gasless transfers
220
+ - Payments go directly to Duskware treasury
131
221
 
132
- ## Development
222
+ ## Links
133
223
 
134
- ```bash
135
- # Install dependencies
136
- npm install
137
-
138
- # Build
139
- npm run build
140
-
141
- # Watch mode
142
- npm run dev
143
-
144
- # Run tests
145
- npm test
146
- ```
224
+ - **Dashboard**: https://duskware.xyz
225
+ - **Documentation**: https://docs.duskware.xyz
226
+ - **npm**: https://www.npmjs.com/package/duskware
147
227
 
148
228
  ## License
149
229
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "duskware",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI for Duskware - Sovereign Onchain Runtime for AI Agents",
5
5
  "main": "dist/index.js",
6
6
  "bin": {