Install KeyAPI CLI
Use the README for full installation details. The examples below keep the practical workflow and copyable prompts for AI assistants: discover endpoints, inspect schemas, dry-run requests, then execute API calls.
Install from GitHub Releases
Ask your AI to download the right binary for your operating system, make `keyapi` available on PATH, and verify the installation.
Help me install KeyAPI CLI from https://github.com/EchoSell/keyapi-cli/releases. Download the correct binary for my current operating system, configure it so the keyapi command is available from the terminal, and verify the installation by running keyapi --help and keyapi --version.
Build from source
If you prefer source builds, ask your AI to check Go, clone the repository, build the executable, and add it to PATH.
Help me install KeyAPI CLI from source: https://github.com/EchoSell/keyapi-cli.git. Check that Go 1.22 or later is available, clone the repository, build the executable for my current operating system, add the keyapi command to PATH, and verify the installation by running keyapi --help and keyapi --version.
Quick start workflow
Configure your token, show the current configuration, list platforms, inspect endpoints, check schema, dry-run, then execute.
keyapi set token sk_xxx keyapi show keyapi spec list-platforms keyapi spec list-endpoints google keyapi schema google/search keyapi call "/v1/google/search?q=openai&gl=us&hl=en" --dry-run keyapi call "/v1/google/search?q=openai&gl=us&hl=en"
Common KeyAPI CLI commands
Understand the CLI
keyapi --help
Show command purposes, arguments, output structure, common response codes, and examples.
Configure your KeyAPI token
keyapi set token sk_xxx
Save your KeyAPI token locally so later requests can reuse it.
List supported platforms
keyapi spec list-platforms
Return available platforms such as Google, TikTok, Instagram, YouTube, and more.
List platform endpoints
keyapi spec list-endpoints google
Inspect endpoint summaries under one platform before choosing the right API.
Inspect endpoint details
keyapi schema google/search
Check method, path, description, parameters, and body_fields before calling.
Preview and execute requests
keyapi call "..." --dry-run
Use `--dry-run` to inspect the final request, then execute the API call after confirming it.