fleetremote AI, safely

installation

Installation

fleet is glue, not a package: a host runs from a git checkout plus a state directory and the external tools it already uses. Install the pieces you need — the dispatcher core and panel run without Jenkins.

Prerequisites

  • Python 3.11+ and pip (PyYAML + jsonschema).
  • git and the GitHub CLI (gh) on the runner host.
  • Linux runners (COI): Incus and coi, with your user in incus-admin.
  • Admin panel / website: Erlang & Elixir (admin) through mise, Node (website), pinned in the repo mise.toml.
  • Jenkins controller + build nodes (installed separately).

1. Get the code

git clone https://github.com/wrbl606/fleet.git
cd fleet

2. Dispatcher core

fleetctl owns normalize → resolve → plan → run → publish. It is stdlib-first and runs identically on a laptop and in CI.

python3 -m pip install -r requirements.txt
python3 -m fleetctl env-check --platform linux

3. Trusted registry

Keep the tracked registry.yaml generic and write deployment-specific routing, allowlists, and comment policy to the git-ignored registry.local.yaml overlay.

# write deployment-specific routing to the git-ignored overlay
scripts/configure-registry.sh jira --project ENG --repo acme/engine --labels agent
scripts/configure-registry.sh trusted acme/engine
scripts/configure-registry.sh show --effective   # merged view

4. Admin panel

The panel owns the run ledger and the webhook ingest endpoint. It defaults to 0.0.0.0:4000 and migrates the database on start.

mise install
bash admin/start.sh --host 0.0.0.0 --port 4000
Env varPurpose
FLEET_INGEST_TOKENBearer token for POST /api/ingest, POST /api/trigger, and GET /api/metrics
FLEET_WEBHOOK_URLDispatcher endpoint inbound webhooks are forwarded to (Jenkins GWT invoke URL)
FLEET_WEBHOOK_TOKENToken appended to the forward URL and sent as a bearer header
FLEET_INGEST_PUBLIC_URLPublic URL of the panel ingest endpoint, shown on the Trigger page
FLEET_GITHUB_WEBHOOK_SECRETGitHub webhook secret for X-Hub-Signature-256 HMAC auth
FLEET_JENKINS_URLJenkins master web UI, linked from the nav and Trigger page
GITHUB_TOKENGitOps config PRs (contents:write, pull-requests:write)
FLEET_ADMIN_USER / FLEET_ADMIN_PASSWORDOptional HTTP Basic auth for the UI

Pages: / run ledger, /ingest ingest log, /trigger manual trigger, /gitops config PRs.

5. Jenkins

Jenkins is not bundled. The dispatcher core and panel run without it, but the webhook → pipeline → PR flow needs a Jenkins you operate. For a local WAR install use the helper scripts; otherwise install the plugins from scripts/jenkins/plugins.txt, add this repo as a global shared library named fleet-config, provide nodes labeled fleet-agent, and create the credentials fleet-webhook-token, fleet-github-read,fleet-github-token, and one per [agent].llm_env. See Triggers & ingest for the webhook wiring.

6. Landing page (optional)

The marketing site is a static Astro build in website/.

bash website/start.sh            # dev server on 0.0.0.0:4100
bash website/start.sh --build    # production build + preview
bash website/start.sh --daemon   # background; stop with website/stop.sh

7. Verify

Run the sandbox smoke test (no LLM key required) and the CI checks.

bash scripts/smoke.sh     # expected: PASS

bash scripts/ci.sh         # fleetctl unit tests + schema validation
bash scripts/ci-admin.sh   # admin: compile --warnings-as-errors + format + tests

Next

Configure how tasks enter fleet in Triggers & ingest, or read the security model.