Skip to content

Releases: EchoSell/keyapi-cli

Release list

KeyAPI CLI v1.0.0

Choose a tag to compare

@xyzzero xyzzero released this 13 Jul 03:41

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-run to 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 as code, message, and data.
  • Return non-zero exit codes for HTTP non-2xx responses, making the CLI easier to use in scripts and CI.
  • Provide more detailed --help output 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 --version

Available Assets

  • keyapi_1.0.0_windows_amd64.exe
  • keyapi_1.0.0_darwin_amd64
  • keyapi_1.0.0_darwin_arm64
  • keyapi_1.0.0_linux_amd64
  • keyapi_1.0.0_linux_arm64
  • keyapi_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.txt

Example on Windows PowerShell:

Get-FileHash .\keyapi_1.0.0_windows_amd64.exe -Algorithm SHA256

Compare the output with the matching line in keyapi_1.0.0_checksums.txt.