Install the CLI
Install the CLI on each computer where your tools will request credentials. Choose one method below and use the same method for updates.
Check your platform
Section titled “Check your platform”| Platform | Requirements |
|---|---|
| Linux | x86-64 or ARM64, Linux 5.8 or later |
| macOS | Apple Silicon and macOS 15 or later |
On Windows, install inside WSL2 using the Linux instructions. Native Windows and Intel Macs are not supported. See Requirements and compatibility for network and command compatibility.
Install with the installation script
Section titled “Install with the installation script”The script downloads the latest prebuilt release for your platform, checks its published SHA-256 checksum, and installs agentknock in ~/.local/bin. It needs curl, tar, and either sha256sum or shasum alongside the usual shell utilities.
curl -fsSL https://agentknock.dev/install.sh | bashRun the same command to update. If the installer asks you to add its directory to PATH, this makes it available in the current Bash or Zsh session:
export PATH="$HOME/.local/bin:$PATH"Add that line to your shell’s startup configuration to keep it available in new terminals. For release archives and manual verification, see the CLI repository’s release instructions.
Install with mise
Section titled “Install with mise”With mise installed and activated in your shell, install the GitHub release:
mise use --global github:agentknock/agentknock-cliTo update it:
mise upgrade github:agentknock/agentknock-cliInstall with npm
Section titled “Install with npm”With Node.js ^22.15.0 or >=24.0.0 and npm installed, add the agentknock command globally:
npm install --global agentknockTo update it:
npm update --global agentknockTo try the CLI’s help without a global installation, use npx agentknock --help.
Install with Nix
Section titled “Install with Nix”With Nix’s nix-command and flakes features enabled, add Agentknock to your profile:
nix profile add github:agentknock/agentknock-cliTo update it:
nix profile upgrade agentknock-cliTo run it without adding it to a profile, use nix run github:agentknock/agentknock-cli -- --help. This method builds from the repository’s default branch; it can include changes newer than the latest published release.
Build from source with Cargo
Section titled “Build from source with Cargo”With Rust 1.89 or later and Cargo installed, build the published crate:
cargo install --locked agentknockThe build also needs a C/C++ toolchain for its cryptography dependency; see the requirements for Linux or macOS. Cargo normally installs the executable in ~/.cargo/bin, which must be on PATH. Run the same installation command to update.
Check the installation
Section titled “Check the installation”Check that your shell can find Agentknock:
agentknock --versionThe command prints agentknock and its installed version. It does not contact the phone. You can also check the available commands:
agentknock --helpIf the command is missing or shows an unexpected version, run command -v agentknock to check which installation your shell is using, then check that method’s PATH setup.
Continue with Getting started to connect the CLI to your phone and run your first approved command.