Skip to main content
Pre-release

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

CI CodeQL

Python License

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).

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, 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, 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 start is the only way to run a server; MCP is an HTTP endpoint at http://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 own base_url + api_key + model cell — change provider by editing config, never code.
  • Storage is local SQLite (WAL) under ~/.hull/. Backup/sync is rclone outside this repo.

Auth — one mechanism, three modes

Mode is a config state ([server] auth in ~/.hull/config.toml):

  1. no-auth — localhost-only bind enforced, one shared namespace.
  2. token — one shared token (token_hash in config), still one shared namespace.
  3. multi — users.toml maps uid → {token_hash, enabled, namespace, allowed_roots, limits}; one process serves N users, each isolated to their namespace. Admin is host-side only: edit users.toml, restart.

Token hashes are scrypt (hull token hash). Wrong token → 401; disabled user → 403; over-limit → 429.

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 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.

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.7.1b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for n24q02m-hull 0.7.1b1
File Size Uploaded Provenance Actions
n24q02m_hull-0.7.1b1.tar.gz 997.7 kB With provenance Details for n24q02m_hull-0.7.1b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for n24q02m-hull 0.7.1b1
File Interpreter ABI Platform Actions
n24q02m_hull-0.7.1b1-py3-none-any.whl Python 3 none any Details for n24q02m_hull-0.7.1b1-py3-none-any.whl

Total release size: 1.2 MB

Release files / n24q02m_hull-0.7.1b1.tar.gz

Download URL n24q02m_hull-0.7.1b1.tar.gz
Size 997.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1ee06113e996e6171c0ef6b7ff8ebbe427eac66e53462e03b189564a64fe18de
BLAKE2b-256 checksum
How to use checksums
8b84decf96f5d9a5172bad07793e7869dc96f6ee63212295597fa1b2c199c833
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 14, 2026.

Transparency log

Release files / n24q02m_hull-0.7.1b1-py3-none-any.whl

Download URL n24q02m_hull-0.7.1b1-py3-none-any.whl
Size 228.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8af6ea28c6437ef06b59e81d4914600293334a90898ef28b8ed2fa0a7709be8
BLAKE2b-256 checksum
How to use checksums
9c2008c367bdbe74897b86e9cf96cc847fdba5b13d5184f8e588f3d9fe502c38
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 14, 2026.

Transparency log

Security for n24q02m-hull 0.7.1b1

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.

Select from 2 files

Attestation for n24q02m_hull-0.7.1b1.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 14, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page