ALTWEB Context Loader

software.altweb由 altweb.software 发布v1.1.2更新于 Oct 24, 2026

Loads signed ALTWEB context capsules — refuses unsigned, tampered, or untrusted by default.

已验证STDIO仅桌面知识与记忆安全与监控

概览

AI 生成的概览

将已签名的 ALTWEB 上下文胶囊加载到助手,默认拒绝未签名、被篡改或不受信任的内容。

可以做什么
altweb-context MCP 服务器提供 load_capsule、verify_capsule 和 list_trusted_keys 三个工具。只有当 ECDSA P-256 签名有效且签名者公钥存在于本地信任文件时,它才会把编译好的 .altweb.html 胶囊加载进助手。未签名、被篡改或不受信任的胶囊会在加载时被拒绝并给出明确原因,空的信任文件会拒绝一切内容。
适用场景
当助手的指令、人设、技能或记忆文件来自本机之外,而你想在注入前确认来源链路时使用。适合把 Markdown 编译为已签名胶囊、并希望由加载器强制决定接受哪些签名者的团队。
运行要求
以 npm 包 altweb-context 通过 stdio 在本地运行,需要 Node.js 20 或更高版本。必须提供允许签名者公钥的信任文件,默认位于 ~/.altweb/trusted-keys.json,可用环境变量 ALTWEB_TRUST_FILE 覆盖。未声明需要账号或 API 密钥。
安装前请注意
信任文件就是全部策略:文件缺失或为空会拒绝所有胶囊,而加入一个公钥即信任该签名者产出的一切。有效签名只证明作者身份与内容完整,并不代表内容安全或真实。请保持信任文件精简。签名身份由口令派生,应使用较长的 diceware 式短语。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ALTWEB Context Loader,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ALTWEB — signed context capsules

Signed context capsules for AI agents — Markdown compiled into self-contained, verifiable, optionally encrypted artifacts + an MCP loader that refuses unsigned or untrusted context. Verify before you inject.

AI agents run on plain-text context: instructions, personas, skills, memory files. None of it has provenance — anything that can write those files can poison them. ALTWEB gives context a chain of custody, and makes the loader refuse anything that lacks one:

  • Capsule — markdown compiled into a single .altweb.html file (or URL): content compressed (deflate), optionally encrypted (AES-256-GCM), optionally signed (ECDSA P-256). Self-contained — opens in any browser, verifies offline, needs no server: you hand someone a file, not a database.
  • Verified context loading — the altweb-context MCP server loads a capsule into your agent only when the signature is valid and the signer's public key is in your trust file. Unsigned, tampered, or untrusted capsules are refused at load time, with an explicit reason. Refusal is the default: an empty trust file rejects everything, signed or not.
you write MD ──► altweb compile --sign ──► capsule (.altweb.html / URL)                                              │agent asks for context ──► altweb-context ──► verify signature + trust                                              │                              trusted ──► markdown injected                          everything else ──► REFUSED (reason)

Packages

PackageWhat it is
altwebCLI: altweb compile / decode / verify / keygen (packages/cli)
altweb-contextMCP server: load_capsule, verify_capsule, list_trusted_keys (packages/mcp)
@altweb/coreHeadless engine: content model, codec, crypto, markdown, sanitize (bundled into both; npm release planned)
@altweb/editorNotion-style editor (built on Novel) with one-click capsule export
site/Documentation site (Astro + Starlight)

Quickstart

Both tools are on npm — nothing to clone. Run these commands outside a source checkout (inside this repository, npm resolves the local workspace package):

bash
# create your signing identity (deterministic from a passphrase; only the# public key + fingerprint are stored, in ~/.altweb/identity.json)npx altweb keygen --save
# write, compile, signecho "# My agent's operating notes" > notes.mdnpx altweb compile notes.md -o notes.altweb.html --sign
# verify anywhere, offlinenpx altweb verify notes.altweb.html

Wire the loader into an MCP client (Claude Code example):

bash
claude mcp add altweb-context -- npx -y altweb-context

(From source: npm install && npm run build, then use the bundles under packages/*/dist/.)

Running from source

Node.js 20 or newer is required. From the repository root:

bash
npm installnpm run build
# Create and save an identity with the locally built CLInpm run keygen
# Start the editor in development modenpm run dev

The editor prints its local URL (normally http://localhost:5173). The CLI can be invoked as node packages/cli/dist/altweb.mjs <command>. Do not use npx altweb inside the checkout: npm may select the local workspace package, whose executable does not exist until it has been built.

The documentation site is intentionally a separate npm project rather than a workspace. To run it locally:

bash
npm install --prefix sitenpm run dev --prefix site

Trust a signer by adding its full public key to ~/.altweb/trusted-keys.json (the UNTRUSTED_KEY refusal message hands you the ready-made entry; the short fingerprint is a human label, not the trust anchor):

json
{ "keys": [ { "name": "Me", "publicKey": "<base64url SPKI>", "fingerprint": "ab:12:..." } ] }

What a signature proves — and what it does not

A valid signature proves who authored the capsule and that the bytes are intact. It does not make the content safe or true. The trust file is your policy; keep it short.

Pick a long passphrase. Identities derive deterministically from your passphrase via Argon2id with a fixed protocol salt (that is what makes them portable with nothing stored). Memory-hardness makes mass dictionary attacks economically hostile, but the passphrase's entropy is still the identity's foundation. Use a 16+ character diceware-style phrase; the tooling enforces a minimum strength.

Security

Content is sanitized with DOMPurify on decode; artifacts carry a CSP; the codec validates structure with zod. See site/ docs → Security model for the full write-up, including the encrypted-capsule caveat (the signature covers the decrypted payload, so verification completes after decryption).

Roadmap

Near-term, in rough order:

  • @altweb/core on npm — the engine as an installable library, for programmatic use (the CLI and loader already ship it bundled).
  • Hardware-backed identity (FIDO2 / passkeys) — an optional identity type alongside the passphrase one: the private key lives in a security key or secure enclave, never extractable, signing requires physical presence. The passphrase identity stays the default — "a passphrase is a keypair" — hardware keys add something you have for those who want it.

Credits

Built on excellent open source: Novel (Apache-2.0) and Tiptap (MIT) for the editor; DOMPurify, marked, pako, zod, @noble/curves in the engine. See NOTICE.

License

ALTWEB is dual-licensed:

  • Open source: AGPL-3.0-or-later. Free to use, study, modify, and share — with one core obligation: if you modify ALTWEB and distribute it or run it as a network service (e.g. hosting altweb-context for others), you must release your modified source under the AGPL.
  • Commercial: by agreement. To use ALTWEB in a closed-source product, or as a hosted service without publishing your changes, you need a separate commercial license. See COMMERCIAL.md.

Copyright © 2026 Daniel C. ȘOIMU. Bundled third-party components keep their own (permissive) licenses — see NOTICE.

来源:README.md,提交 8ac2260

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.1.2最新Oct 13, 2026
  2. v1.1.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分