Installation
Use a non-root Linux account with Docker Engine and Compose v2. Download the matching x64 or ARM64 CLI or Admin AppImage from the stable GitHub release. The release includes checksums and an asset manifest. The CLI is a standalone executable; installed releases do not require Bun, Node.js or npm on the host.
For example, on Linux x64:
curl -fL -o fhold https://github.com/fwdslsh/fhold/releases/download/0.4.1001/fhold-cli-linux-x64
chmod +x fhold
./fhold install --name personal-agent
./fhold --name personal-agent setup --provider <provider-id>
Use fhold-cli-linux-arm64 on ARM64. CLI and Admin pull the matching pinned
fwdslsh/fhold-assistant image from public Docker Hub; Guardian and Portal images
are pulled only when enabled. A Docker Hub login is not required. For Admin,
make the downloaded .AppImage executable and launch it, then choose Set up
a new agent. Keep the CLI somewhere on your PATH to use the shorter commands
below. An AI provider supported by OpenCode is required for assistant responses.
Optional source build
Use a non-root Linux account, Docker Engine with Compose v2, Bun for source builds, native Node.js 22.12+ for Electron tooling, and an AI provider supported by OpenCode. Exact versions are declared in manifests and the root lockfile.
git clone https://github.com/fwdslsh/fhold.git
cd fhold
bun install --frozen-lockfile
bun run --cwd packages/cli build
fhold_build_version="$(node -p 'require("./package.json").version')"
fhold_build_revision="$(git rev-parse HEAD)"
fhold_build_date="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
docker build --build-arg PLATFORM_VERSION="$fhold_build_version" --build-arg VCS_REF="$fhold_build_revision" --build-arg BUILD_DATE="$fhold_build_date" -f containers/assistant/Dockerfile -t "fhold/fhold-assistant:$fhold_build_version" .
docker build --build-arg GUARDIAN_VERSION="$fhold_build_version" --build-arg VCS_REF="$fhold_build_revision" --build-arg BUILD_DATE="$fhold_build_date" -f containers/guardian/Dockerfile -t "fhold/fhold-guardian:$fhold_build_version" .
docker build --build-arg PLATFORM_VERSION="$fhold_build_version" --build-arg VCS_REF="$fhold_build_revision" --build-arg BUILD_DATE="$fhold_build_date" -f containers/portal/Dockerfile -t "fhold/fhold-portal:$fhold_build_version" .
./packages/cli/dist/fhold-cli --version
FH_IMAGE_NAMESPACE=fhold ./packages/cli/dist/fhold-cli install --name personal-agent --no-start
./packages/cli/dist/fhold-cli -n personal-agent setup --provider <provider-id>
These are local source-build instructions. Identify development candidates by commit SHA/image digest; unpublished builds may change without consuming another release counter. Qualify the final stamped source and artifacts. Once a Git tag, versioned image or release download is public, its bytes are immutable and changed content needs a new version. See release operations. Only the exact runtime revision and artifacts recorded in Admin/artifact qualification or the Assistant recovery qualification carry that qualification; building an arbitrary checkout does not inherit it.
Build the matching local images before setup or start. The persisted literal
fhold namespace never pulls during activation, and ordinary update uses those
local builds without registry contact. A missing image requires a local build;
explicit update --pull is refused rather than treating fhold/ as Docker Hub.
Select an instance
The CLI selects a home in this order:
--nameor-n: a directory name beneath~/fhold/instances/, or an absolute path.FH_HOME, if explicitly set in your shell.- The current working directory when neither is supplied.
No environment variable is required. The selector works before or after a command, including nested commands. For example:
fhold install --name personal-agent
fhold -n personal-agent status
fhold --name /srv/fhold/another-agent status
With FH_HOME unset, running fhold install from an empty directory installs
there; running fhold status from an existing home manages that home. Relative
paths such as ./agent are not selectors: change directory or pass the full path.
Admin suggests ~/fhold/instances/<name> and uses ~/fhold/instances/default
as its unnamed default. ~/fhold itself is not an instance; it may also hold
backups, docs and other local directories. Custom locations remain supported.
Existing homes are never moved automatically; continue selecting their original
location explicitly.
CLI and Admin derive the same stable per-home Compose
project. A DNS-safe directory name under the default instances root is also the
initial instance name: fhold install -n personal-agent chooses both its folder
and initial container/hostname identity. There is no second install-name flag.
For a custom folder, Admin's Instance name field or CLI install --config
can supply a different initial identity. The name is persisted in
deployment.projectName, produces containers such as personal-agent-assistant-1
and sets the Assistant's OS hostname to personal-agent. Use lowercase letters,
numbers and hyphens, up to 63 characters. Under the default layout the folder name
is the initial instance name; custom homes retain a unique per-home suggestion.
Names are chosen during installation; existing homes
keep their project identity. Additional instances need distinct names. Fresh setup
prefers ports 3810/3830; if either is already in use, it chooses an available pair
and saves those exact ports. CLI install --config preserves explicitly supplied
ports instead. Existing installations keep their ports on refresh and update.
Foreign/unrelated nonempty folders are refused without adoption.
The compiled CLI does not automatically load the invoking directory's .env
or bunfig.toml; set intended environment variables explicitly in the shell.
Assistant is the only default container. Setup starts the instance and completes
only after a real no-tool request succeeds. setup --provider <id> runs that
provider's native browser sign-in when it is not ready, then uses the verified
model as the agent's default; fhold provider list shows provider IDs. Normal
provider usage may be billed. OpenCode owns authentication and models; fhold
does not introduce another provider credential format.
fhold provider list
fhold provider login <provider> [--method <index|label>]
fhold provider key <provider> --key-file /private/path/to/key
fhold provider test
fhold doctor --readiness
Provider commands start the local instance when needed and use OpenCode's HTTP
API, the same session Admin and hosted connections use. login
prints the native browser sign-in link and asks for a code only when the method
needs one. Providers with extra sign-in fields use Admin or OpenCode.
Use --key-file - for standard input. Do not paste keys into command arguments.
Native v2 credentials persist in the OpenCode database under
data/assistant/.local/share/opencode/. Portable exports include them only
with the explicit provider-auth option.
Optional local Admin
On Linux, open Settings → Application menu → Add to application menu in the
AppImage. This installs a per-user copy at ~/.local/bin/fhold-admin.AppImage,
plus a standard desktop entry and fhold icon under $XDG_DATA_HOME (normally
~/.local/share). No administrator access or AppImage integration utility is
needed. Open fhold Admin from KDE's launcher or GNOME's Applications search;
pin that entry to the taskbar or dash. This uses standard XDG application identity
and has been verified on KDE; GNOME and X11/Wayland-specific window grouping
still need manual qualification. The original download is left alone; no agent files change.
The menu copy has a stable filename, so automatic updates keep its launcher working. Launch the menu copy for everyday use. From another download, Replace menu copy with [version] installs that running version only after confirmation. The menu copy may have updated itself and be newer; replacement can downgrade it. Cancel to keep it. When running the menu copy, Refresh menu entry repairs its launcher/icon without copying the executable. After an automatic update, the installed copy refreshes changed menu/taskbar artwork on its next launch. Native-size icons are installed for small title bars and larger launchers; the desktop's icon/menu caches are notified without clearing user caches or restarting the desktop. Separate downloads do not change the installed menu until you explicitly replace its copy. Custom launchers are preserved. A previously pinned shortcut to a downloaded AppImage may need to be unpinned and replaced with the menu entry.
Automatic Admin updates use the selected Stable/Beta/Alpha channel and never upgrade agents. Every launch resolves managed assets from the running Admin's own resources, including the first launch after an automatic update; an old AppImage mount or inherited developer override cannot select another release's assets. Development builds retain explicit asset overrides.
Native desktop packaging is also configured for Windows and macOS:
- Windows uses a per-user NSIS installer with a fhold Admin Start menu shortcut, an embedded application icon and a matching taskbar identity. Pin the installed application to the taskbar; no separate menu-install button is needed.
- macOS uses a DMG: drag fhold Admin into Applications, then open it there and keep it in the Dock. The bundle contains its icon and stable application ID.
Build these on their native platforms with build:windows or build:mac in
packages/electron. The Native Admin desktop checks workflow builds preview
installers and checks their installed shortcut/bundle identity, icons and real
renderer startup. Preview updates are disabled. These checks do not start agents
or publish releases. Windows/macOS packages are not yet in the public release
asset set; native CI and platform testing must pass before distribution. Public
macOS updates additionally require a signed/notarized release and its ZIP/feed;
Windows has native NSIS updater support. Update checks remain disabled on both
platforms until their public feeds are published. This is desktop integration, not a claim
that local Docker hosting on Windows/macOS has been qualified.
For development:
bun run --cwd packages/electron bundle
bun run --cwd packages/electron start
Admin automatically reopens the last-used compatible instance. First launch or
an unavailable previous instance shows Welcome: choose Set up a new agent
or Open existing instance…. Import an instance… is a separate choice for
an entire-instance export. Use the instance dropdown → Open another instance…
to return to these choices and a compact list of recent instances.
The three-step wizard installs the agent, connects an AI account, then opens
the ready instance. New setup asks for a name once and suggests
~/fhold/instances/<name>. Docker and Compose checks run in the background
while you choose. Advanced, collapsed by default, contains both the folder
location and optional manual ports. Confirm Install fhold below it.
Successful prerequisite checks show no extra status message. If Docker or Compose
is unavailable, setup shows the problem, official setup guides and Check again.
Import an instance… opens its own Choose folders → Review & import workflow.
Select an entire-instance export and a new/empty destination, then choose
Review import. The next screen shows the saved identity, both paths and any
warnings before the native import confirmation. Back edits the folder
choices without losing them; Cancel import leaves the flow. Import never
runs installation first and leaves containers stopped.
New setup refuses non-empty folders and rejects a
name already used by Docker before writing installation files. Folder selection
alone does not install or start anything. Only explicit new setup accepts an
empty folder; opening an existing instance requires a compatible fhold home.
Provider authentication
and readiness use the same Assistant as CLI. A startup/port failure offers an
explicit retry, not reinstall-over-data.
The first setup/import step has only Cancel, not a duplicate Back action.
Cancel setup returns to the instance choices before installation.
After installation, Finish later leaves the agent running;
reopen it to continue account setup.
For a verified Linux package, use bun run --cwd packages/electron build:linux.
Actual packaged startup requires the release smoke gate; a bundle alone is not
a packaged-release claim.
Choose a client
Admin's Open OpenCode button opens your browser already signed in using a native single-use link. The OpenCode links in Apps and System do the same; no password copying is required for a local or SSH-managed instance. For an HTTPS-hosted agent, connect it once in Admin's Apps → OpenCode section first. Admin does not change or restart the instance to open it. Keep Admin open while using an SSH-forwarded workspace. Pairing links expire after five minutes and work once; click Open OpenCode again if a link expires. OpenCode owns the browser session, which expires after 30 days or when the instance password changes.
OpenCode provides trusted native access. Guardian MCP and portals are optional and policy-scoped; see connections, Discord, Slack and native remote workers.
For supported portable backups, initialize a fresh home with --no-start,
preview and apply fhold restore before completing setup. See
management and recovery. Raw folders and foreign manifests
are not accepted. Windows/macOS distribution still requires native release
verification; desktop packaging alone does not qualify local hosting on those systems.