Skip to content
Documentation
v0.1.6
Tally docsTerminal

Command line (CLI)

The command line gives quick answers and works in scripts. In a terminal it prints readable tables and summaries; piped or redirected, it prints the API's JSON unchanged. Sign in once and later commands need no flags.

The commands#

Ten commands cover everyday use. Run tally --help to see them, and tally <command> --help for examples.

CommandWhat it does
loginSign in, guided. Also logout.
statusThe server, the connection and who you are signed in as.
scanFind AI on this computer and send it to Tally. Asks before reading anything.
overviewYour AI estate at a glance.
aiThe AI found, by surface. tally ai KEY shows one item.
eventsThe activity events Tally has kept.
connectorsList connectors; sync, pause, resume, history, configure, show, delete.
decideSanction a provider or model, or allow or deny an MCP server.
tuiThe interactive console.

Earlier command names (ai-inventory, ai-item, whoami, sync, history, pause, resume, configure, mcp-decide, findings, registry, inventory) still work in scripts but are hidden from help.

Sign in#

In a terminal, tally login is guided. It shows the logo, asks for the server address (offering the last one), checks that it answers, asks for your CA certificate if the server's certificate is not trusted, then asks for your email and password (typed without echo).

The guided tally login: the logo, Sign in to Tally, the server address, a certificate warning followed by the CA file path, a successful connection, email and password prompts, then Signed in and a Try next list
Guided sign-in. Here the server uses a private certificate, so it asks for the CA file.

The server and CA certificate are remembered, so every later command works without --url or --ca-cert. The session lasts 12 hours. Check where you stand at any time:

tally status showing the server, a reachable and trusted connection, and the signed-in user with the time the session expires
status checks the address, the connection and your sign-in in one go; it exits 3 if the server is unreachable and 4 if you are not signed in.

Which server a command talks to: --url (or TALLY_CLIENT_URL) if given, else the server you last signed in to, else https://localhost:2357. TALLY_CA_CERT sets the CA certificate from the environment. There is no option to skip certificate checks, and plain HTTP is accepted only for loopback addresses.

In scripts

Terminal
tally login --url https://tally.example.com --ca-cert ca.pem \
  --email you@example.com --password-stdin < password.txt

The password is never accepted as an argument. With flags, nothing is asked that you already gave.

Look around#

The tally overview summary: counts of sanctioned, unsanctioned and awaiting-decision AI, providers and models, users and hosts, connectors and last activity
overview summarizes the estate.
A table from tally ai with the AI name, surface, location, evidence, decision, last seen and key, followed by the next-page command
ai lists the AI found, one row per item and location, under the same five surfaces as the web console. Each page ends with the command for the next one.
CommandShows
overviewCounts of decisions, providers, models, users, hosts and connectors.
aiThe AI found. Filter with --surface coding,models,browser,framework,apps, --review, --evidence, --query, --window-days.
ai KEYOne item's evidence, identities and timeline.
eventsThe activity events Tally has kept (--kind, --status, --from, --until).

ai and connectors history page with --cursor; events pages by number, and you pass the response's snapshot back with --snapshot to keep a fixed cutoff while paging.

Work with connectors#

The tally connectors table with ID, name, health, last run, records and error columns; the first rows are shown
connectors lists every connector with its health. IDs are shortened to 8 characters.

Name a connector by its full ID, the first characters of the ID (4 or more, when unique), its exact name, or a unique part of its name. If a name matches more than one connector, nothing happens and the matches are listed.

tally connectors show okta printing the connector's details, then tally connectors pause okta asking to confirm and being cancelled
A unique part of a name is enough. Changes ask first, and answering no changes nothing.
Terminal
tally connectors show okta       # schedule and saved settings (never secrets)
tally connectors sync "Corporate proxy" --wait   # run now and print the outcome
tally connectors sync --all      # run every connector
tally connectors history 361e89bb   # recent runs, with any error
tally connectors pause proxy     # and: tally connectors resume proxy
tally connectors delete 361e89bb # evidence already collected is kept

connectors sync --wait follows the run until the connector reports a new poll (120 seconds by default; --timeout changes it) and prints the records read and accepted. A failed run exits 1 with its error code, and connectors history shows the details.

Create a connector#

Start from a template built from the web console's own form definitions: defaults are filled in and anything you must supply is shown as <…>.

Terminal
tally connectors template                   # every type
tally connectors template litellm > litellm.json
# edit litellm.json: fill in the values shown as <…>
tally connectors configure --file litellm.json --dry-run
tally connectors configure --file litellm.json
Creating a template with tally connectors template litellm, then tally connectors configure --dry-run printing a preview of the connector with the API key hidden and the message Dry run: the file looks complete. Nothing was saved.
connectors configure checks the file and shows what it will save, with secrets hidden. --dry-run only checks, and needs no server or sign-in.

connectors configure checks source_kind, interval_seconds, acknowledge_source_access: true and that no placeholder is left, shows the preview, then asks. Without connector_instance_id the server uses the type's default connector, so saving can replace an existing connector of that type; the result says whether it created or updated one. To add another, put a new UUID in connector_instance_id. Credentials in the file are encrypted by the server; keep the file private and delete it afterwards.

Sources imported from export files (DNS, proxy and MCP logs) are added in the terminal console or the web console, not here. The request is the same as POST /api/v1/tally/connectors/schedules (ConnectorScheduleRequest in the OpenAPI document).

Record decisions#

Terminal
tally decide provider anthropic allow     # or deny; also: decide model <name>
tally decide mcp mcp.github deny --tool create_issue   # allow | deny | clear

Providers and models are found by key or name, so you don't copy identifiers. Every command that changes something asks first (“Unsanction provider Anthropic? [y/N]”). --yes (-y) skips the question; with no terminal to ask in, the command stops and says to add --yes. Answering no changes nothing. A decision records approval; it does not block vendor traffic.

Readable for you, JSON for scripts#

tally status printing a readable summary, the same command with --json printing JSON, and tally overview piped to jq printing compact JSON
The same data three ways: readable, with --json, and piped.
  • In a terminal, commands print summaries and tables. Piped or redirected, they print the API's JSON unchanged, so existing scripts keep working.
  • --json forces JSON in a terminal. Colour is used only in a terminal and NO_COLOR=1 turns it off.
  • Responses keep their pagination and coverage metadata; one page is not a whole-tenant export.

Errors and exit codes#

Three failing commands with their messages and exit codes: tally status against a closed port exits 3, tally connectors history with an unknown ID exits 5, and an unknown command exits 2
Each message names the address or file involved and says what to do. The exit code says what kind of failure it was.
ExitMeaning
0Success.
1Any other failure: invalid input, an unusable --ca-cert or session folder, a failed sync, or a name that matches nothing.
2Usage error: an unknown command or option, or a value out of range.
3Could not reach the server: connection refused, name not found, certificate problem, wrong protocol or a timeout.
4Not signed in, or the session expired or was revoked. Run tally login.
5The server answered and rejected the request (any other HTTP error).
141The output pipe closed early (for example piping to head), which ends quietly like other Unix tools.

Add --json-errors (or TALLY_JSON_ERRORS=1) to print a failure as one JSON object on standard error. kind is connect, auth, server or error; status is the HTTP status when the server answered; code is the server's machine-readable code when it sent one.

Terminal
{"error":{"kind":"server","status":404,"code":"connector_not_found","message":"HTTP 404: That connector does not exist; list connectors with `tally connectors`."}}

When the server cannot be reached

The message saysCause and fix
Nothing is listening at URLWrong host or port in --url, or Tally is not running.
Cannot find the hostThe name does not resolve. Check spelling, DNS or your VPN.
The TLS certificate … is not trustedA self-signed or private certificate. Pass --ca-cert /path/to/ca.pem (login asks for it and remembers it).
… is not valid for the host name in --urlThe certificate lists other names (the message prints them). Use one of them in --url.
… expired on / is not valid untilRenew the certificate, or correct this computer's clock.
URL did not answer with TLS / with HTTPhttps:// sent to a plain-HTTP port, or the reverse. Plain HTTP works only for loopback addresses.
Timed out after 10 seconds connectingNothing was sent. Check the address and any firewall.
No answer … within the 30 second limitThe request was sent, so a change may still have completed. Check before repeating it.

If the server answers HTTP 403 because the request origin is not the address Tally is configured for, the message names both. Use the address in the server's TALLY_URL.

Scan a computer#

scan finds AI on the macOS or Linux computer it runs on and sends the result to Tally. It reads only the computer and account it runs as, and does not scan other hosts or network ranges.

It runs by default

So there is data to show straight away, Tally scans the computer for you the first time:

  • tally login scans this computer once after you sign in. It asks for your agreement the first time (“Scan this computer for AI? [Y/n]”) and reads nothing before that. Use tally login --no-scan, or set TALLY_NO_AUTO_SCAN=1, to skip it.
  • tally tui does the same when it starts with a saved session and this computer has not been scanned.
  • The web console scans the computer the Tally server runs on when an administrator opens an empty Overview (native installations).

It never runs without a terminal, and it happens once per server and computer. Run tally scan to scan again, and tally scan --install to keep it up to date.

Terminal
tally login
tally scan --dry-run     # print the request; send nothing
tally scan --once        # scan and exit
tally scan               # scan, then keep watching
tally scan --install     # keep watching in the background
tally scan --uninstall

After the first scan the client receives a credential for this computer and keeps watching: it rescans every --interval seconds (60 by default), sends a snapshot only when what it finds changes, and otherwise sends a heartbeat so the console shows the computer as live. That credential can only fetch scan signatures and send this computer's snapshots and heartbeats. Stop scanning in the console revokes it, and the watcher stops at its next check.

--install hands watching to a systemd user service (tally-scan.service; run loginctl enable-linger to keep it running while logged out) or a macOS LaunchAgent (ai.godel.tally-scan, logs in ~/Library/Logs/tally-scan.log). --uninstall removes it; the credential stays until you revoke it in the console. What is read and sent is described in the local host privacy notes.

Help and Tab completion#

Terminal
tally --help                # commands in the order you use them
tally <command> --help      # every option, with examples
source <(tally completions bash)    # also zsh, fish, powershell, elvish

Add the source line to ~/.bashrc (or ~/.zshrc) to keep Tab completion in every new shell. It completes commands and options.

The tally --help output: the list of commands in order of use with one-line descriptions, followed by the global options
tally --help lists the commands in the order people use them.

Sessions and embedding hosts#

A standalone sign-in reuses the console's 12-hour session and account lockout rules; tally status and tally status show when it expires. The session is stored under $XDG_STATE_HOME/godel-tally or $HOME/.local/state/godel-tally, in a directory owned by you with mode 0700 and a regular file with mode 0600; symbolic or hard links and group or other access are rejected. Override the file with --session-file, placing it in a private directory. Passwords are never stored or printed. When a prompt is not possible, login --password-stdin reads the password from redirected input.

  • logout revokes the session and deletes the local file. session-forget removes only the local credential, and succeeds when nothing is saved.
  • If the session folder is unsafe, login fails before it asks for a password and names the fix (chmod 700 <folder>). If saving fails after a successful sign-in, the new session is revoked on the server.
  • Requests never carry credentials through a redirect or to another origin.

An embedding host such as Gödel Gate keeps its own sign-in and permissions. Import its browser session through redirected input with tally --url https://host session-import --hours 1; this checks inventory access before saving and does not create a token or bypass the host's authentication. Use the host's own controls for host accounts.

Esc
  • Welcome to TallyGet started · Install Gödel Tally and discover your organization's AI inventory.
  • Install TallyGet started · Choose an installation method, install the Tally binary with one command, choose databases, and configure HTTPS.
  • Install with DockerGet started · Run Tally, PostgreSQL, and ClickHouse with Docker Compose and the published image; no Tally binary needed.
  • Install with Apple containerGet started · Run the same Tally images with Apple container on an Apple silicon Mac.
  • Connect your sourcesUse Tally · Configure read-only discovery sources and understand their evidence.
  • Inventory & findingsUse Tally · Explore AI activity, review evidence, and record governance decisions.
  • Accounts & emailUse Tally · Manage invitations, passwords, roles, and email delivery in Gödel Tally.
  • Terminal overviewTerminal · Tally's two terminal tools: the command line (CLI) and the interactive console (TUI), and which to use.
  • Command line (CLI)Terminal · Sign in once, look around, manage connectors and script Tally: readable output in a terminal, JSON when piped, with exit codes.
  • Terminal console (TUI)Terminal · The web console in a terminal: sections, keys and mouse, connecting a source, and light and dark themes.
  • Configuration referenceOperate · Find Tally's saved settings, installation paths, ports, and environment reference.
  • Services & maintenanceOperate · Start, stop, update, back up, and uninstall Tally.
  • Privacy & dataOperate · Understand retained metadata, storage, retention, and data deletion.
  • Upgrade to Gödel GateOperate · Review the Docker-based Gate upgrade, transferred data, and cutover process.
  • ArchitectureBuild · How the Tally binary, connector worker, web console, and databases fit together.
  • DevelopmentBuild · Run Rust and Next.js with live reload and build release binaries.
  • API & integrationsBuild · Find Tally's generated API contract, authentication boundary, and connector fixtures.