@otonix/cli 2.1.3 → 2.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.
- package/README.md +67 -40
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @otonix/cli
|
|
2
2
|
|
|
3
|
-
Otonix CLI — deploy autonomous agent tokens on Base
|
|
3
|
+
**Otonix CLI** — deploy autonomous agent tokens on Base via **Clanker v4 (Uniswap v4)**.
|
|
4
|
+
|
|
5
|
+
Each agent gets an isolated Base wallet. Tokens are deployed on-chain using the Clanker v4 protocol — no API key required, direct on-chain deploy. All tokens are verified by Otonix (@otonix_tech).
|
|
4
6
|
|
|
5
7
|
## Install
|
|
6
8
|
|
|
@@ -8,33 +10,33 @@ Otonix CLI — deploy autonomous agent tokens on Base chain via Clanker v3.1 (LP
|
|
|
8
10
|
npm install -g @otonix/cli
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
bash cli/otonix.sh <command>
|
|
15
|
-
```
|
|
13
|
+
Requires Node.js ≥ 18.
|
|
16
14
|
|
|
17
15
|
## Quick Start
|
|
18
16
|
|
|
19
17
|
```bash
|
|
20
|
-
# 1. Generate
|
|
18
|
+
# 1. Generate your creator wallet
|
|
21
19
|
otonix wallet generate
|
|
20
|
+
otonix wallet address
|
|
21
|
+
# → Fund it: ≥200 $OTX + 0.01 ETH (Base)
|
|
22
22
|
|
|
23
|
-
# 2.
|
|
24
|
-
# → Send ≥200 $OTX (agent activation)
|
|
25
|
-
# → Send ETH for gas
|
|
26
|
-
|
|
27
|
-
# 3. Create an agent (generates isolated Base wallet)
|
|
23
|
+
# 2. Create an agent (isolated Base wallet)
|
|
28
24
|
otonix agent:create --name "MyAgent"
|
|
25
|
+
otonix agent:info MyAgent
|
|
26
|
+
# → Fund agent with ~0.003 ETH (Base) for gas
|
|
29
27
|
|
|
30
|
-
#
|
|
28
|
+
# 3. Register agent — auto-sends 200 $OTX as activation fee
|
|
29
|
+
otonix agent:register --name "MyAgent"
|
|
30
|
+
# → Verifies on-chain, marks agent as active
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# 4. Deploy a token!
|
|
33
33
|
otonix launch token \
|
|
34
|
-
--agent MyAgent \
|
|
34
|
+
--agent "MyAgent" \
|
|
35
35
|
--name "CoolToken" \
|
|
36
36
|
--ticker "COOL" \
|
|
37
|
-
--
|
|
37
|
+
--image "https://your-logo-url.png" \
|
|
38
|
+
--description "My agent-launched token" \
|
|
39
|
+
--twitter "yourhandle"
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
## Commands
|
|
@@ -43,47 +45,72 @@ otonix launch token \
|
|
|
43
45
|
|
|
44
46
|
```bash
|
|
45
47
|
otonix wallet generate # Generate new Base creator wallet
|
|
46
|
-
otonix wallet import # Import wallet from private key
|
|
47
|
-
otonix wallet export # Show private key (careful!)
|
|
48
|
-
otonix wallet balance # Show ETH + $OTX balance
|
|
49
48
|
otonix wallet address # Show wallet address
|
|
49
|
+
otonix wallet balance # Show ETH + $OTX balance
|
|
50
|
+
otonix wallet import # Import wallet from private key
|
|
51
|
+
otonix wallet export # Export private key (keep safe!)
|
|
50
52
|
```
|
|
51
53
|
|
|
52
54
|
### Agents
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
otonix agent:create --name
|
|
56
|
-
otonix agent:
|
|
57
|
-
otonix agent:
|
|
58
|
-
otonix agent:
|
|
57
|
+
otonix agent:create --name <name> # Create isolated agent wallet
|
|
58
|
+
otonix agent:register --name <name> # Activate agent (auto-sends 200 $OTX)
|
|
59
|
+
otonix agent:info <name> # Show address, balances, status
|
|
60
|
+
otonix agent:list # List all agents with status
|
|
61
|
+
otonix agent:remove <name> # Remove agent from local config
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
### Launch
|
|
62
65
|
|
|
63
66
|
```bash
|
|
64
67
|
otonix launch token \
|
|
65
|
-
--agent
|
|
66
|
-
--name
|
|
67
|
-
--ticker
|
|
68
|
-
--image
|
|
69
|
-
--description
|
|
70
|
-
--
|
|
71
|
-
--devbuy
|
|
68
|
+
--agent <name> \ # Agent name (must be registered)
|
|
69
|
+
--name <token-name> \ # Token name [required]
|
|
70
|
+
--ticker <symbol> \ # Token ticker/symbol [required]
|
|
71
|
+
--image <url> \ # Logo URL (https:// or ipfs://) [required]
|
|
72
|
+
--description <text> \ # Token description [required]
|
|
73
|
+
--twitter <handle> \ # Your Twitter/X handle (optional)
|
|
74
|
+
--devbuy <eth> # Initial dev buy in ETH (default: 0)
|
|
72
75
|
```
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
### Other
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
otonix config # Show config file location and settings
|
|
81
|
+
otonix --version # Show CLI version
|
|
82
|
+
otonix --help # Show all commands
|
|
83
|
+
```
|
|
75
84
|
|
|
76
|
-
|
|
85
|
+
## How Registration Works
|
|
86
|
+
|
|
87
|
+
Agent registration is fully automatic:
|
|
88
|
+
|
|
89
|
+
1. Run `otonix agent:register --name "MyAgent"`
|
|
90
|
+
2. CLI checks your creator wallet has ≥200 $OTX and ETH for gas
|
|
91
|
+
3. Confirms with you before sending
|
|
92
|
+
4. Auto-sends 200 $OTX from creator wallet → Otonix treasury on Base
|
|
93
|
+
5. Waits for on-chain confirmation
|
|
94
|
+
6. Marks agent as `✓ Registered & Active`
|
|
77
95
|
|
|
78
96
|
## Technical Details
|
|
79
97
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
98
|
+
| Property | Value |
|
|
99
|
+
|---|---|
|
|
100
|
+
| LP Protocol | Clanker v4 (Uniswap v4) |
|
|
101
|
+
| Pool type | POOL_POSITIONS.Standard |
|
|
102
|
+
| Fee config | FEE_CONFIGS.StaticBasic |
|
|
103
|
+
| Paired token | WETH on Base |
|
|
104
|
+
| Fee split | 80% creator (WETH) / 20% Otonix treasury |
|
|
105
|
+
| Chain | Base Mainnet |
|
|
106
|
+
| Verified by | Otonix (@otonix_tech) |
|
|
107
|
+
|
|
108
|
+
## Config
|
|
109
|
+
|
|
110
|
+
Stored at `~/.otonix/config.json`. Contains wallet and agent private keys — **keep this file safe and never share it**.
|
|
84
111
|
|
|
85
|
-
##
|
|
112
|
+
## Links
|
|
86
113
|
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
114
|
+
- Website: [otonix.tech](https://otonix.tech)
|
|
115
|
+
- Twitter: [@otonix_tech](https://x.com/otonix_tech)
|
|
116
|
+
- $OTX: [DexScreener](https://dexscreener.com/base/0xF7E2a6226Ffe0693DD85406AC3A8917cbea5DC40)
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const program = new Command();
|
|
|
15
15
|
program
|
|
16
16
|
.name("otonix")
|
|
17
17
|
.description(chalk.bold.hex("#4d6fff")("OTONIX CLI") + chalk.dim(" — Web4 Autonomous Agent Infrastructure"))
|
|
18
|
-
.version("2.1.
|
|
18
|
+
.version("2.1.4", "-v, --version")
|
|
19
19
|
.configureOutput({
|
|
20
20
|
writeOut: str => process.stdout.write(str),
|
|
21
21
|
writeErr: str => process.stderr.write(str),
|