@moguri-dev/sdk is the shared foundation of Moguri,
a model-agnostic AI harness for engineering work. It contains the typed SDK,
the local control-plane service that owns every session, and the service's
model, tool, MCP, terminal, document and SSH workers. The Moguri desktop app
and terminal UI are clients of this package.
Note
This is an alpha for macOS on Apple silicon (Node.js 26). The source, releases and package are public. GitHub Packages still needs a token to install any npm package, and nothing is on npmjs yet.
The package lives on the GitHub Packages npm registry, which always needs a
classic token with read:packages:
echo "@moguri-dev:registry=https://npm.pkg.github.com" >> .npmrc
npm install --save-exact @moguri-dev/sdk@0.32.0Put the token in your user ~/.npmrc (//npm.pkg.github.com/:_authToken=...)
or NODE_AUTH_TOKEN, never in a committed file.
import { MoguriSdk } from "@moguri-dev/sdk"; // browser-safe client
import { connectMoguri, createRuntime } from "@moguri-dev/sdk/node";
import { useMoguri } from "@moguri-dev/sdk/react"; // optional React bindings
import { createGatewayMcpServer } from "@moguri-dev/sdk/mcp";SSH hosts run the versioned worker bridge with the moguri-worker command
(moguri-worker --stdio). The SDK reference documents every
API.
See CONTRIBUTING.md, SECURITY.md and the
Code of Conduct. Moguri's own code is MIT licensed
(LICENSE.md); bundled third-party code keeps its own licenses,
listed in dist/THIRD_PARTY_NOTICES.md.