Skip to main content
The Mihu CLI is the official command-line interface for Mihu. Every endpoint of the API is available as a command, so you can build agents, buy numbers, place calls, read conversations and run campaigns without leaving your terminal. In this guide you will:
  • Install and authenticate the CLI
  • Run your first commands
  • Manage several workspaces
  • Connect your AI IDE to Mihu through MCP

Installation

The installer downloads a single binary for your platform, verifies its checksum and puts it on your PATH. No runtime is required. Verify with mihu version. If your shell already has an alias named mihu, the alias wins; rename it or run command mihu.

Quick start

1

Authenticate

The CLI asks for your workspace subdomain (the abc in abc.mihu.ai), opens the API token page of your dashboard, and stores the token you paste. See Authentication for how tokens work.
2

Look around

3

Place your first call

The response includes the call id, the conversation id and a live listen URL.

Key features

Every endpoint, one command tree

Commands mirror the API. Path segments become groups, path parameters become arguments and the HTTP method becomes the verb:

Interactive create and update

Run a create or update command without arguments and the CLI walks you through every field with its description, validates enums and shows the request before sending it:
Or pass fields as flags, since every body field is a typed flag:

Scripting and CI

Output is a table on a terminal and JSON when piped, so the CLI composes with jq:
In CI, skip mihu login and set two environment variables:

Several workspaces

MCP for your IDE

Give Claude Code, Cursor, VS Code, Windsurf or Claude Desktop full knowledge of your workspace in one command:
See CLI and MCP.

Any endpoint

For endpoints without a dedicated command, or when you want the raw response:

Common commands

Configuration

Settings live in ~/.config/mihu/config.json, credentials in ~/.config/mihu/credentials.json (mode 0600). On Windows both are under %AppData%\mihu.
Environment variables override everything: MIHU_API_TOKEN, MIHU_TENANT, MIHU_BASE_URL, MIHU_PROFILE, MIHU_CONFIG_DIR.

Updates

The CLI checks for a new version once a day and prints a one-line hint. Update with:

Uninstall

Next steps

CLI and MCP

Connect Claude Code, Cursor, VS Code and Windsurf

API Reference

Every endpoint the CLI wraps