Skip to main content

What is the Topcalls CLI?

It’s a command line for your Topcalls account. It runs the same tools as the MCP server from your terminal, and can add the Topcalls MCP server to your AI coding apps for you. For the pitch, see topcalls.ai/cli.

How do I install it?

You need Node.js 20 or newer.
The package is @topcalls/cli, with the scope. A package named plain topcalls or topcalls-cli is not ours.

How do I sign in?

topcalls login opens the Topcalls sign-in page in your browser. Approve the connection there, then go back to the terminal. When it can read the account name, it shows it so you can check it is the one you expect. A name is all it can show, not proof. If the browser doesn’t open, copy the link the CLI prints. topcalls login --no-browser only prints the link.

How do I add Topcalls to my AI coding apps?

This finds Claude Code, Cursor, Codex and VS Code on your computer and adds the Topcalls MCP server to each one. It prints the address it will write, asks before changing anything, keeps the other servers you have, and the first time it changes a file it saves a copy next to it as <file>.bak-topcalls. No password or token is written. Claude Code, Cursor and VS Code ask you to sign in to Topcalls the first time they use a Topcalls tool. For Codex, run codex mcp login topcalls once after setup.

How do I run a tool?

Every tool your account can use is a command. The CLI asks Topcalls for the list each time, so new tools show up without an update.
  • Write a flag exactly as topcalls <tool> --help shows it, for example --listId.
  • Text, numbers, true or false and fixed choices are flags. A true or false flag on its own means true, and --no-<flag> means false.
  • Lists and objects go in --json '{...}'. When both give a value, the flag wins.
  • The result is printed as JSON.
  • A tool that changes data first shows the account name (or says it couldn’t be checked) and the arguments, then asks Run <tool>? [y/N]. Add --yes to skip the question. Without a terminal to answer in, --yes is required.
The tools are the ones on the Tools page.

What do the exit codes mean?

How do I sign out?

It asks Topcalls to end the connection and removes it from this computer. If Topcalls couldn’t be told, it still removes it here, says so, and exits with 1. End the connection on the CLI & MCP settings page in Topcalls.

Is the CLI safe?

  • The CLI can do what the connected Topcalls account allows and nothing more. A read-only connection only sees the tools that read.
  • Every action goes through the same checks, limits and activity log as any other AI app connected to Topcalls. See Security and limits.
  • You can see and end every connection on the CLI & MCP settings page in Topcalls.
  • Sign-in uses OAuth with PKCE in your browser. The CLI never asks for your password and never takes a token on the command line.
  • Credentials are stored in ~/.config/topcalls/credentials.json, readable only by you. On macOS and Linux the CLI refuses a file other users can read. Windows doesn’t get that check.
  • The CLI talks only to the Topcalls address in use, over HTTPS, and never follows a redirect. It sends no analytics and doesn’t check for updates.
  • What a tool prints can contain text other people wrote, such as lead names or call transcripts. The CLI removes terminal control codes and invisible characters, but treat the output as untrusted when you pipe it into an AI agent.

Which environment variables does it use?