Entry points

What each import path of @supermux/core exposes.

The package is ESM only. Import from the root, or from a subpath for a driver or a helper. The root doesn't re-export the drivers.

ImportWhat's in it
@supermux/coresupermux, defaults, createCore, Core, Session, CoreError, UnsupportedOperation, createHost, createHostProvider, fileVault, memoryVault, the keeper helpers, and every type. See Core and Session.
@supermux/core/claudeclaude(), claudeRelayPrompt(), ClaudeOptions
@supermux/core/codexcodex(), codexPolicyArgs(), CodexOptions and its types
@supermux/core/agentsgrok(), opencode(), cursor(), createGrokClassifyActivity() and their options. @supermux/core/cursor is the same module.
@supermux/core/antigravityantigravity(), permissionFlags(), antigravityArgs(), createAntigravityNormalizer()
@supermux/core/acpacp(), a driver for any ACP agent, and its helpers
@supermux/core/accountsAccount types, AccountRegistry, vaults, account homes, usage and login helpers
@supermux/core/environmentprepare*Environment() helpers that build session-private homes and config, for example prepareAntigravityEnvironment()
@supermux/core/mcpmcpServer(), tool() and their types. See MCP tools.
@supermux/core/mcp-bridgeThe bridge script that agents run to reach your tools. The core runs it for you.
@supermux/core/authDeprecated. Use accounts instead.

The supermux-core package on npm is an alias that re-exports the same paths, except mcp-bridge.

Two ways to build a core

import { supermux } from "@supermux/core"
const core = supermux({ stateDirectory, agents: { claude: {}, codex: {} } })
import { createCore } from "@supermux/core"
import { claude } from "@supermux/core/claude"
const core = createCore({ stateDirectory, agents: [claude({ /* every option spelled out */ })], limits: { /* … */ } })

supermux() is the convenient form: it fills in every option you leave out. createCore() and the driver factories have no defaults at all; a missing option fails and names the option. See Core and Drivers.

Beyond this reference

These pages cover the API an app uses day to day. The package's own API.md also documents session context (instructions, skills, plugins and MCP servers per session), the environment helpers, the Host layer and the keeper protocol.

On this page