Skip to content

agentux setup

Jackson Sá edited this page Oct 21, 2026 · 1 revision

/usr/libexec/agentux-setup (common/usr/libexec/agentux-setup) is a bash script, the backend of the wizard and of the cockpit's system actions. The cockpit calls it through one Tauri command, setup_exec, with an allowlist of subcommands. Output meant for the UI is JSON (it needs jq). agentux-setup --help lists everything.

Subcommand What it does
plan, install --dry-run Print the commands a batch of catalog items would run
install, start Run a batch (in a transient systemd-run --user unit for start, one batch at a time)
status JSON: each item's state and log, the agent CLIs (installed, signed in, version), the first-login install
retry-first-login Restart the image's first-login agent CLI install
profile <id> Record this machine's profile
signin <claude|codex|opencode|antigravity|github> Open a terminal with the vendor's own login
update-agent <harness> Open a terminal that updates that CLI
launch <item>, open-url <url> Open an installed app, a link
git, ssh-key Write ~/.gitconfig; create an ed25519 key
clone <repo> [dir] Clone owner/repo (through gh when signed in) or any URL into ~/src
key list|set|remove <VAR> API keys in the secret service under agentux-key=<VAR> (the value is read from stdin)
node status|pending|enroll|confirm|reject The node gateway: enrollment state, held commands, enroll with a token on stdin, decide a held command
should-run, autostart, wait-desktop-setup, finish, reset The wizard's first-run logic
vscode-settings, vscode-sdks, jetbrains-toolbox, distrobox-create Install helpers used by catalog items

The catalog

common/usr/share/agentux/setup/catalog.json is data: adding an app is adding an entry. Each item installs one of four ways — Flatpak (per user, Flathub added from the shipped flathub.flatpakrepo), JetBrains Toolbox, mise (mise use --global) or Distrobox. VS Code gets host integration (a terminal through flatpak-spawn --host, podman for dev containers, matching SDK extensions); the reasons are in ADR 0013.

Sign-in detection

status reports a CLI as signed in when its credentials exist: ~/.claude/.credentials.json or ANTHROPIC_API_KEY; ~/.codex/auth.json or OPENAI_API_KEY; OpenCode's auth.json; a token file under ~/.gemini/antigravity-cli. "Unknown" (null) is not "signed out".

Clone this wiki locally