Skip to content

nerdit v0.10.0

Latest

Choose a tag to compare

@lwi00 lwi00 released this 10 Nov 18:05

Nerdit v0.10.0 — local AI PaaS node.

Install

curl -fsSL https://get.nerdit.ai | sh
nerdit link --code

Pin this version with NERDIT_VERSION=0.10.0.

Assets

file platform
nerdit-0.10.0-linux-x86_64.tar.gz Linux x86_64 (glibc 2.35+)
nerdit-0.10.0-linux-arm64.tar.gz Linux arm64 (glibc 2.35+)
nerdit-0.10.0-macos-arm64.tar.gz macOS arm64 (Apple silicon)

SHA256SUMS covers the three tarballs; SHA256SUMS.sig is an
ECDSA P-256 signature over it, made with the key published below and as
the asset nerdit-release.pub.pem. The installer verifies both
before extracting. To check by hand:

sha256sum -c SHA256SUMS
openssl dgst -sha256 -verify nerdit-release.pub.pem \
  -signature SHA256SUMS.sig SHA256SUMS

Release public key

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErD99ocEK39T60IgnOpitYeNoHD+V
qwskFP+Z5xTkEFhI+zNwUBr06bBcVTzBH71xc472T0ZHRrr5aK6evs6oSg==
-----END PUBLIC KEY-----

Installer

The curl | sh installer for this tag has sha256 45ad2eb6160383032b95ceea32eb775447df8155462066b8ec33de0288999dc0.
To check what get.nerdit.ai served you:

curl -fsSL https://get.nerdit.ai -o install.sh
sha256sum install.sh

Changelog

Applications can now run on a timetable and carry a monthly AI token limit,
and an AI agent connected to the machine finds built-in guides on how to build
on it. This release also hardens the machine in many places, and several
defaults change: read "Before you update" below, above all if your
applications use a local model, if you reach the machine from another computer
with the CLI, or if several people share it.

Applications that work on their own

  • Schedules. An application can be called on a timetable. Declare
    [schedules.<name>] in a single-app nerdit.toml (a five-field cron, at
    most every 5 minutes, a path, an optional timezone) or use
    nerdit schedules add|list|rm|run|runs; agents have the matching MCP tools.
    At each occurrence the machine sends a POST to the application's own port
    with a token, which the application compares with its
    NERDIT_SCHEDULE_TOKEN environment variable. Nothing is sent while the
    application is down or unhealthy, and one missed occurrence from the last
    24 hours is sent when it comes back. Runs never overlap and are not retried.
    Up to 10 schedules per application; the last 50 runs are kept and a failed
    run appears in the event feed.
  • A monthly AI token limit per application. Set
    [limits] ai_tokens_month = N in a single-app nerdit.toml, or use
    nerdit ai budget list|set|rm. Once the application has used that many
    tokens through the machine's AI gateway in a calendar month (UTC), its AI
    calls are answered 429 budget_exceeded until the month turns. Nothing is
    limited by default; [ai_gateway].default_tokens_month sets a limit for
    every application without its own. Raising or removing a limit takes an
    admin token or the hosted console; any other token, an agent's included, can
    only lower it. The event feed reports 80 % and 100 %. This is not a spending
    guarantee: a binding with provider = "api", or a provider key the
    application holds itself, does not go through the gateway and is not counted.
  • Guides for AI agents. Eight short guides ship with the machine (index,
    app, ai-model, scheduled-job, webhook, ai-job, secrets, share),
    written for this version's nerdit.toml and tools. An agent reads them with
    the MCP tools list_guides and get_guide; a person with
    nerdit guides list|show or GET /api/guides. The MCP server now tells a
    connecting agent to start with the index guide and never to ask for a secret
    value.

Before you update

These changes can stop an application, a command or the machine itself from
working as before.

  • Applications that use a local model. An application bound with
    [ai.*] provider = "ollama" now reaches its model through the AI gateway
    with a key of its own, and model ports are no longer open to other
    containers. After the update, restart each such application once
    (nerdit services restart <app>). The gateway serves the OpenAI /v1
    routes only: an application that calls Ollama's own /api/* routes must
    switch to /v1, or you set [models].direct_bridge_access = true and
    restart the machine's service to keep the old behaviour.
  • A machine without a token that the network can reach no longer starts.
    This is a machine with no [daemon].auth_token whose [daemon].host is not
    a loopback address, or with [proxy].dashboard_apex on. Create a token with
    nerdit init --auth-token-only (as the service user) and restart, or bind
    to 127.0.0.1 and turn dashboard_apex off, or set
    [daemon].allow_unauthenticated_exposure = true. The refusal message is in
    journalctl -u nerdit.service. An empty auth_token = "" line is refused
    too: delete it or set a real value. A machine without a token no longer
    creates tokens (409 token.auth_token_required) and refuses writes sent by
    a web page from another site.
  • The CLI no longer sends its token over plain http to another computer.
    Reconnect with nerdit connect https://<host>:<port> --ca-file <ca.crt>, or
    accept the risk with nerdit connect <host> --insecure-http. nerdit init
    now binds new machines to 127.0.0.1; a [daemon].host you already set is
    kept.
  • [client].auth_token now also applies to the local machine. The CLI and
    nerdit mcp run with that token's rights instead of admin. Remove the line,
    or put the admin token there, to stay admin locally.
  • nerdit link <code> is refused, because the code was visible to other
    users of the computer. Use nerdit link --code, which asks for it without
    showing it or reads it from standard input. If you typed a code on the
    command line, create a new one.
  • /api/docs and /redoc are removed. Load /api/openapi.json in any
    OpenAPI viewer. The dashboard can no longer be shown inside a frame.
  • Data folders become private. The data and upload folders are set to
    owner-only access at every start, and the database file with them. The
    machine refuses to start when one of the two folders belongs to another user
    or is a shared folder such as /tmp, and refuses a secrets key file or a
    database file that is a symbolic link: point the setting at the real file.
  • Builds started with a token that is not admin no longer use the
    machine's registry logins, so an application built on a private base image
    fails at its next build. Its Dockerfile may no longer use a BuildKit cache
    mount (RUN --mount=type=cache), a custom # syntax= frontend, or another
    application's image as a base, and such a token can no longer run another
    application's built image.
  • A shared secret that the machine uses itself is no longer handed to
    applications.
    This covers a shared key named by an AI gateway alias, a
    notification target or a git token. An application that refers to one no
    longer starts: its status reads restarting and nerdit logs <app> gives
    the reason. Give it a key of its own and redeploy.
  • Start and release commands that look like they contain a credential are
    refused
    (--token=…, password=…, scheme://user:pass@), and so is an
    [ai.*].base_url that carries a username, a password or a query string. An
    application saved with one is refused at its next deploy or settings change
    until the value is fixed or cleared
    (nerdit config app set <app> deploy release=null start=null).
  • Restarting counts against a token's quota. A restart, redeploy or
    rollback of a stopped application is now checked against its owner's
    max_concurrent_jobs and max_gpus. A token already over its limit cannot
    restart anything until it is back under, and an application whose owner
    token was revoked keeps running but can no longer be restarted or
    redeployed: an admin deletes it and deploys it again.
  • Git addresses with a port. A clone address on a port other than 443 now
    needs a host:port entry in [git].allowed_hosts, and a malformed entry
    there stops the configuration from loading.
  • Applications behind a non-standard Docker network. Applications now
    trust forwarded headers only from the address in [models].bridge_host. With
    a custom Docker bridge address, rootless Docker or Docker Desktop, an
    application may produce http:// links or loop on an https redirect: set
    bridge_host to the real gateway address, or set FORWARDED_ALLOW_IPS in
    the application's environment.
  • An application bound to a database another token owns waits at start
    until an admin removes the binding and adds it again
    (nerdit config app set <app> db <name>=null, then the binding). A binding
    now stays attached to the exact database it was made for, so a database
    deleted and recreated under the same name is not handed over silently.
  • On a system install, containers can no longer reach the cloud metadata
    address
    (169.254.169.254), and this applies to every Docker container on
    the computer, not only Nerdit's. Run the installer or nerdit update with
    NERDIT_EGRESS=open to skip it; the choice is not remembered.
  • AMD graphics cards. An application using one now sees only its own
    device and runs under a system-call filter. Set
    [containers].rocm_seccomp_profile = "unconfined" to go back.

New limits

  • AI gateway. One application may run 16 AI requests at once
    ([ai_gateway].max_in_flight_per_service, 64 for the whole machine); beyond
    that it gets 503 gateway_busy at once. A streamed answer is cut after 10
    minutes (stream_timeout_s). A token limited to one application or project
    can no longer create or change an alias, an alias belongs to the token that
    created it, and a token that is not admin can only point an alias at a local
    server or a provider in [ai_gateway].allowed_provider_hosts (setting it
    replaces the default list, so repeat the defaults you still need).
  • Requests and live streams. A request that changes something is limited
    to 16 MiB, file uploads aside. A token may hold 8 live streams of each kind
    (events, logs), and every stream ends after 55 minutes or as soon as its
    token is revoked;
    nerdit events --follow resumes by itself. An address that sends 20 wrong
    tokens in a minute gets 429 for the rest of that minute, and a request
    with two Authorization headers gets 400.
  • Deploys. A build stops after 30 minutes
    ([services].build_timeout_s). A ZIP may unpack to 4 times the upload limit
    and 50 000 files at most, and a deploy is refused when the disk does not
    have room for it (409 deploy.insufficient_disk). An application holds at
    most 16 direct domains and 16 webhooks.
  • Application logs. Stored output lines have the application's known
    secret values replaced by ***, are cut at 2 KiB, and each application
    keeps its newest 10 000 lines ([retention].job_log_max_lines, 0 for no
    limit). Older lines are removed at the first write after the update.
  • Memory and CPU ceilings. [containers].max_memory_limit and
    max_cpu_limit let you cap what any application may ask for,
    [link].max_gpus and [link].max_concurrent_jobs what remote access may
    run, and [proxy].submitter_domain_suffixes which domains a token that is
    not admin may bind. All are unset by default.
  • Names. A token that is not admin can no longer create a name containing
    --. A deleted application's name stays reserved for its owner while its
    data folder remains (--purge secrets,data releases it), and writing files
    to an agent workspace now reserves its name.

Security hardening

No action is needed for these.

  • The proxy's management interface moved from a local network port to a
    private socket in the data folder, so other users of the computer can no
    longer change routes. A configuration that sets [proxy].admin_addr
    explicitly keeps its port, and nerdit doctor warns about it.
  • The address of an application that crashed no longer reaches whatever else
    takes over its port while it waits to restart: the address answers empty
    until the application is back.
  • Settings read with a token that is not admin no longer show local paths, and
    show web addresses cut down to their host, since a webhook address often
    carries its own credential.
  • Automatic redeploys from git run with the rights of the application's owner
    instead of admin.
  • The audit log records the person behind a request made from the hosted
    console. Requests refused for a missing or wrong token no longer fill the
    audit log.
  • A volume backup skips links and special files instead of following them, so
    an application's database container cannot slip the machine's own files into
    it.
  • The link to Nerdit Cloud no longer follows redirects and bounds what the
    other side can make the machine hold in memory.
  • Local traffic (the CLI, the MCP server, the proxy's management calls) no
    longer goes through a proxy set in the environment.
  • Secrets and link codes stay off the command line: a bare --env KEY reads
    the value from the CLI's own environment.
  • sudo nerdit uninstall deletes a system install's data as the service user,
    refuses a symbolic link in its way, and says so, with exit code 1, when
    something is left on disk.
  • Release bundles are built from a locked, hash-checked dependency list, and
    the installer leaves the installed files owned by root.
  • Deleting an application with purge=images removes only the images this
    machine built. nerdit db dumps lists only the dumps of the current
    database of that name.

Full history: CHANGELOG.md at tag v0.10.0 in the Nerdit source repository.

Source

Built from the public source tree at 270c6ff978cc7ace2b689dd7c97ac26008585bff.
The release tag points at this commit. Build instructions are in packaging/README.md.