@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.
Files changed (3) hide show
  1. package/README.md +67 -40
  2. package/dist/index.js +1 -1
  3. 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 chain via Clanker v3.1 (LP Legacy).
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
- Or run locally (dev):
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 a new Base creator wallet
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. Fund the wallet
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
- # 4. Fund agent wallet with ~0.002 ETH (shown after create)
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
- # 5. Deploy a token!
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
- --description "My agent token"
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 MyAgent # Create isolated agent wallet (requires 200 $OTX)
56
- otonix agent:info MyAgent # Show agent address + balances
57
- otonix agent:list # List all agents
58
- otonix agent:remove MyAgent # Remove agent from local config
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 MyAgent \
66
- --name "CoolToken" \
67
- --ticker "COOL" \
68
- --image "https://..." \ # Optional
69
- --description "My token" \ # Optional
70
- --mcap 10 \ # Initial market cap in ETH (default: 10)
71
- --devbuy 0 # Dev buy in ETH (default: 0)
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
- ## Config
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
- Stored at `~/.otonix/config.json`. Contains wallet and agent private keys — keep it safe.
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
- - **LP Protocol**: Clanker v4 (Uniswap v4, POOL_POSITIONS.Standard)
81
- - **Paired Token**: WETH on Base (`0x4200000000000000000000000000000000000006`)
82
- - **Fee split**: 80% creator (WETH) / 20% Otonix treasury
83
- - **Chain**: Base Mainnet
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
- ## Requirements
112
+ ## Links
86
113
 
87
- - Node.js ≥ 18
88
- - ≥200 $OTX on creator wallet (Base)
89
- - ETH in agent wallet for gas (~0.001–0.003 ETH per deploy)
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.3", "-v, --version")
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otonix/cli",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Otonix CLI — deploy autonomous agent tokens on Base via Clanker v4",
5
5
  "type": "module",
6
6
  "bin": {