Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@amoshydra/oktoso

Latest version: v0.3.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: amoshydra
0 Stars
0 Forks
41 Versions
8.2K Downloads
TypeScript Repo language

Scan summary

@amoshydra/oktoso was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 1 of 100 (low). No malicious behavior was detected.

  • Releases: 41 versions; the latest 2 were published within 7 days (23–29 Nov 2026).
  • Findings: 1 rule fired in version 0.3.0 (1 low). The score describes this version only.
  • Downloads: 8,175 downloads.

Versions

41 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 29 Nov 2026 1 rule fired
0.2.8 23 Nov 2026 1 rule fired
0.2.7 19 Nov 2026 1 rule fired
0.2.6 19 Nov 2026 Not shown
0.2.5 19 Nov 2026 Not shown

Rules fired in 0.3.0: 1

Findings

1 Low

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Obfuscated JavaScript

A file matches the output style of a JavaScript obfuscator, such as many identifiers named _0x followed by hex digits or an indexed string-array lookup. Some commercial packages obfuscate their code legitimately; obfuscation also hides what code does. On its own this is not evidence of malicious behavior.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Oktoso is a hub-first session hub for AI agents. One place to see what needs attention, browse sessions, start chats, and reply across OpenCode, Open WebUI, Hermes, and other providers.

The hub is a small Node/TypeScript HTTP service. Clients are thin and replaceable: web, mobile, desktop, Even G2 glasses, and VR.

Screens

Status

Implementation phase. v0.2.4 is the latest release. The templates slice on main adds starting a configured template from Settings, the CLI, or the API, with the first prompt sent and the session opened. The hub also has the automation supervisor, backup and restore, Prometheus metrics, log redaction, Docker and systemd packaging, search, drafts, attention, push notifications, the newest-first transcript, and the Even G2 client (pairing, inbox, chat, questions, batches, discovery, failure states, and a glyph legend). The approved UI reference is frozen as design-v1.21. MCP northbound is implemented: the oktoso mcp stdio bridge and a hub-hosted /mcp with scoped tokens, allowlists, audit, rate limits, and attention/session resource subscriptions. Remaining gaps are real Hermes, G2 voice and hardware acceptance, MCP OAuth, multi-user support, and the Termux/cross-host acceptance run.

Documents

  • docs/design.md - architecture, domain model, provider adapters, API, security, deployment
  • docs/roadmap.md - product audit, strategy, phases, and acceptance
  • docs/roadmap-execution.md - ordered work breakdown, dependencies, and release map
  • docs/plan.md - milestone plan and acceptance criteria
  • docs/code-structure.md - implementation systems, repository layout, API additions, and task sequencing
  • docs/ui-ia.md - information architecture, screens, flows, responsive and glasses/VR adaptations
  • docs/visual-audit.md - contrast audit, visual tokens, and component rules
  • docs/design-lock.md - frozen design-v1.21 reference and change policy
  • docs/interaction-contract.md - chat copy, dictation, attachments, branches, retry, and fork semantics
  • docs/package-evaluation.md - assistant-ui package decision record
  • docs/brand/README.md - brand mark, app icons, and banner assets
  • AGENTS.md - UI/design contract and repository instructions for agents
  • docs/openapi.yaml - generated API contract
  • docs/automation.md - automation in plain language: watchers, templates, dry run, approvals, and troubleshooting
  • docs/deployment.md - remote providers, Termux, Docker, systemd, TLS, and VPN deployment
  • SECURITY.md - credential handling and vulnerability reporting
  • docs/publishing.md - npm trusted publishing and release workflow
  • docs/prototypes/index.html - interactive UI prototype with mock data

Apps

  • Even G2 — glanceable attention and reply surface for the glasses.

Principles

  • The hub owns provider credentials, session indexing, normalization, attention, and event fan-out.
  • Clients consume one HTTP/SSE API. No client owns business logic.
  • Provider APIs are the source of truth. The hub caches and indexes.
  • No ACP requirement and no local agent processes on the hub.
  • No networking assumptions. WireGuard, Tailscale, LAN, and TLS are operator concerns.
  • One codebase runs on Termux, Linux, macOS, a Raspberry Pi, or a VPS.

Development

pnpm install
pnpm dev
  • Web: http://localhost:5175
  • Hub API: http://127.0.0.1:8787
  • Development token: dev-token-oktoso (prefilled in the dev login; run pnpm pair:dev to use a link instead)
  • OpenCode read/write: session index, transcript, composer, new sessions, and interrupt
  • Open WebUI: chats, current branches, models, new chats, and prompt sends
  • Providers: OpenCode and Open WebUI adapters; Hermes remains a health-only fake
  • Attention: permissions, forms, unread sessions, failures, provider-backed actions, and live navigation badges
  • Automation: file-configured watchers with dry run, budgets, pause, and approvals; start a template from Settings, the CLI, or the API

pnpm dev starts the hub, Vite, fake Open WebUI/Hermes servers, and a fake OpenCode server. Real provider credentials belong in the ignored .env.local file:

OPENCODE_BASE_URL=http://127.0.0.1:4096
OPENCODE_USERNAME=opencode
OPENCODE_PASSWORD=...
OPENWEBUI_BASE_URL=https://openwebui.example
OPENWEBUI_API_KEY=...

When those variables are present, the matching providers use the real instances instead of the fake ones. Omitting a provider's base URL leaves that provider on its local fake endpoint. The dev command does not start the frozen prototype.

.env.local and .data/ are ignored. Keep .env.local at mode 0600. The committed dev-token-oktoso is a local-only owner token; generate a long random HUB_TOKEN for any reachable deployment. Rotating it revokes every paired session.

Prototype

pnpm prototype

Open http://127.0.0.1:4174 in a browser. Resize the window to see the mobile layout.

Build

pnpm typecheck
pnpm test
pnpm test:e2e
pnpm openapi:check
pnpm build

pnpm test:e2e builds the single-port bundle and runs the Playwright browser suite against a temporary hub and fake providers.

Starting without a config bootstraps an empty local workspace:

pnpm start

It creates the hub config with no providers, generates a persistent owner token, prints it once, and starts the hub. On that first start it also prints a one-time pairing link once the server is listening. Add providers to the config and restart. An explicitly requested --config or HUB_CONFIG path is never created implicitly.

The config lives with the rest of your user configuration, not in the working directory:

Platform Config
Linux, Termux $XDG_CONFIG_HOME/oktoso/hub.config.json (~/.config/oktoso/hub.config.json by default)
macOS ~/Library/Application Support/Oktoso/hub.config.json
Windows %LOCALAPPDATA%\Oktoso\hub.config.json

--config <path> or HUB_CONFIG overrides it. A legacy ./hub.config.json in the working directory is still used when the platform config does not exist yet, and the hub prints one warning line when it falls back. Runtime state defaults to the platform state directory ($XDG_STATE_HOME/oktoso, ~/Library/Application Support/Oktoso/data, %LOCALAPPDATA%\Oktoso\data), so read markers and drafts do not fork per working directory.

The file holds the owner token and every provider credential. It is created 0600 inside a 0700 directory, and the hub refuses to start when the file is readable or writable by another account, printing the chmod 600 command to run.

pnpm start runs the built dist/hub.js. The same entry point is exposed as the oktoso bin for an npx install: npx @amoshydra/oktoso starts the hub, and npx @amoshydra/oktoso pair connects to a running hub.

Provider credentials

Add providers from the Providers screen, or in the config file, with the base URL and a credential the provider issues. Credentials are write-only: the API never returns them, and leaving the password blank while editing keeps the stored value.

Provider Authentication Where the credential comes from
OpenCode Basic auth, username opencode opencode service get password on the machine that runs OpenCode, or .password in ~/.local/state/opencode/service.json
Open WebUI Bearer token Settings → Account → API keys in Open WebUI
Hermes Bearer token The API_SERVER_KEY its API server was started with

The provider form shows the same hint under the credential field. OpenCode generates its service password once and keeps it across restarts; if it is ever regenerated, update the provider or the row shows auth-error.

Pairing a browser or wearable

Pairing avoids copying the owner token into every client.

On the first start that creates a config, the TUI opens a setup panel with the owner token shown once. Press p to open the pairing QR. Plain and non-TTY modes print a first-run pairing link instead. Later starts print a one-line reminder rather than a link. The link opens a confirmation page; it does not pair until you press Pair this device.

In a foreground terminal, type p and press Enter at any time to print a fresh link. The server keeps running. This is the normal path when the hub was started with npx or pnpm start.

For a background process or a second terminal, run:

pnpm pair

With the packaged CLI, that is npx @amoshydra/oktoso pair. It prints one-time links for loopback and LAN addresses. The links expire in five minutes and work once. The owner token is never shared. For the built server:

node dist/hub.js --pair

When the terminal is a TTY and there is a LAN address, the command also prints a Scan to pair QR code. Scan it with the phone camera to open the confirmation page. On supported secure-context browsers, the login screen also offers Scan pairing QR using the browser Barcode Detection API. On plain-HTTP LAN origins or browsers without that API, use the phone camera app instead.

Use --url https://hub.example.com when the hub is behind a proxy. The CLI authenticates with the owner token from the config and must run on a host that can reach the hub. If the hub is bound to a loopback address, bind 0.0.0.0 or pass --url to pair another device. If you start the hub with HUB_HOST or HUB_PORT overrides, pass the same variables to the pair command so the printed links match. For the dev configuration, use pnpm pair:dev.

Paired browsers use the 30-day HttpOnly session cookie and do not store the token in JavaScript. The session refreshes automatically while the browser is active; an idle browser re-pairs after expiry. API clients can call POST /api/v1/auth/refresh with their session token. Packaged apps loaded from another origin can still paste the owner or session token. Rotate HUB_TOKEN to revoke every paired session.

Pairing links are generic. The app declares its profile when it exchanges the code: the G2 app requests g2, while a phone or browser defaults to phone. You do not choose a profile while pairing. Settings → Access shows the resulting credential, profile, scopes, expiry, and whether admin actions are available. A G2 link cannot be upgraded to phone.

Opening a pairing page does not consume the code, so chat link previews are safe. Pressing Pair this device consumes it. After five minutes, the page shows an expired message telling you to press p in the hub terminal; if that browser is already paired, it goes straight to the app.

MCP for agents

An MCP client such as OpenCode can use Oktoso as its control plane:

oktoso mcp              # read-only tools
oktoso mcp --allow-write

The bridge speaks MCP over stdio, reads the hub config, and calls the hub REST API with the config token. Read-only is the default. Write tools cover sending, creating, interrupting, marking read, and acting on attention. The server refuses writes to the OpenCode session that invoked it and requires confirm: true before approving an attention item.

The hub can also host the same tools at /mcp over Streamable HTTP. Enable mcp in the hub config. Static bearer tokens are optional; the owner can instead issue short-lived, scoped tokens from the global assistant or POST /api/v1/mcp/tokens:

{
  "mcp": {
    "enabled": true,
    "tokens": [
      { "id": "controller", "token": "${MCP_TOKEN}", "allowWrite": true }
    ]
  }
}

Hosted calls are rate-limited, time-limited, session-bound to their token, and appended to <dataDir>/mcp-audit.jsonl. Issued tokens are read-only by default, limited to one MCP session, and checked for expiry on every request. Sessions also expose oktoso://attention and oktoso://sessions resources with subscription updates. See docs/mcp-northbound.md for the full config, token issuance, OpenCode remote setup, tool list, controller prompt, and safety rules.

Terminal UI

In a foreground TTY, the hub renders a full-screen dashboard:

╭─ Oktoso ──────────────────────────────────────────── v0.1.0 ─╮
│ http://127.0.0.1:8787                      up 12m 04s   json │
├──────────────────────────────────────────────────────────────┤
│ Providers 2/3   Sessions 12   Attention 3              1 SSE │
│ Event 1042      Requests 142  Errors 0       p pair · ? help │
├──────────────────────────────────────────────────────────────┤
│ Activity                                                     │
│ 18:52:01  desktop-opencode  online                           │
│ 18:52:04  attention         permission · Fix auth            │
├──────────────────────────────────────────────────────────────┤
│ p pair · l logs · r refresh · o open · ^C quit · ? help      │
╰──────────────────────────────────────────────────────────────╯

Keys:

  • p — pair a device; opens the QR/link modal
  • l — toggle activity and logs; j/k scroll
  • r — re-check providers and refresh caches
  • o — open the web UI, or the pairing link while the modal is open
  • c — copy the pairing link or the first-run owner token
  • t — copy only the pairing code while the pairing modal is open
  • ? — key help
  • Ctrl+C — quit

On first run the hub opens a setup panel with the owner token shown once. Press p to pair. The pairing modal keeps the QR, primary LAN link, and expiry time visible without repainting, so the link stays selectable. After a device pairs, the panel returns to the dashboard after five seconds.

Running the command again

If Oktoso is already listening on the configured host and port, a second npx @amoshydra/oktoso does not crash with EADDRINUSE. It prints a status card and exits:

Oktoso 0.1.0 is already running at http://127.0.0.1:8787
  pid 1234 · up 12m 04s · event seq 1042

  Web UI   http://127.0.0.1:8787
  Pair     npx @amoshydra/oktoso pair
  Status   npx @amoshydra/oktoso status
  Stop     Ctrl+C in the original terminal, or kill 1234

Useful forms:

npx @amoshydra/oktoso status          # is it running, and where?
npx @amoshydra/oktoso pair            # pair a device against the running hub
npx @amoshydra/oktoso --port 8788     # after stopping the current hub
npx @amoshydra/oktoso --host 0.0.0.0  # override the bind host on next start

A second instance needs its own state and log directories; stop the current hub first, or run it with separate directories:

HUB_DATA_DIR=.data-8788 HUB_LOG_DIR=.logs-8788 npx @amoshydra/oktoso --port 8788

If the port is occupied by a different process, the command says so and suggests another port. No stack trace.

Structured logs do not appear in the dashboard. In TUI mode they go to the platform log directory:

Linux/Termux  $XDG_STATE_HOME/oktoso/logs/hub.log
macOS         ~/Library/Logs/Oktoso/hub.log
Windows       %LOCALAPPDATA%\Oktoso\Logs\hub.log

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @amoshydra/oktoso

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229