httpcat-cli 0.0.26 → 0.0.27-rc.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 (67) hide show
  1. package/.github/workflows/README.md +19 -2
  2. package/.github/workflows/ci.yml +31 -20
  3. package/.github/workflows/homebrew-tap.yml +1 -1
  4. package/.github/workflows/rc-publish.yml +169 -0
  5. package/.github/workflows/release.yml +223 -71
  6. package/README.md +94 -76
  7. package/bun.lock +2933 -0
  8. package/dist/commands/account.d.ts.map +1 -1
  9. package/dist/commands/account.js +14 -7
  10. package/dist/commands/account.js.map +1 -1
  11. package/dist/commands/balances.d.ts.map +1 -0
  12. package/dist/commands/balances.js +171 -0
  13. package/dist/commands/balances.js.map +1 -0
  14. package/dist/commands/buy.d.ts.map +1 -1
  15. package/dist/commands/buy.js +739 -32
  16. package/dist/commands/buy.js.map +1 -1
  17. package/dist/commands/chat.d.ts.map +1 -1
  18. package/dist/commands/chat.js +467 -906
  19. package/dist/commands/chat.js.map +1 -1
  20. package/dist/commands/claim.d.ts.map +1 -0
  21. package/dist/commands/claim.js +65 -0
  22. package/dist/commands/claim.js.map +1 -0
  23. package/dist/commands/create.d.ts.map +1 -1
  24. package/dist/commands/create.js +0 -1
  25. package/dist/commands/create.js.map +1 -1
  26. package/dist/commands/info.d.ts.map +1 -1
  27. package/dist/commands/info.js +128 -26
  28. package/dist/commands/info.js.map +1 -1
  29. package/dist/commands/list.d.ts.map +1 -1
  30. package/dist/commands/list.js +30 -23
  31. package/dist/commands/list.js.map +1 -1
  32. package/dist/commands/positions.d.ts.map +1 -1
  33. package/dist/commands/positions.js +178 -105
  34. package/dist/commands/positions.js.map +1 -1
  35. package/dist/commands/sell.d.ts.map +1 -1
  36. package/dist/commands/sell.js +713 -24
  37. package/dist/commands/sell.js.map +1 -1
  38. package/dist/index.js +315 -99
  39. package/dist/index.js.map +1 -1
  40. package/dist/interactive/shell.d.ts.map +1 -1
  41. package/dist/interactive/shell.js +328 -179
  42. package/dist/interactive/shell.js.map +1 -1
  43. package/dist/mcp/tools.d.ts.map +1 -1
  44. package/dist/mcp/tools.js +8 -8
  45. package/dist/mcp/tools.js.map +1 -1
  46. package/dist/utils/constants.d.ts.map +1 -0
  47. package/dist/utils/constants.js +66 -0
  48. package/dist/utils/constants.js.map +1 -0
  49. package/dist/utils/formatting.d.ts.map +1 -1
  50. package/dist/utils/formatting.js +3 -5
  51. package/dist/utils/formatting.js.map +1 -1
  52. package/dist/utils/token-resolver.d.ts.map +1 -1
  53. package/dist/utils/token-resolver.js +71 -40
  54. package/dist/utils/token-resolver.js.map +1 -1
  55. package/dist/utils/validation.d.ts.map +1 -1
  56. package/dist/utils/validation.js +4 -3
  57. package/dist/utils/validation.js.map +1 -1
  58. package/jest.config.js +1 -1
  59. package/package.json +19 -13
  60. package/.claude/settings.local.json +0 -41
  61. package/dist/commands/balance.d.ts.map +0 -1
  62. package/dist/commands/balance.js +0 -112
  63. package/dist/commands/balance.js.map +0 -1
  64. package/homebrew-httpcat/Formula/httpcat.rb +0 -18
  65. package/homebrew-httpcat/README.md +0 -31
  66. package/homebrew-httpcat/homebrew-httpcat/Formula/httpcat.rb +0 -18
  67. package/homebrew-httpcat/homebrew-httpcat/README.md +0 -31
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # httpcat CLI
1
+ # httpcat-cli
2
2
 
3
3
  > 🐱 Command-line interface for interacting with the httpcat agent - create, buy, and sell tokens with x402 payments
4
4
 
@@ -131,7 +131,7 @@ Available Commands:
131
131
  list [--sort mcap|created] List all tokens
132
132
  positions Get all your positions with comprehensive info
133
133
  chat [token] Start streaming chat (optional: token symbol/name/address)
134
- balance Check wallet balance (ETH and USDC)
134
+ balances Check wallet balances (ETH and USDC)
135
135
  health Check agent health
136
136
  config [--show|--set|--reset] Manage configuration
137
137
  network Show current network
@@ -150,13 +150,12 @@ httpcat> create "Meow Token" "MEOW"
150
150
  ┌─────────────────────────────────────────┐
151
151
  │ 🎉 Meow Token (MEOW) │
152
152
  ├─────────────────────────────────────────┤
153
- │ Token ID: abc123-4567-89ab-cdef-... │
154
153
  │ Address: 0x789abcd... │
155
154
  │ Supply: 1,000,000,000 MEOW │
156
155
  │ Status: Active │
157
156
  └─────────────────────────────────────────┘
158
157
 
159
- httpcat> buy abc123-4567-89ab-cdef-0123456789ab 0.20
158
+ httpcat> buy 0x789abcd... 0.20
160
159
 
161
160
  💰 Tokens purchased successfully!
162
161
 
@@ -196,9 +195,9 @@ httpcat create "My Token" "MTK" --photo https://example.com/photo.png --website
196
195
 
197
196
  **Options:**
198
197
 
199
- - `--photo <url>` - Token photo URL
200
- - `--banner <url>` - Banner image URL
201
- - `--website <url>` - Website URL
198
+ - `-p, --photo <url>` - Token photo URL
199
+ - `-b, --banner <url>` - Banner image URL
200
+ - `-w, --website <url>` - Website URL
202
201
 
203
202
  **Cost:** $0.01 USDC
204
203
 
@@ -209,7 +208,7 @@ Purchase tokens from the bonding curve.
209
208
  **Interactive:**
210
209
 
211
210
  ```bash
212
- httpcat> buy abc123-... 0.20
211
+ httpcat> buy 0x1234... 0.20
213
212
  httpcat> buy "My Token" 0.10
214
213
  httpcat> buy MTK 0.05
215
214
  ```
@@ -217,29 +216,29 @@ httpcat> buy MTK 0.05
217
216
  **CLI:**
218
217
 
219
218
  ```bash
220
- httpcat buy abc123-4567-89ab-cdef-0123456789ab 0.20
219
+ httpcat buy 0x1234567890abcdef1234567890abcdef12345678 0.20
221
220
  httpcat buy "My Token" 0.10
222
221
  httpcat buy MTK 0.05
223
222
  ```
224
223
 
225
224
  **Options:**
226
225
 
227
- - `--repeat <count>` - Execute multiple buys in sequence (stops early if token graduates or insufficient funds)
228
- - `--delay <ms>` - Delay in milliseconds between repeat operations (default: 0)
226
+ - `-r, --repeat <count>` - Execute multiple buys in sequence (stops early if token graduates or insufficient funds)
227
+ - `-d, --delay <ms>` - Delay in milliseconds between repeat operations (default: 0)
229
228
 
230
229
  **Examples with repeat:**
231
230
 
232
231
  ```bash
233
232
  # Execute 10 buys back-to-back
234
- httpcat buy MTK 0.10 --repeat 10
233
+ httpcat buy MTK 0.10 -r 10
235
234
 
236
235
  # Execute 10 buys with 500ms delay between each
237
- httpcat buy MTK 0.10 --repeat 10 --delay 500
236
+ httpcat buy MTK 0.10 -r 10 -d 500
238
237
  ```
239
238
 
240
239
  **Token Identifier:**
241
240
 
242
- - Token ID (UUID): `abc123-4567-89ab-cdef-0123456789ab`
241
+ - Token address: `0x1234...` (contract address)
243
242
  - Token name: `"My Token"` (use quotes if it contains spaces)
244
243
  - Token symbol: `MTK` (case-insensitive)
245
244
 
@@ -252,7 +251,8 @@ httpcat buy MTK 0.10 --repeat 10 --delay 500
252
251
 
253
252
  **Repeat Mode Behavior:**
254
253
 
255
- When using `--repeat`, the command will:
254
+ When using `-r, --repeat`, the command will:
255
+
256
256
  - Execute the specified number of buys sequentially
257
257
  - Stop early if the token graduates (reaches 100% graduation progress)
258
258
  - Stop early if you run out of funds (HTTP 402 error)
@@ -266,7 +266,7 @@ Sell tokens back to the bonding curve.
266
266
  **Interactive:**
267
267
 
268
268
  ```bash
269
- httpcat> sell abc123-... 1000 # Sell 1000 tokens
269
+ httpcat> sell 0x1234... 1000 # Sell 1000 tokens
270
270
  httpcat> sell "My Token" 50% # Sell 50% of holdings
271
271
  httpcat> sell MTK all # Sell all tokens
272
272
  ```
@@ -274,14 +274,14 @@ httpcat> sell MTK all # Sell all tokens
274
274
  **CLI:**
275
275
 
276
276
  ```bash
277
- httpcat sell abc123-4567-89ab-cdef-0123456789ab 1000
277
+ httpcat sell 0x1234567890abcdef1234567890abcdef12345678 1000
278
278
  httpcat sell "My Token" 50%
279
279
  httpcat sell MTK all
280
280
  ```
281
281
 
282
282
  **Token Identifier:**
283
283
 
284
- - Token ID (UUID), name, or symbol (same as buy command)
284
+ - Address, name, or symbol (same as buy command)
285
285
 
286
286
  **Cost:** Dynamic based on amount (1% fee deducted from proceeds)
287
287
 
@@ -292,7 +292,7 @@ Get detailed information about a token.
292
292
  **Interactive:**
293
293
 
294
294
  ```bash
295
- httpcat> info abc123-...
295
+ httpcat> info 0x1234...
296
296
  httpcat> info "My Token"
297
297
  httpcat> info MTK
298
298
  ```
@@ -300,14 +300,14 @@ httpcat> info MTK
300
300
  **CLI:**
301
301
 
302
302
  ```bash
303
- httpcat info abc123-4567-89ab-cdef-0123456789ab
303
+ httpcat info 0x1234567890abcdef1234567890abcdef12345678
304
304
  httpcat info "My Token"
305
305
  httpcat info MTK
306
306
  ```
307
307
 
308
308
  **Token Identifier:**
309
309
 
310
- - Token ID (UUID), name, or symbol (same as buy command)
310
+ - Address, name, or symbol (same as buy command)
311
311
 
312
312
  **Output:**
313
313
 
@@ -341,9 +341,9 @@ httpcat list --page 3 --sort name
341
341
 
342
342
  **Options:**
343
343
 
344
- - `--sort <field>` - Sort by `mcap`, `created`, or `name` (default: `mcap`)
345
- - `--limit <n>` - Items per page (default: 20, max: 100)
346
- - `--page <n>` - Page number (default: 1)
344
+ - `-s, --sort <field>` - Sort by `mcap`, `created`, or `name` (default: `mcap`)
345
+ - `-l, --limit <n>` - Items per page (default: 20, max: 100)
346
+ - `-p, --page <n>` - Page number (default: 1)
347
347
 
348
348
  **Cost:** $0.0001 USDC
349
349
 
@@ -361,13 +361,14 @@ httpcat> positions
361
361
 
362
362
  ```bash
363
363
  httpcat positions
364
- httpcat --json positions
365
- httpcat --private-key 0x... positions
364
+ httpcat -j positions
365
+ httpcat -k 0x... positions
366
366
  ```
367
367
 
368
368
  **Output:**
369
369
 
370
370
  For each position:
371
+
371
372
  - Token information (name, symbol, address, status, price, market cap, graduation progress)
372
373
  - Position details (tokens owned, USDC invested, current value, average cost per token)
373
374
  - Performance metrics (profit/loss in USDC and percentage ROI)
@@ -376,6 +377,7 @@ For each position:
376
377
  - Timestamps (position created and updated dates)
377
378
 
378
379
  Portfolio summary:
380
+
379
381
  - Total positions count
380
382
  - Total portfolio value
381
383
  - Total amount invested
@@ -383,21 +385,21 @@ Portfolio summary:
383
385
 
384
386
  **Cost:** $0.01 USDC
385
387
 
386
- ### Check Balance
388
+ ### Check Balances
387
389
 
388
390
  Check your wallet's ETH and USDC balances.
389
391
 
390
392
  **Interactive:**
391
393
 
392
394
  ```bash
393
- httpcat> balance
395
+ httpcat> balances
394
396
  ```
395
397
 
396
398
  **CLI:**
397
399
 
398
400
  ```bash
399
- httpcat balance
400
- httpcat balance --private-key 0x...
401
+ httpcat balances
402
+ httpcat balances -k 0x...
401
403
  ```
402
404
 
403
405
  **Output:**
@@ -449,8 +451,8 @@ httpcat chat
449
451
  httpcat chat MTK
450
452
  httpcat chat "My Token"
451
453
  httpcat chat 0x1234...
452
- httpcat --json chat MTK
453
- httpcat --json --input-format stream-json chat MTK # Structured JSON input
454
+ httpcat -j chat MTK
455
+ httpcat -j -f stream-json chat MTK # Structured JSON input
454
456
  ```
455
457
 
456
458
  **Token Identifier:**
@@ -461,7 +463,7 @@ httpcat --json --input-format stream-json chat MTK # Structured JSON input
461
463
 
462
464
  **Options:**
463
465
 
464
- - `--input-format <format>` - Input format (only works with `--json`): `"text"` (default) or `"stream-json"` (realtime streaming input)
466
+ - `-f, --input-format <format>` - Input format (only works with `--json`): `"text"` (default) or `"stream-json"` (realtime streaming input)
465
467
  - `"text"`: Line-delimited text input (default)
466
468
  - `"stream-json"`: Newline-delimited JSON (NDJSON) objects. Each line is a JSON object: `{"message": "text"}` or `{"command": "/renew"}`
467
469
 
@@ -469,6 +471,20 @@ httpcat --json --input-format stream-json chat MTK # Structured JSON input
469
471
 
470
472
  **Note:** For AI agents, consider using MCP tools (`chat_join`, `chat_send_message`, etc.) instead of CLI streaming for better integration. See [MCP Chat Tools](#chat-tools-usage-example) section.
471
473
 
474
+ ### Help
475
+
476
+ Display help information for httpcat.
477
+
478
+ **CLI:**
479
+
480
+ ```bash
481
+ httpcat help
482
+ httpcat --help
483
+ httpcat -h
484
+ ```
485
+
486
+ All three commands show the same help output with available commands and options.
487
+
472
488
  ### Configuration
473
489
 
474
490
  Manage your httpcat configuration.
@@ -476,17 +492,17 @@ Manage your httpcat configuration.
476
492
  **Interactive:**
477
493
 
478
494
  ```bash
479
- httpcat> config --show # Show current config
480
- httpcat> config --set network=base # Update a setting
481
- httpcat> config --reset # Re-run setup wizard
495
+ httpcat> config -s # Show current config
496
+ httpcat> config -S network=base # Update a setting
497
+ httpcat> config -r # Re-run setup wizard
482
498
  ```
483
499
 
484
500
  **CLI:**
485
501
 
486
502
  ```bash
487
503
  httpcat config # Run setup wizard
488
- httpcat config --show # Show current config (JSON)
489
- httpcat config --set network=base # Update a setting
504
+ httpcat config -s # Show current config (JSON)
505
+ httpcat config -S network=base # Update a setting
490
506
  ```
491
507
 
492
508
  ### MCP Server
@@ -529,10 +545,10 @@ Perfect for scripting, automation, or LLM/agent integration.
529
545
 
530
546
  ### JSON Output
531
547
 
532
- Add `--json` flag to any command:
548
+ Add `-j, --json` flag to any command:
533
549
 
534
550
  ```bash
535
- $ httpcat --json create "Test Token" "TEST"
551
+ $ httpcat -j create "Test Token" "TEST"
536
552
  {
537
553
  "success": true,
538
554
  "operation": "create_token",
@@ -739,7 +755,7 @@ All commands with `--json` flag return structured JSON responses. The output fol
739
755
  }
740
756
  ```
741
757
 
742
- **Balance (`balance`)**
758
+ **Balances (`balances`)**
743
759
 
744
760
  ```json
745
761
  {
@@ -765,7 +781,7 @@ All commands with `--json` flag return structured JSON responses. The output fol
765
781
  Minimal output, only exit codes:
766
782
 
767
783
  ```bash
768
- $ httpcat --quiet buy abc123-... 0.20
784
+ $ httpcat -q buy abc123-... 0.20
769
785
  $ echo $?
770
786
  0
771
787
  ```
@@ -785,21 +801,21 @@ $ echo $?
785
801
  #!/bin/bash
786
802
 
787
803
  # Create a token
788
- RESULT=$(httpcat --json create "AI Token" "AI")
789
- TOKEN_ID=$(echo $RESULT | jq -r '.data.tokenId')
804
+ RESULT=$(httpcat -j create "AI Token" "AI")
805
+ TOKEN_ADDRESS=$(echo $RESULT | jq -r '.data.tokenAddress')
790
806
 
791
807
  # Buy some tokens
792
- httpcat --json buy $TOKEN_ID 5
808
+ httpcat -j buy $TOKEN_ADDRESS 5
793
809
 
794
810
  # Get current info
795
- httpcat --json info $TOKEN_ID
811
+ httpcat -j info $TOKEN_ADDRESS
796
812
 
797
813
  # Sell 50% if profitable
798
- INFO=$(httpcat --json info $TOKEN_ID)
814
+ INFO=$(httpcat -j info $TOKEN_ADDRESS)
799
815
  PNL=$(echo $INFO | jq -r '.data.userPosition.pnl')
800
816
 
801
817
  if (( $(echo "$PNL > 0" | bc -l) )); then
802
- httpcat --json sell $TOKEN_ID 50%
818
+ httpcat -j sell $TOKEN_ADDRESS 50%
803
819
  fi
804
820
  ```
805
821
 
@@ -809,11 +825,11 @@ For scripts that need raw streaming access:
809
825
 
810
826
  ```bash
811
827
  # Using stream-json input format
812
- echo '{"message": "Hello!"}' | httpcat --json --input-format stream-json chat MTK
813
- echo '{"command": "/renew"}' | httpcat --json --input-format stream-json chat MTK
828
+ echo '{"message": "Hello!"}' | httpcat -j -f stream-json chat MTK
829
+ echo '{"command": "/renew"}' | httpcat -j -f stream-json chat MTK
814
830
 
815
831
  # Or pipe multiple messages
816
- cat messages.ndjson | httpcat --json --input-format stream-json chat MTK
832
+ cat messages.ndjson | httpcat -j -f stream-json chat MTK
817
833
  ```
818
834
 
819
835
  **Note:** For AI agents, MCP tools are recommended over CLI streaming. See [MCP Chat Tools](#chat-tools-usage-example) section.
@@ -919,7 +935,7 @@ Buy tokens from the bonding curve.
919
935
 
920
936
  **Parameters:**
921
937
 
922
- - `identifier` (string, required) - Token ID (UUID), name, or symbol
938
+ - `identifier` (string, required) - Address, name, or symbol
923
939
  - `amount` (string, required) - Amount: "0.05", "0.10", or "0.20" (testnet) | "50", "100", or "200" (mainnet)
924
940
  - `privateKey` (string, optional) - Private key (overrides config/env)
925
941
 
@@ -931,7 +947,7 @@ Sell tokens back to the bonding curve.
931
947
 
932
948
  **Parameters:**
933
949
 
934
- - `identifier` (string, required) - Token ID (UUID), name, or symbol
950
+ - `identifier` (string, required) - Address, name, or symbol
935
951
  - `amount` (string, required) - Amount: number (e.g., "1000"), percentage (e.g., "50%"), or "all"
936
952
  - `privateKey` (string, optional) - Private key (overrides config/env)
937
953
 
@@ -943,7 +959,7 @@ Get detailed information about a token.
943
959
 
944
960
  **Parameters:**
945
961
 
946
- - `identifier` (string, required) - Token ID (UUID), name, or symbol
962
+ - `identifier` (string, required) - Address, name, or symbol
947
963
  - `privateKey` (string, optional) - Private key (overrides config/env)
948
964
 
949
965
  **Returns:** Token details, price, market cap, graduation progress, and your position (if you own tokens)
@@ -972,6 +988,7 @@ Get all your positions with comprehensive information including current value, p
972
988
  - `privateKey` (string, optional) - Private key (overrides config/env)
973
989
 
974
990
  **Returns:** All positions for the requesting address with:
991
+
975
992
  - Position details (tokens owned, USDC invested, current value, average cost)
976
993
  - Performance metrics (profit/loss, ROI percentage)
977
994
  - Position age and transaction history
@@ -1064,33 +1081,34 @@ Here's how an AI agent like Claude Code would use the chat tools:
1064
1081
 
1065
1082
  ```javascript
1066
1083
  // Step 1: Join the FRIDA token chat room
1067
- const joinResult = await mcp.callTool("chat_join", {
1068
- tokenIdentifier: "FRIDA"
1084
+ const joinResult = await mcp.callTool("chat_join", {
1085
+ tokenIdentifier: "FRIDA",
1069
1086
  });
1070
1087
  // Returns: { leaseId: "abc123...", leaseExpiresAt: "...", lastMessages: [...] }
1071
1088
 
1072
1089
  // Step 2: Send a message
1073
1090
  const sendResult = await mcp.callTool("chat_send_message", {
1074
1091
  message: "Hello FRIDA community!",
1075
- leaseId: joinResult.leaseId
1092
+ leaseId: joinResult.leaseId,
1076
1093
  });
1077
1094
  // Returns: { messageId: "msg456...", timestamp: "...", message: "...", author: "0x..." }
1078
1095
 
1079
1096
  // Step 3: Poll for new messages (agent does this periodically)
1080
1097
  const messages = await mcp.callTool("chat_get_recent_messages", {
1081
1098
  leaseId: joinResult.leaseId,
1082
- limit: 20
1099
+ limit: 20,
1083
1100
  });
1084
1101
  // Returns: { messages: [...] }
1085
1102
 
1086
1103
  // Step 4: Renew lease when needed
1087
1104
  const renewal = await mcp.callTool("chat_renew_lease", {
1088
- leaseId: joinResult.leaseId
1105
+ leaseId: joinResult.leaseId,
1089
1106
  });
1090
1107
  // Returns: { leaseId: "new-lease-id...", leaseExpiresAt: "..." }
1091
1108
  ```
1092
1109
 
1093
1110
  **Key Benefits:**
1111
+
1094
1112
  - No shell scripting or process management required
1095
1113
  - WebSocket connections maintained automatically by MCP server
1096
1114
  - Messages cached in memory for quick retrieval
@@ -1112,7 +1130,7 @@ Once configured, AI assistants can use the tools like this:
1112
1130
 
1113
1131
  ```
1114
1132
  create_token(name="Moon Token", symbol="MOON", websiteUrl="https://moon.com")
1115
- buy_token(identifier="abc123-...", amount="0.20")
1133
+ buy_token(identifier="0x1234...", amount="0.20")
1116
1134
  token_info(identifier="MOON")
1117
1135
  list_tokens(sort="mcap", limit=10)
1118
1136
  check_balance()
@@ -1190,7 +1208,7 @@ httpcat env show
1190
1208
 
1191
1209
  ```bash
1192
1210
  # Add a custom environment
1193
- httpcat env add production http://production-agent:8787 --network base
1211
+ httpcat env add production http://production-agent:8787 -n base
1194
1212
 
1195
1213
  # Switch to it
1196
1214
  httpcat env use production
@@ -1231,8 +1249,8 @@ You can also pass the private key directly via command-line flag (highest priori
1231
1249
 
1232
1250
  ```bash
1233
1251
  # Private key priority: CLI flag > Environment variable > Config file
1234
- httpcat --private-key 0x1234567890abcdef... create "My Token" "MTK"
1235
- httpcat --private-key 0x1234567890abcdef... --json buy abc123-... 0.20
1252
+ httpcat -k 0x1234567890abcdef... create "My Token" "MTK"
1253
+ httpcat -k 0x1234567890abcdef... -j buy 0x1234... 0.20
1236
1254
  ```
1237
1255
 
1238
1256
  **Note:** The `--private-key` flag takes precedence over environment variables and config file settings.
@@ -1241,8 +1259,8 @@ httpcat --private-key 0x1234567890abcdef... --json buy abc123-... 0.20
1241
1259
 
1242
1260
  ```bash
1243
1261
  # Switch to mainnet
1244
- httpcat config --set network=base
1245
- httpcat config --set agentUrl=http://production-url:8787
1262
+ httpcat config -S network=base
1263
+ httpcat config -S agentUrl=http://production-url:8787
1246
1264
 
1247
1265
  # Or in interactive mode
1248
1266
  httpcat> network base
@@ -1357,10 +1375,10 @@ httpcat config --show
1357
1375
 
1358
1376
  ### Check Wallet Balance
1359
1377
 
1360
- Use the balance command to check your wallet's ETH and USDC balances:
1378
+ Use the balances command to check your wallet's ETH and USDC balances:
1361
1379
 
1362
1380
  ```bash
1363
- httpcat balance
1381
+ httpcat balances
1364
1382
  ```
1365
1383
 
1366
1384
  This will show your wallet address, ETH balance (for gas fees), and USDC balance (for trading), with warnings if balances are low.
@@ -1373,23 +1391,23 @@ This will show your wallet address, ETH balance (for gas fees), and USDC balance
1373
1391
  # Setup
1374
1392
  httpcat config
1375
1393
 
1376
- # Check your wallet balance
1377
- httpcat balance
1394
+ # Check your wallet balances
1395
+ httpcat balances
1378
1396
 
1379
1397
  # Create a token
1380
- httpcat create "Moon Cat" "MOON" --website https://mooncat.io
1398
+ httpcat create "Moon Cat" "MOON" -w --website https://mooncat.io
1381
1399
 
1382
1400
  # Buy tokens
1383
- httpcat buy <tokenId> 5
1401
+ httpcat buy 0x1234... 5
1384
1402
 
1385
1403
  # Check your position
1386
- httpcat info <tokenId>
1404
+ httpcat info 0x1234...
1387
1405
 
1388
1406
  # Get all your positions with comprehensive info
1389
1407
  httpcat positions
1390
1408
 
1391
1409
  # Sell half when profitable
1392
- httpcat sell <tokenId> 50%
1410
+ httpcat sell 0x1234... 50%
1393
1411
 
1394
1412
  # List all your tokens (shows positions)
1395
1413
  httpcat list
@@ -1400,16 +1418,16 @@ httpcat list
1400
1418
  ```bash
1401
1419
  #!/bin/bash
1402
1420
 
1403
- TOKEN_ID="abc123-..."
1421
+ TOKEN_ADDRESS="0x1234567890abcdef1234567890abcdef12345678"
1404
1422
 
1405
1423
  # Monitor and trade
1406
1424
  while true; do
1407
- INFO=$(httpcat --json info $TOKEN_ID)
1425
+ INFO=$(httpcat -j info $TOKEN_ADDRESS)
1408
1426
  PROGRESS=$(echo $INFO | jq -r '.data.graduationProgress')
1409
1427
 
1410
1428
  # Buy if close to graduation
1411
1429
  if (( $(echo "$PROGRESS > 90" | bc -l) )); then
1412
- httpcat --quiet buy $TOKEN_ID 5
1430
+ httpcat -q buy $TOKEN_ADDRESS 5
1413
1431
  fi
1414
1432
 
1415
1433
  sleep 60