ottoport 1.5.1 → 1.5.2
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/.claude-plugin/plugin.json +1 -1
- package/README.md +4 -2
- package/cli/ottoport.mjs +6 -5
- package/package.json +5 -1
- package/skills/ottoport/SKILL.md +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ottoport",
|
|
3
3
|
"description": "One API for every model. Call chat, image, video, speech and music models through the OttoPort gateway — as MCP tools, slash commands, or the bundled CLI.",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "LITBOX LLC",
|
|
7
7
|
"email": "support@ottoport.ai"
|
package/README.md
CHANGED
|
@@ -104,8 +104,10 @@ generation is spent.
|
|
|
104
104
|
- `OTTOPORT_API_KEY` — your `op-…` key. Export it from your shell profile: the
|
|
105
105
|
MCP server reads the environment its host was launched in, so a key exported
|
|
106
106
|
inside a running session arrives too late.
|
|
107
|
-
-
|
|
108
|
-
|
|
107
|
+
- The CLI always targets `https://ottoport.ai`. Use the explicit `--url` flag
|
|
108
|
+
only for local development or a self-hosted gateway.
|
|
109
|
+
- `OTTOPORT_BASE_URL` configures the MCP server only; it does not silently
|
|
110
|
+
redirect CLI traffic.
|
|
109
111
|
|
|
110
112
|
## Notes
|
|
111
113
|
|
package/cli/ottoport.mjs
CHANGED
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
//
|
|
15
15
|
// Config (flags override env):
|
|
16
16
|
// OTTOPORT_API_KEY your op-… key (or the dev OTTOPORT_KEY_SECRET)
|
|
17
|
-
//
|
|
17
|
+
// The public CLI always targets https://ottoport.ai unless --url is passed
|
|
18
|
+
// explicitly for local development or a self-hosted gateway.
|
|
18
19
|
|
|
19
20
|
import { writeFile } from "node:fs/promises";
|
|
20
21
|
|
|
21
|
-
const BASE = "
|
|
22
|
+
const BASE = "https://ottoport.ai";
|
|
22
23
|
|
|
23
24
|
// ── arg parsing ──────────────────────────────────────────────────────
|
|
24
25
|
function parseArgs(argv) {
|
|
@@ -52,7 +53,7 @@ function last(value) {
|
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
function config(flags) {
|
|
55
|
-
const baseUrl = (last(flags.url) ||
|
|
56
|
+
const baseUrl = (last(flags.url) || BASE).replace(/\/+$/, "");
|
|
56
57
|
const apiKey = last(flags.key) || process.env.OTTOPORT_API_KEY || process.env.OTTOPORT_KEY_SECRET;
|
|
57
58
|
return { baseUrl, apiKey };
|
|
58
59
|
}
|
|
@@ -353,11 +354,11 @@ Usage:
|
|
|
353
354
|
[--dry-run]
|
|
354
355
|
|
|
355
356
|
Global flags:
|
|
356
|
-
--url <base>
|
|
357
|
+
--url <base> override https://ottoport.ai (local/self-hosted development)
|
|
357
358
|
--key <key> OttoPort API key (env OTTOPORT_API_KEY)
|
|
358
359
|
|
|
359
360
|
Examples:
|
|
360
|
-
export OTTOPORT_API_KEY=op-...
|
|
361
|
+
export OTTOPORT_API_KEY=op-...
|
|
361
362
|
ottoport models --modality image # prints what each one accepts
|
|
362
363
|
ottoport models veo-3.1 # its modes, tiers, and every parameter
|
|
363
364
|
ottoport chat "explain MCP in one line" --model claude-haiku-4.5
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ottoport",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Claude Code plugin, CLI and MCP server for OttoPort — one OpenAI-compatible API for every LLM, image, video, and speech model.",
|
|
5
5
|
"homepage": "https://ottoport.ai",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/Jet1217/OttoPort.git"
|
|
9
|
+
},
|
|
6
10
|
"license": "MIT",
|
|
7
11
|
"keywords": [
|
|
8
12
|
"ai",
|
package/skills/ottoport/SKILL.md
CHANGED
|
@@ -119,5 +119,6 @@ music live under `/api/v1/images/generations`, `/videos/generations`,
|
|
|
119
119
|
|
|
120
120
|
- `OTTOPORT_API_KEY` — an `op-…` key, read from the environment the client was
|
|
121
121
|
launched in. A key exported inside a running session arrives too late.
|
|
122
|
-
-
|
|
123
|
-
|
|
122
|
+
- The CLI always targets `https://ottoport.ai`; pass `--url` explicitly only
|
|
123
|
+
for local development or a self-hosted gateway.
|
|
124
|
+
- `OTTOPORT_BASE_URL` configures the MCP server only.
|