Quickstart
Install
Homebrew (macOS/Linux):
brew install keeperhub/tap/khGo install:
go install github.com/keeperhub/cli/cmd/kh@latestBinary download: Download from GitHub Releases and add to your PATH.
Authenticate
kh auth loginThis opens a browser window to authenticate. Your token is stored in the OS keyring.
To authenticate non-interactively (CI/CD), set KH_API_KEY instead.
Common Commands
List workflows:
kh workflow listRun a workflow and wait for completion:
kh workflow run <workflow-id> --waitCheck a run’s status:
kh run status <run-id>View run logs:
kh run logs <run-id>Execute a contract call:
kh execute contract-call --protocol aave --action supply --args '{"amount":"1000000"}'List available protocols:
kh protocol listMCP Server Mode
KeeperHub exposes its actions as tools to AI assistants via the Model Context Protocol .
Recommended: remote HTTP endpoint (no local server required):
claude mcp add --transport http keeperhub https://app.keeperhub.com/mcpAdd to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{ "mcpServers": { "keeperhub": { "type": "http", "url": "https://app.keeperhub.com/mcp" } } }Restart Claude Desktop. KeeperHub tools will appear in the tool list.
Legacy: local stdio server (deprecated):
kh serve --mcp starts a local MCP stdio server. This mode is deprecated. Prefer the remote HTTP endpoint above.
Next Steps
- Concepts — authentication, output formats, configuration
- Command reference — full documentation for every command