@dominusnode/pi-extension 1.0.0
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/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +373 -0
- package/dist/toolkit.d.ts +94 -0
- package/dist/toolkit.js +1109 -0
- package/package.json +39 -0
- package/skills/use-dominus-proxy.md +115 -0
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dominusnode/pi-extension",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Dominus Node pi-mono extension — 26 tools for rotating proxy, wallet, agentic wallets, teams, and payments",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package",
|
|
7
|
+
"dominusnode",
|
|
8
|
+
"proxy",
|
|
9
|
+
"ai-agent",
|
|
10
|
+
"rotating-proxy"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/",
|
|
17
|
+
"skills/",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"CHANGELOG.md"
|
|
21
|
+
],
|
|
22
|
+
"pi": {
|
|
23
|
+
"extensions": ["./dist"],
|
|
24
|
+
"skills": ["./skills"]
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"lint": "tsc --noEmit"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@sinclair/typebox": "^0.34.0",
|
|
33
|
+
"typescript": "^5.4.0",
|
|
34
|
+
"vitest": "^1.6.0"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=20.0.0"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: use-dominus-proxy
|
|
3
|
+
description: >
|
|
4
|
+
Route HTTP requests through the Dominus Node rotating proxy service.
|
|
5
|
+
Use when a task requires fetching URLs with IP rotation, bypassing
|
|
6
|
+
geo-restrictions, avoiding rate limiting, or using residential IPs
|
|
7
|
+
to appear as a regular user. Also covers wallet management,
|
|
8
|
+
agentic sub-wallet funding, team billing, and crypto/fiat top-ups.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Dominus Node Rotating Proxy — Usage Guide
|
|
12
|
+
|
|
13
|
+
## Authentication
|
|
14
|
+
|
|
15
|
+
Set your API key before running pi:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
export DOMINUSNODE_API_KEY="dn_live_your_key_here"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Available Tools (26 total)
|
|
22
|
+
|
|
23
|
+
The Dominus Node extension registers these tools automatically:
|
|
24
|
+
|
|
25
|
+
| Tool | Purpose |
|
|
26
|
+
|------|---------|
|
|
27
|
+
| `dominusnode_proxied_fetch` | Fetch a URL through rotating IPs |
|
|
28
|
+
| `dominusnode_check_balance` | Get wallet balance |
|
|
29
|
+
| `dominusnode_check_usage` | Bandwidth usage stats |
|
|
30
|
+
| `dominusnode_get_proxy_config` | Proxy endpoint details |
|
|
31
|
+
| `dominusnode_list_sessions` | Active proxy sessions |
|
|
32
|
+
| `dominusnode_create_agentic_wallet` | Create agent sub-wallet |
|
|
33
|
+
| `dominusnode_fund_agentic_wallet` | Fund agent sub-wallet |
|
|
34
|
+
| `dominusnode_check_agentic_balance` | Sub-wallet balance |
|
|
35
|
+
| `dominusnode_list_agentic_wallets` | All sub-wallets |
|
|
36
|
+
| `dominusnode_agentic_transactions` | Sub-wallet transaction history |
|
|
37
|
+
| `dominusnode_freeze_agentic_wallet` | Freeze sub-wallet |
|
|
38
|
+
| `dominusnode_unfreeze_agentic_wallet` | Unfreeze sub-wallet |
|
|
39
|
+
| `dominusnode_delete_agentic_wallet` | Delete sub-wallet |
|
|
40
|
+
| `dominusnode_create_team` | Create team with shared wallet |
|
|
41
|
+
| `dominusnode_list_teams` | List teams |
|
|
42
|
+
| `dominusnode_team_details` | Team details and balance |
|
|
43
|
+
| `dominusnode_team_fund` | Fund team wallet |
|
|
44
|
+
| `dominusnode_team_create_api_key` | Create team API key |
|
|
45
|
+
| `dominusnode_team_usage` | Team bandwidth stats |
|
|
46
|
+
| `dominusnode_update_team` | Update team settings |
|
|
47
|
+
| `dominusnode_update_team_member_role` | Change member role |
|
|
48
|
+
| `dominusnode_topup_paypal` | Top up via PayPal |
|
|
49
|
+
| `dominusnode_topup_stripe` | Top up via Stripe |
|
|
50
|
+
| `dominusnode_topup_crypto` | Top up via crypto (BTC/ETH/USDC/...) |
|
|
51
|
+
| `dominusnode_x402_info` | x402 micropayment config |
|
|
52
|
+
| `dominusnode_update_wallet_policy` | Set spending limits/domain restrictions |
|
|
53
|
+
|
|
54
|
+
## Direct Proxy Usage (via bash tool)
|
|
55
|
+
|
|
56
|
+
If you prefer to use curl directly through the proxy:
|
|
57
|
+
|
|
58
|
+
### Datacenter Pool ($3/GB — fastest)
|
|
59
|
+
```bash
|
|
60
|
+
curl -x "http://dc-country-US:${DOMINUSNODE_API_KEY}@proxy.dominusnode.com:8080" \
|
|
61
|
+
"https://target-site.com/page"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Residential Pool ($5/GB — appears as regular user)
|
|
65
|
+
```bash
|
|
66
|
+
curl -x "http://residential-country-GB:${DOMINUSNODE_API_KEY}@proxy.dominusnode.com:8080" \
|
|
67
|
+
"https://target-site.com/page"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Auto Pool (system chooses best)
|
|
71
|
+
```bash
|
|
72
|
+
curl -x "http://auto:${DOMINUSNODE_API_KEY}@proxy.dominusnode.com:8080" \
|
|
73
|
+
"https://target-site.com/page"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## SOCKS5 Proxy
|
|
77
|
+
```bash
|
|
78
|
+
curl --socks5 "socks5://auto:${DOMINUSNODE_API_KEY}@proxy.dominusnode.com:1080" \
|
|
79
|
+
"https://target-site.com/page"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Python (requests library)
|
|
83
|
+
```python
|
|
84
|
+
import os
|
|
85
|
+
proxies = {
|
|
86
|
+
"http": f"http://dc-country-US:{os.environ['DOMINUSNODE_API_KEY']}@proxy.dominusnode.com:8080",
|
|
87
|
+
"https": f"http://dc-country-US:{os.environ['DOMINUSNODE_API_KEY']}@proxy.dominusnode.com:8080",
|
|
88
|
+
}
|
|
89
|
+
resp = requests.get("https://target-site.com", proxies=proxies, timeout=30)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Agentic Wallet Pattern (for swarm sub-agents)
|
|
93
|
+
|
|
94
|
+
Give each sub-agent its own wallet with a spending cap:
|
|
95
|
+
```
|
|
96
|
+
1. dominusnode_create_agentic_wallet(label="agent-1", spendingLimitCents=500)
|
|
97
|
+
2. dominusnode_fund_agentic_wallet(walletId=<id>, amountCents=1000)
|
|
98
|
+
3. Sub-agent uses its wallet ID for proxy authentication
|
|
99
|
+
4. dominusnode_check_agentic_balance(walletId=<id>) — monitor spend
|
|
100
|
+
5. dominusnode_freeze_agentic_wallet(walletId=<id>) — suspend if needed
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Pricing
|
|
104
|
+
|
|
105
|
+
| Pool | Price | Best for |
|
|
106
|
+
|------|-------|---------|
|
|
107
|
+
| Datacenter | $3.00/GB | Fast scraping, APIs, speed-sensitive tasks |
|
|
108
|
+
| Residential | $5.00/GB | Bypassing geo-blocks, appearing as real user |
|
|
109
|
+
|
|
110
|
+
## Security Notes
|
|
111
|
+
|
|
112
|
+
- Only `GET`, `HEAD`, and `OPTIONS` methods are permitted through `dominusnode_proxied_fetch`
|
|
113
|
+
- Private/internal IP ranges are blocked automatically (SSRF protection)
|
|
114
|
+
- OFAC sanctioned countries (CU, IR, KP, RU, SY) cannot be used as targets
|
|
115
|
+
- API keys are never logged or included in error messages
|