harmony CLI
The CLI is a thin wrapper over the same HTTP API the dashboard uses. Everything you can do in the UI is reachable from the terminal, plus a few commands the UI doesn't expose (eval batch, trace export).
Install
# Once published
npm install -g @groupany/harmony
# Or one-shot via npx
npx @groupany/harmony --help
Auth
# Interactive: opens browser, OAuth flow, stores token in ~/.config/harmony/auth.json
harmony login
# Or non-interactive with a pre-minted key
HARMONY_API_KEY=hk_live_… harmony me
The CLI honours HARMONY_HOST for pointing at self-hosted instances. Default is https://platform.groupany.ai.
Command reference
harmony me Show the current user + workspaces.
harmony login Sign in via browser.
harmony logout Clear local token.
harmony workspaces list List workspaces.
harmony workspaces create <name> Create a new workspace.
harmony workspaces use <slug> Set the default workspace for subsequent commands.
harmony keys list List API keys in the current workspace.
harmony keys create <name> Mint a new key. Prints once, never again.
harmony keys revoke <id> Revoke a key.
harmony skills list List skills in the registry.
harmony skills show <name> Print a skill's frontmatter + body.
harmony skills add <repo> Register a Gitea/GitHub repo as a skill source.
harmony tools list List MCP servers registered in the workspace.
harmony tools install <mcp-url> Register a new MCP server.
harmony agents list List agent profiles.
harmony agents register <file> Register an agent profile from YAML.
harmony sessions list [--status=…] Recent sessions.
harmony sessions show <id> Session metadata + summary.
harmony trace <session-id> [--format=jsonl|tree]
Render or export a session trace.
harmony eval run [--since=24h] Compare agent output to PR/feedback signal.
harmony eval show <run-id> Show eval results.
harmony serve [--port=4000] Run a local Harmony instance (self-hosted).
harmony version
harmony help [<command>]
Output
Defaults to TTY-friendly tables. Pass --json for machine output:
harmony sessions list --json | jq '.[] | select(.cost_usd > 0.10)'
Errors go to stderr with non-zero exit. Wrap in scripts confidently.
Config
~/.config/harmony/config.json:
{
"host": "https://platform.groupany.ai",
"default_workspace": "acme-research",
"json_pretty": true
}
Env vars override file config; file config overrides defaults.
The CLI is drafted. The command shape above is the v1 surface — additions land alongside their underlying API endpoints.