@opentrust/cli 7.3.21 → 7.3.22

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.
@@ -14,11 +14,18 @@ export function registerConnectCommand(program) {
14
14
  .command("connect")
15
15
  .description("Connect this host to an OpenTrust Dashboard for remote management")
16
16
  .option("--dashboard-url <url>", "Dashboard URL (e.g. http://host:53667)")
17
- .option("--api-key <key>", "Core API key (sk-og-...)")
17
+ .option("--api-key <key>", "System API key (sk-ot-...)")
18
18
  .option("--daemon", "Run in background as a daemon process")
19
19
  .action(async (opts) => {
20
20
  let config = loadConfig();
21
- if (opts.dashboardUrl && opts.apiKey) {
21
+ if (opts.dashboardUrl) {
22
+ if (!opts.apiKey) {
23
+ console.error("--api-key is required.");
24
+ console.error("");
25
+ console.error("Get your System API Key from Dashboard → Settings → System API Key,");
26
+ console.error("then run: opentrust connect --dashboard-url <url> --api-key sk-ot-xxx");
27
+ process.exit(1);
28
+ }
22
29
  config = {
23
30
  dashboardUrl: opts.dashboardUrl,
24
31
  apiKey: opts.apiKey,
@@ -31,7 +38,9 @@ export function registerConnectCommand(program) {
31
38
  console.error("No connection configured.");
32
39
  console.error("");
33
40
  console.error("Usage:");
34
- console.error(" opentrust connect --dashboard-url http://host:53667 --api-key sk-og-xxx");
41
+ console.error(" opentrust connect --dashboard-url http://host:53667 --api-key sk-ot-xxx");
42
+ console.error("");
43
+ console.error("Get the System API Key from Dashboard → Settings.");
35
44
  process.exit(1);
36
45
  }
37
46
  if (opts.daemon) {
@@ -13,15 +13,14 @@ const SCAFFOLD_PKG = {
13
13
  status: "opentrust status",
14
14
  },
15
15
  dependencies: {
16
- "@opentrust/core": "^7.3.21",
17
- "@opentrust/gateway": "^7.3.21",
18
- "@opentrust/dashboard": "^7.3.21",
16
+ "@opentrust/core": "^7.3.22",
17
+ "@opentrust/gateway": "^7.3.22",
18
+ "@opentrust/dashboard": "^7.3.22",
19
19
  },
20
20
  };
21
21
  const ENV_TEMPLATE = `# OpenTrust Configuration
22
22
 
23
23
  # Dashboard
24
- DEV_MODE=true
25
24
  DASHBOARD_MODE=embedded
26
25
  DASHBOARD_DATA_DIR=./data
27
26
 
@@ -30,6 +29,7 @@ CORE_PORT=53666
30
29
 
31
30
  # Gateway
32
31
  GATEWAY_PORT=8900
32
+ # OT_API_KEY= # System API Key for Gateway auth (from Dashboard Settings)
33
33
  # ANTHROPIC_API_KEY=sk-ant-xxx
34
34
  # OPENAI_API_KEY=sk-xxx
35
35
  # GEMINI_API_KEY=xxx
@@ -77,7 +77,6 @@ function runNpmSetup() {
77
77
  const env = {
78
78
  ...process.env,
79
79
  DASHBOARD_DATA_DIR: dataDir,
80
- DEV_MODE: "true",
81
80
  };
82
81
  // Load .env from project root if exists
83
82
  const envFile = path.join(projectRoot, ".env");
@@ -134,4 +133,10 @@ function printSetupDone() {
134
133
  console.log("-------------------------------------------");
135
134
  console.log("\nRun 'opentrust start' to launch all services.");
136
135
  console.log("Or start individually: 'opentrust start core'");
136
+ console.log("");
137
+ console.log("After starting, manage your System API Key at:");
138
+ console.log(" Dashboard → Settings → System API Key");
139
+ console.log("");
140
+ console.log("Connect remote hosts:");
141
+ console.log(" opentrust connect --dashboard-url http://<host>:53667 --api-key <key>");
137
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentrust/cli",
3
- "version": "7.3.21",
3
+ "version": "7.3.22",
4
4
  "description": "CLI tool to manage OpenTrust AI Agent Runtime Security Platform — setup, start, stop, status, logs",
5
5
  "type": "module",
6
6
  "bin": {