CLI Reference

agentty is one binary with a handful of subcommands and flags.

Running

agentty                                # run in the current directory
agentty --workspace ~/code/project     # run against another workspace
agentty -k sk-ant-…                     # single-session key, never written to disk

Subcommands

CommandWhat it does
agenttyStart an interactive thread in the workspace.
agentty loginAuthenticate non-interactively (useful over SSH).
agentty logoutClear stored credentials.
agentty statusPrint which auth source will be used.
agentty airgap user@hostRun the agent on a remote host through an SSH SOCKS tunnel.
agentty --versionPrint agentty <version> and exit.
agentty --helpPrint usage and exit.

Common flags

FlagEffect
-k, --key <key>Use this API key for one session; never written to disk.
--workspace <path>Set the workspace root without cd.
-V, --versionPrint the build version and exit.
--setup(airgap) Copy credentials to the remote on first run.
--remote-agentty <path>(airgap) Path to agentty on the remote if not on PATH.