@otonix/cli 1.2.0 → 1.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.
- package/README.md +80 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Command-line tool for the [Otonix](https://otonix.tech) sovereign compute platform.
|
|
4
4
|
|
|
5
|
-
Initialize, register, and manage autonomous AI agents from your terminal.
|
|
5
|
+
Initialize, register, and manage autonomous AI agents from your terminal. Includes built-in access to the Bankr LLM Gateway for multi-model AI inference.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -69,8 +69,48 @@ otonix log "Trade executed BTC/USDC" --category trading
|
|
|
69
69
|
| Command | Description |
|
|
70
70
|
|---------|-------------|
|
|
71
71
|
| `otonix engine` | Show autonomic engine status |
|
|
72
|
+
| `otonix marketplace` | List marketplace services |
|
|
72
73
|
| `otonix x402` | Show x402 payment configuration |
|
|
73
74
|
|
|
75
|
+
### LLM Gateway (Bankr)
|
|
76
|
+
|
|
77
|
+
Access multi-model AI inference directly from your terminal. Supports Claude, GPT, Gemini, Kimi, Qwen, and more via the [Bankr LLM Gateway](https://bankr.bot/llm).
|
|
78
|
+
|
|
79
|
+
| Command | Description |
|
|
80
|
+
|---------|-------------|
|
|
81
|
+
| `otonix llm:init <key>` | Configure Bankr LLM Gateway API key |
|
|
82
|
+
| `otonix llm:models` | List available AI models |
|
|
83
|
+
| `otonix llm:chat <prompt>` | Send a chat completion request |
|
|
84
|
+
| `otonix llm:usage` | Show LLM usage summary |
|
|
85
|
+
| `otonix llm:health` | Check gateway health status |
|
|
86
|
+
|
|
87
|
+
#### LLM Setup
|
|
88
|
+
|
|
89
|
+
Get your Bankr API key from [bankr.bot/api](https://bankr.bot/api) (make sure LLM Gateway access is enabled):
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
otonix llm:init bk_YOUR_API_KEY
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### LLM Examples
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# List available models
|
|
99
|
+
otonix llm:models
|
|
100
|
+
|
|
101
|
+
# Chat with default model (claude-haiku-4.5)
|
|
102
|
+
otonix llm:chat "What is sovereign compute?"
|
|
103
|
+
|
|
104
|
+
# Chat with a specific model
|
|
105
|
+
otonix llm:chat "Analyze BTC price action" --model gpt-5-mini
|
|
106
|
+
|
|
107
|
+
# Check usage (last 7 days)
|
|
108
|
+
otonix llm:usage --days 7
|
|
109
|
+
|
|
110
|
+
# Check gateway health
|
|
111
|
+
otonix llm:health
|
|
112
|
+
```
|
|
113
|
+
|
|
74
114
|
## Command Options
|
|
75
115
|
|
|
76
116
|
### `otonix register`
|
|
@@ -107,6 +147,26 @@ otonix actions --limit 50
|
|
|
107
147
|
|--------|---------|-------------|
|
|
108
148
|
| `--limit` | `20` | Number of actions to show |
|
|
109
149
|
|
|
150
|
+
### `otonix llm:chat`
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
otonix llm:chat "Your prompt here" --model claude-haiku-4.5
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
| Option | Default | Description |
|
|
157
|
+
|--------|---------|-------------|
|
|
158
|
+
| `--model` | `claude-haiku-4.5` | AI model to use |
|
|
159
|
+
|
|
160
|
+
### `otonix llm:usage`
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
otonix llm:usage --days 7
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
| Option | Default | Description |
|
|
167
|
+
|--------|---------|-------------|
|
|
168
|
+
| `--days` | `30` | Number of days to show |
|
|
169
|
+
|
|
110
170
|
## Configuration
|
|
111
171
|
|
|
112
172
|
Config is stored at `~/.otonix/config.json` with file permissions `600`.
|
|
@@ -116,7 +176,8 @@ Config is stored at `~/.otonix/config.json` with file permissions `600`.
|
|
|
116
176
|
"apiKey": "otonix_xxxx",
|
|
117
177
|
"endpoint": "https://app.otonix.tech",
|
|
118
178
|
"agentId": "uuid-xxxx",
|
|
119
|
-
"agentName": "my-agent"
|
|
179
|
+
"agentName": "my-agent",
|
|
180
|
+
"bankrApiKey": "bk_xxxx"
|
|
120
181
|
}
|
|
121
182
|
```
|
|
122
183
|
|
|
@@ -141,24 +202,26 @@ $ otonix register --name sentinel-01
|
|
|
141
202
|
Tier: active
|
|
142
203
|
Interval: 60s
|
|
143
204
|
|
|
205
|
+
$ otonix llm:init bk_4GYZ...WXFKD
|
|
206
|
+
Bankr LLM Gateway key saved.
|
|
207
|
+
Gateway: https://llm.bankr.bot
|
|
208
|
+
Key: bk_4GY...XFKD
|
|
209
|
+
|
|
210
|
+
$ otonix llm:chat "What infrastructure should I monitor?"
|
|
211
|
+
Model: claude-haiku-4.5
|
|
212
|
+
Prompt: What infrastructure should I monitor?
|
|
213
|
+
|
|
214
|
+
Thinking...
|
|
215
|
+
|
|
216
|
+
Focus on CPU usage, memory consumption, disk I/O, network latency,
|
|
217
|
+
and service uptime. Set up alerts for anomalies in each metric.
|
|
218
|
+
|
|
219
|
+
Tokens: 24 in / 87 out
|
|
220
|
+
Model: claude-haiku-4.5
|
|
221
|
+
|
|
144
222
|
$ otonix heartbeat
|
|
145
223
|
Heartbeat sent — sentinel-01 [active] tier:active credits:$50.00
|
|
146
224
|
|
|
147
|
-
$ otonix log "Deployed monitoring stack" --category infra
|
|
148
|
-
Logged: [infra] Deployed monitoring stack (completed)
|
|
149
|
-
|
|
150
|
-
$ otonix status
|
|
151
|
-
Agent Status:
|
|
152
|
-
ID: e2998be4-b77c-495e-a535-a6e4ca9dc768
|
|
153
|
-
Name: sentinel-01
|
|
154
|
-
Status: active
|
|
155
|
-
Tier: full
|
|
156
|
-
Credits: $50.00
|
|
157
|
-
Model: claude-opus-4-6
|
|
158
|
-
VPS IP: 10.0.1.1
|
|
159
|
-
Heartbeat: 12s ago
|
|
160
|
-
Actions: 3
|
|
161
|
-
|
|
162
225
|
$ otonix engine
|
|
163
226
|
Autonomic Engine Status:
|
|
164
227
|
Running: yes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otonix/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "CLI tool for the Otonix sovereign compute platform — initialize agents, generate API keys, register, monitor status, and manage infrastructure from the terminal.",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|