Repository navigation
Conversation
curl -fsSL https://raw.githubusercontent.com/neuregex/freefield/main/start.sh | bash It checks the NVIDIA GPU, its driver (CUDA 13), Docker Engine and the NVIDIA Container Toolkit, warns when Docker keeps its data on a hard disk or the computer has little RAM, pulls the image and runs it on 127.0.0.1 (3000, or the next free port up to 3020) with the models in the "freefield" volume, follows the download in the terminal and opens the studio with its passcode. Enter stops it; Ctrl+C leaves it running. A new image recreates the container with the same environment and port; the same image only starts it again. It never runs sudo: what is missing, it names with its link (docker group, systemctl, the toolkit's two commands). HF_TOKEN goes to the container through the environment, never on the command line, and the saved log of a failed start has the passcode and token removed. A copy stays in ~/.local/share/freefield/start.sh for stop, logs and uninstall. In WSL 2 with Docker Desktop it works too: no toolkit or disk check there (Docker Desktop reaches the GPU itself and keeps its data in its own VM), the studio opens in Windows' browser, and the GPU and memory hints are Docker Desktop's. test/start-sh.test.ts runs it against a fake docker, nvidia-smi, xdg-open and curl in their own session, as in a pipe: 13 cases. The README and the Docker guide show the line; the image workflow ignores start.sh, as it ignores start.ps1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PgVaGwFeiCrXjWTRomMwRX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux gets the same one line as Windows:
curl -fsSL https://raw.githubusercontent.com/neuregex/freefield/main/start.sh | bashstart.shis the Linux twin ofstart.ps1:Container Toolkit. It never runs sudo: what is missing, it names with its link (the docker group,
systemctl start docker, the toolkit's two commands).127.0.0.1(port 3000, or the next free one up to 3020) with the models in thefreefieldvolume.HF_TOKENandFREEFIELD_PACKSreach the container through the environment, never on thecommand line.
it running.
and saves the whole log with the passcode and token removed.
~/.local/share/freefield/start.sh, forstop,logsanduninstall.browser, and the GPU and memory hints are Docker Desktop's.
The README ("On your own PC in one line" and the "Run it" table) and
docs/cloud-gpus.mdshow the line;image.ymlignores
start.sh, as it ignoresstart.ps1.How it was checked
test/start-sh.test.ts: 13 cases against a fake docker, nvidia-smi, xdg-open and curl, each in its own session(
setsid), as in a pipe.npm test: 86 pass.bash -s --) it leaves Freefield running and says how to stop it;with a terminal (
script), Enter stops it.shellcheck start.shis clean.npm run validateandnpm run typecheckpass;python tools/catalog.py allchanges nothing.
curl -fsSL https://raw.githubusercontent.com/neuregex/freefield/start-sh/start.sh | FREEFIELD_LAUNCHER_REF=start-sh bash🤖 Generated with Claude Code
https://claude.ai/code/session_01PgVaGwFeiCrXjWTRomMwRX