KeyAPI CLI v1.0.0
KeyAPI CLI v1.0.0 is the first stable release of the KeyAPI command line client. It provides a lightweight executable for configuring KeyAPI authentication, discovering supported API platforms, inspecting endpoint schemas, and calling KeyAPI endpoints without writing request code.
Highlights
- Configure local KeyAPI authentication with
keyapi set token <value>. - List supported platforms with
keyapi spec list-platforms. - List endpoint summaries with
keyapi spec list-endpoints <platform...|all>. - Inspect endpoint methods, paths, descriptions, parameters, and request body fields with
keyapi schema <endpoint-or-path>. - Execute API requests with
keyapi call <endpoint-or-path>. - Use inline query strings for GET requests, for example
keyapi call "/v1/google/search?q=openai&gl=us". - Use
--dry-runto inspect a request before sending it. - Use
--output "path"to save large API responses to files. - Preserve the original KeyAPI response body for
keyapi call, including fields such ascode,message, anddata. - Return non-zero exit codes for HTTP non-2xx responses, making the CLI easier to use in scripts and CI.
- Provide more detailed
--helpoutput for humans, scripts, and agents.
Installation
Download the binary for your operating system from the release assets, rename or place it so it can be called as keyapi, and put it on PATH.
Verify the installation:
keyapi --help
keyapi --versionAvailable Assets
keyapi_1.0.0_windows_amd64.exekeyapi_1.0.0_darwin_amd64keyapi_1.0.0_darwin_arm64keyapi_1.0.0_linux_amd64keyapi_1.0.0_linux_arm64keyapi_1.0.0_checksums.txt
Quick Start
keyapi set token sk_xxx
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"Checksums
Use keyapi_1.0.0_checksums.txt to verify downloaded binaries.
Example on Linux or macOS:
sha256sum -c keyapi_1.0.0_checksums.txtExample on Windows PowerShell:
Get-FileHash .\keyapi_1.0.0_windows_amd64.exe -Algorithm SHA256Compare the output with the matching line in keyapi_1.0.0_checksums.txt.