Valkyrian Labs

Installation

Install forti from the APT repository or Homebrew, or build it from source.

Installation

forti is a single executable. Its only runtime library dependency is libcurl; the forti-api SDK is header-only and compiled in. Client certificates (forti configure, forti cert) also use the openssl command, which macOS ships (/usr/bin/openssl, LibreSSL) and the Debian package depends on. The packages install forti, its man page (man forti), shell completions (bash, zsh, fish), and forti-mcp, the MCP server AI agents use.

Install forti

Pick the method for your platform: the APT package (Debian and Ubuntu, amd64), the Homebrew formula (macOS and Linux), or a build from source.

The forti-cli package (amd64) is published to the ValkyrianLabs APT repository:

1sudo install -d -m 0755 /etc/apt/keyrings2sudo curl -fsSL https://apt.valkyrianlabs.com/pubkey.gpg \3  -o /etc/apt/keyrings/valkyrianlabs.gpg4sudo chmod 0644 /etc/apt/keyrings/valkyrianlabs.gpg5 6echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/valkyrianlabs.gpg] https://apt.valkyrianlabs.com stable main" | \7  sudo tee /etc/apt/sources.list.d/valkyrianlabs.list > /dev/null8 9sudo apt update10sudo apt install -y forti-cli

The packages recommend valkyrianlabs-archive-keyring (APT installs it by default), which puts the repository key at /usr/share/keyrings/valkyrianlabs.gpg and keeps it current through normal upgrades (for example when its expiry changes). When the key downloaded above is unmodified, the package replaces it with a symlink to the packaged key, so the source line above keeps working and you never need to download the key again. Removing the package turns the symlink back into a plain copy. Signing key fingerprint: 494D 71A1 EEDD F87B D48E 5048 6D64 CB7B DFC3 0EC6.

The executable is /usr/bin/forti. APT also installs the forti-mcp package, which forti-cli recommends (unless recommends are turned off). The .deb from a GitHub release installs on its own too.

forti-mcp

forti-mcp, the MCP server for AI clients, comes with forti-cli (a Homebrew dependency, an APT recommendation). It is also a package of its own, with no dependency on forti-cli: brew install valkyrianlabs/tap/forti-mcp or sudo apt install forti-mcp. forti mcp install registers it with your AI clients in the ~/.forti workspace (AI agent integration).

Check the installation

1forti --version2forti discover firewall/address3forti home

--version prints the forti version and the FortiOS schema version its models come from (forti 0.2.0 (FortiOS schema 7.4.8)). discover works offline: the resource catalog is compiled in. forti home shows where forti keeps its files: the forti home, ~/.forti (or $FORTI_HOME). Upgrading from 0.1? Your existing setup keeps working; see Pre-0.2 setups.

Shell completion

The APT package and the Homebrew formula install Tab completion for bash, zsh and fish: commands, options, profile names, resource paths and pending plan ids. A source build installs it with meson install; for a copy in your home directory instead, see forti completion.

Next steps

Quick start

Configure a FortiGate, check it, and start an AI agent in ~/.forti.

Profiles and credentials

Every forti configure option, credential sources and TLS.

Building

Build options, the resource catalog and the release profile.