Markdown
Reference · v0.2.1 · 2026-05

Current surfaces. Clear boundaries.

Current v0.2.1 surfaces are the local CLI, source ESM library exports, local stdio MCP, and remote Streamable HTTP MCP at /mcp. There is no public REST API or separately published SDK package yet; MCP tools are the agent-facing API.

CLI
autovault@0.2.1 npm · brew · cargo
Library
source ESM exports Node/TypeScript
Remote
/mcp Streamable HTTP MCP

CLI

user-facing local operations

The CLI is the local operator surface. It installs local bundles, runs the setup wizard, syncs host profiles, audits repositories, resolves capability visibility, inspects installed skills, and starts the remote service when you self-host.

autovault add-local <path>

stablesince 0.2.0

Admit a local SKILL.md bundle. The command collects sibling resources, rejects symlinks, validates, signs, records local provenance, and can refresh profile links.

$ autovault add-local --source [--sync-profiles] [--link agent=/path/to/skills] [--json]

autovault sync-profiles

stablesince 0.2.0

Regenerate local filesystem-native profile links for detected or configured host skill roots. Reports restart_required: true when symlinks change so the operator knows to reload their agent session. Remote mode cannot perform this on client machines.

$ autovault sync-profiles [--discover] [--link agent=/path/to/skills]

autovault setup

stablesince 0.2.0

Interactive wizard that scans the vault, the bundled skills root, and any discovered native agent skill roots (~/.claude/skills, ~/.codex/skills, ~/.cursor/skills), then offers a per-skill adoption decision. The wizard requires a TTY; without one it exits with code 2 and a NoTtyError. Re-run any time to re-scan. Three adoption modes: augment (safe default) refreshes profile symlinks only — existing native dirs are not touched; backup renames each native dir to <root>.bak/<name>, admits the bytes into the vault, then replaces the original with a managed symlink (the typical “import my skills” choice); in-place admits the bytes then removes the native dir and replaces with a symlink — destructive, no backup. After adoption the wizard runs sync-profiles, which emits restart_required: true when symlinks change.

$ autovault setup [--json] [--review] [--advanced]

autovault doctor

stablesince 0.2.0

Inspect local vault health, installed skill integrity, ignored OS/editor metadata, and profile visibility. --clean removes ignored OS/editor metadata. --repair re-signs unsigned local skills only — it refuses tampered metadata and remote sources. --json emits a structured report with repair_status per skill.

$ autovault doctor [skill-name] [--clean] [--repair] [--json]

autovault audit-repo

stablesince 0.2.0

Walk a repository for vendored SKILL.md files, validate each through the same admission gate the vault uses, and emit a report. Useful for CI checks that block merging unsigned or invalid skills.

$ autovault audit-repo --repo /path/to/repo [--format json|markdown]

autovault import-autohub

stablesince 0.2.0

Ingest a curated AutoHub bundle into the vault. Applies tool filters and an optional MCP-server descriptor. --reset clears prior import state before importing.

$ autovault import-autohub --tool-filters /path/tool-filters.json [--mcp-servers /path/mcp-servers.json] [--reset]

autovault resolve

stablesince 0.2.0

Resolve which skills are visible to a given caller, platform, channel, and query. This exposes the same capability resolution the MCP server runs internally. Output is JSON; --channel is optional, the rest are required.

$ autovault resolve --caller --platform [--channel ] --query

autovault skill list

stablesince 0.2.0

List installed skills as JSON, with each skill’s declared bin.* action names. Reserved action names (list, search, which) cannot be declared as bin actions.

$ autovault skill list

autovault skill which

stablesince 0.2.0

Print the resolved script path(s) for a skill without running them. Verifies the signed manifest before parsing. With <action>, prints the single command/args/cwd for that action; without, prints all declared actions.

$ autovault skill which []

autovault skill <action> <name>

stablesince 0.2.0

Generic dispatch that delegates to the named skill’s bin.<action> handler. The skill’s signed manifest declares which actions exist; list, search, and which are reserved.

$ autovault skill

autovault serve

stablesince 0.2.1

Start the remote Streamable HTTP MCP service. Set AUTOVAULT_MODE=remote, AUTOVAULT_PUBLIC_URL, admin credentials, and storage path before exposing it.

$ autovault serve

Environment variables

process env · CLI runtime + install script

Two distinct groups. The first is honored by the <code>autovault</code> CLI binary at runtime (parsed in <code>src/config.ts</code>). The second is read only by <code>scripts/install.sh</code> during the initial install; the CLI does not read these.

CLI runtime variables

stablesince 0.2.0

Set these before invoking the autovault CLI or starting autovault serve. Logs are JSON lines on stderr only; stdout is reserved for MCP framing — never write to stdout from server code.

$ AUTOVAULT_STORAGE_PATH=~/.autovault autovault doctor
VariableTypeDescription
AUTOVAULT_STORAGE_PATH opt~/.autovaultVault root directory. Default if unset.
AUTOVAULT_DB_PATH opt<storage>/autovault.sqliteOverride the SQLite index location; defaults under the storage path.
AUTOVAULT_MODE optlocal | remotelocal runs the stdio MCP server. Set to remote before autovault serve.
AUTOVAULT_PUBLIC_URL opthttps://<host>Required when running autovault serve behind a reverse proxy. Must match the externally visible URL.
AUTOVAULT_HTTP_PORT opt3000Listen port for the remote MCP service. Some platforms inject PORT instead; check your host.
AUTOVAULT_ALLOWED_ORIGINS optcomma-separatedCORS allowlist for remote mode. Comma-separated origins.
AUTOVAULT_PROFILE_LINKS optagent=/path,…Override discovered profile roots. Comma-separated agent=/path pairs.
AUTOVAULT_SECURITY_STRICT opttrueWhen true (default), security-flag hits block admission. Set false to downgrade them to warnings.
AUTOVAULT_LOG_LEVEL optinfoOne of debug / info / warn / error. JSON-line output on stderr.
AUTOVAULT_SEARCH_MODE opttextSearch backend. Today only text is supported; embedding-backed search is future work.
AUTOVAULT_ADMIN_EMAIL optemailRemote mode: initial admin email. Used by the OAuth bootstrap on first boot.
AUTOVAULT_ADMIN_PASSWORD optstring ≥ 12 charsRemote mode: initial admin password. Hashed on first boot.

Install script variables

stablesince 0.2.0

Read only by scripts/install.sh during the initial install. The autovault binary does not parse these — they shape the installer's interactive flow.

$ AUTOVAULT_NO_SETUP=1 curl -fsSL https://autovault.sh | sh
VariableTypeDescription
AUTOVAULT_NO_SETUP opt1Skip launching the setup wizard at install time; the installer prints a hint to run autovault setup from a terminal afterward.
AUTOVAULT_YES opt1Accept default answers in the installer's non-prompt branches. Referenced in the NoTtyError message setup prints when invoked without a TTY.
AUTOVAULT_NO_BOOTSTRAP opt1Skip bootstrap-skills.mjs. No bundled skills are installed. Primarily for development.

Library exports

source package · TypeScript-first

The source package exports the same storage, validation, profile-sync, and capability-resolution helpers used by the CLI and MCP server. This is useful for local integrations built from the repository; it is not a separately documented public SDK package.

resolveCapabilities(input)

stablesince 0.2.1

Resolve tools, skills, and MCP servers for a scoped caller request. Unknown callers fail closed unless mapped to a restricted profile.

resolveCapabilities({ caller_id, platform, query, channel })

skill lifecycle helpers

stablesince 0.2.0

Grouped source exports for installing from configured sources, validating caller-authored SKILL.md bytes, or refreshing an installed skill. MCP tools wrap these same helpers.

addSkill(input)
proposeSkill(input)
updateSkill(input)

syncProfiles(input)

stablesince 0.2.0

Regenerate per-agent and tag-filtered profile symlinks from installed skill metadata and optional profile config.

syncProfiles({ discover: true, profileRoots })

MCP tools

local stdio · remote /mcp

MCP tools are the agent-facing API. Local hosts spawn the stdio server; remote clients connect to Streamable HTTP MCP at <code>/mcp</code> with OAuth and role-aware filtering.

get_skill

stablesince 0.1.0

Search by query or fetch one installed skill by name. Pass include_resources when packaged resource files are needed.

{ query?: string, name?: string, agent?: string, include_resources?: boolean }

add_skill

stablesince 0.1.0

Install a known skill from GitHub, agentskills, HTTPS URL, or local bundle source. Caller-authored bytes should use propose_skill instead.

{ source: "github" | "agentskills" | "url" | "local", identifier: string, ... }

propose_skill

stablesince 0.1.0

Submit newly authored SKILL.md content for validation, security scan, capability cross-check, deduplication, signing, and storage.

{ skill_md: string, resources?: Array<{ path: string, content: string }> }

check_updates

stablesince 0.1.0

Compare installed skills against recorded upstream source state and report drift, unchecked inline skills, warnings, and errors.

{ skill?: string }