This release is a pre-release and may not be stable for production use.
hull — shared core for the wet / crg / mnemo self-hosted stack
Sister projects from n24q02m (click to expand)
| Project | Tagline | Tag |
|---|---|---|
| better-semantic-release | Drop-in python-semantic-release fork with built-in release-safety guards (orp... | Tooling |
| claude-plugins | Claude Code plugin marketplace for the n24q02m MCP servers -- install web sea... | Marketplace |
| crg | Knowledge graph for token-efficient code reviews -- semantic search and call-... | MCP |
| IMAP/SMTP email for AI agents -- read, send, organize folders, and manage att... | MCP | |
| fastretrieval | Fast multi-model retrieval runtime: ONNX and GGUF embeddings, reranking, and ... | Tooling |
| hull | hull is the shared monorepo core for the wet, crg and mnemo self-hosted stack | MCP |
| mnemo | Persistent AI memory with hybrid search. Open, free, unlimited. | MCP |
| notion | Markdown-first Notion for AI agents -- pages, databases, blocks, and comments... | MCP |
| skret | Secrets without the server. | CLI |
| tacet | A self-distilling neuro-symbolic cascade that amortises LLM cost across knowl... | Tooling |
| telegram | Telegram for AI agents -- messages, chats, media, and contacts across both bo... | MCP |
| tools-docs | Docs portal for the n24q02m open-source tool stack (skret, MCP plugins, hull,... | Tooling |
| wet | Open-source MCP server for AI agents: web search, content extraction, and lib... | MCP |
| workspace | Google Workspace MCP server (Docs/Drive/Calendar/Gmail/Sheets/Slides/Tasks/Ch... | MCP |
hull is the shared monorepo core for the wet, crg and mnemo self-hosted stack.
It owns everything the three products share — token auth, per-task model configuration, per-user rate limiting, local SQLite storage, the HTTP MCP server lifecycle, and web scraping/search infrastructure — for wet (search), crg (code graph) and mnemo (memory).
Table of contents
Install
hull ships as one PyPI dist, n24q02m-hull. The wheel carries both python
import packages; the heavy stacks are opt-in extras:
pip install n24q02m-hull # hull_core only (crg, mnemo)
pip install "n24q02m-hull[web]" # + hull_web scraping/browser stack (wet)
pip install "n24q02m-hull[mteb]" # + pyarrow for model_selection MTEB fetchers
import hull_web without the [web] extra raises ImportError naming the
missing modules and the install command.
hull does not run models. The shared embed/rerank HTTP service is
pip install "fastretrieval[server]" (fastretrieval-server, serving
/embed + /rerank); hull callers reach it over HTTP.
The TypeScript core ships to npm as @n24q02m/hull, at the same version as
the PyPI dist (see packages/core-ts):
npm install @n24q02m/hull
Packages
| Source dir | Import package | Extra | Purpose |
|---|---|---|---|
packages/core-py |
hull_core |
(base; MTEB boards need [mteb]) |
Auth (3 modes), per-task model cells, limiter, ~/.hull/ SQLite WAL storage, server start + /mcp endpoint, CLI, SSRF-safe HTTP, lifecycle lock, skills directory mount with a SHA-256 digest guard (skills.digest.json), model_selection leaderboard picker + runtime registry (refresh → eval-on-change → promote) |
packages/web |
hull_web |
[web] |
Search (SearXNG), scraping strategies, stealth browsers, fingerprinting, HTTP/SSRF security |
packages/core-ts |
@n24q02m/hull (npm) |
n/a | TypeScript core: MCP Streamable HTTP transport, token-table auth (token, multi), buildCli console builder, encrypted credential storage, skills catalog with the same digest guard, lockfiles and cache |
Runtime model
- Python 3.11 to 3.15 (every minor upstream still supports; CI tests each). Dev with
uv, always-on with docker. hull server startis the only way to run a server; MCP is an HTTP endpoint athttp://host:port/mcp— never a spawned subprocess.- The CLI is the control plane + consumer. With the server down the CLI tells you to start it first; there is no hidden local-core mode.
- Provider calls are plain OpenAI-spec HTTP (
httpx). OpenRouter is the pre-wired default. Each task (embed,rerank,chat,jev_score) has its ownbase_url + api_key + modelcell — change provider by editing config, never code. - Storage is local SQLite (WAL) under
~/.hull/. Backup/sync isrcloneoutside this repo.
Auth — one mechanism, three modes
Mode is a config state ([server] auth in ~/.hull/config.toml):
no-auth— localhost-only bind enforced, one shared namespace.token— one shared token (token_hashin config), still one shared namespace.multi—users.tomlmapsuid → {token_hash, enabled, namespace, allowed_roots, limits}; one process serves N users, each isolated to their namespace. Admin is host-side only: editusers.toml, restart.
Token hashes are scrypt (hull token hash). Wrong token → 401; disabled
user → 403; over-limit → 429.
Tools read the caller with current_user(). A tool that runs as a background
task (the MCP tasks extension) runs as the caller who submitted it, and the
task belongs to that caller: another user's tasks/get or tasks/cancel for
its id gets "not found". A task that starts more than an hour after it was
submitted no longer runs as that caller. Inside a token or multi
listener (its requests, its lifespan, and the tasks it runs), and in a plain
thread while such a listener is serving, current_user() raises
IdentityNotBoundError when no caller is bound, instead of falling back to the
shared default namespace. The bearer, Cookie and Proxy-Authorization
headers are dropped once the request is authenticated, so a task never stores
them.
A host that wraps its app in HullAuthMiddleware and mounts it in its own
Starlette app runs the inner app's lifespan itself, because a Mount does not
pass the lifespan on. The middleware wraps the inner app's
router.lifespan_context when it is constructed, so construct it first and
read that attribute afterwards:
auth_app = HullAuthMiddleware(inner, authenticator)
app = Starlette(lifespan=inner.router.lifespan_context, routes=[Mount("/", auth_app)])
Building the middleware inside the Starlette(...) call, after
lifespan=inner.router.lifespan_context, reads the attribute before the
middleware wraps it, since arguments are evaluated left to right. The lifespan
and the tasks it starts then belong to no listener and get the local identity
whenever no authenticated request is in flight. The middleware also cannot find
the lifespan when another wrapper without a .router sits between it and the
Starlette app. In either case, enter require_bound_identity() around the
lifespan yourself.
Quick start
uv sync
uv run hull config init # write ~/.hull/config.toml (OpenRouter defaults)
uv run hull config set server.port 8771 # edit one key in place, comments intact
uv run hull config get server.port # print one key (secrets are not echoed)
printf '%s' "$TOKEN" | uv run hull token hash # mint a token_hash for users.toml / config
uv run hull status # auth mode, bind, DB path
uv run hull doctor # python / config / users.toml checks
uv run hull skills digest ./skills # pin the SHA-256 of every skill file
uv run hull skills verify ./skills # exit 1 on a changed, missing or unlisted file
uv run hull server start # serves http://127.0.0.1:8000/mcp
hull token hash reads the token from piped stdin or a hidden prompt; a token
on the command line is refused, because it would land in shell history.
hull --version prints the installed version, and hull <command> -h lists
that command's flags.
hull skills digest writes skills.digest.json at the root of a skills
directory. Once it is there, the skills mount in both languages
(attach_skills_provider in Python, attachSkillsProvider in TypeScript)
checks every skill file against it and refuses the whole directory on a
changed byte, a missing file or a file with no entry. See
Skills integrity for the details.
Development
uv sync --all-extras
uv run pytest -q
uv run ruff check .
uv build
License
Apache-2.0
Metadata
Release files for n24q02m-hull 0.13.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| n24q02m_hull-0.13.0b2.tar.gz | 1.1 MB | With provenance | Details for n24q02m_hull-0.13.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| n24q02m_hull-0.13.0b2-py3-none-any.whl | Python 3 | none | any | Details for n24q02m_hull-0.13.0b2-py3-none-any.whl |
Total release size: 1.3 MB
Release files / n24q02m_hull-0.13.0b2.tar.gz
| Download URL | n24q02m_hull-0.13.0b2.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c2aaaa1a2fa5d8eceebaa770bd2d84ed62ebc326c6c5735d0e1491d05d9df57
|
|
BLAKE2b-256 checksum How to use checksums |
5f42e456597dde3319f51fb8185c3e6ae0384d8d52703252143f56cc322bd893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / n24q02m_hull-0.13.0b2-py3-none-any.whl
| Download URL | n24q02m_hull-0.13.0b2-py3-none-any.whl |
|---|---|
| Size | 250.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7367e712412e719f57e5caca9a2b3583bc35067f450beea27a3d8a328b33da15
|
|
BLAKE2b-256 checksum How to use checksums |
acc43b0d79173cbfe3adebe5db68b70716e310f42a62f4c5c2ab1a112db8f742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for n24q02m-hull 0.13.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for n24q02m_hull-0.13.0b2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.