Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Restish

$ restish Community Med Risk
rest-sh · Browser & Web · MIT · macos / linux / windows

Restish (rest-sh/restish) turns any OpenAPI 3 / Swagger API into a typed CLI with auto-discovered subcommands, automatic pagination, OAuth2 flows, and response formatting (-o json, -o yaml, -o ndjson, -o toon, -f <filter>). Built for both interactive terminals and token-efficient AI agents.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install restish
CLI vs MCP Decision CLI Preferred vs MCP

restish auto-discovers OpenAPI endpoints on demand and supports -f 'body...' filtering plus -o toon compact output, avoiding loading large OpenAPI MCP tool definitions.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

Provides -o json, -o ndjson, -o toon, inline -f body filtering, and OpenAPI --help discovery.

  • Supports -o json, -o toon, and -f <filter> field projection
  • Auto-generates --help docs from OpenAPI schemas
Trust & Safety 20 / 25

Profiles keep base URLs and auth scoped per API, though remote POST/DELETE operations lack a global --dry-run flag.

  • Scoped per-API profiles in apis.json
  • Supports --rsh-no-browser for headless auth flows
Setup & Portability 15 / 15

Single Go binary via brew install restish, go install, and cross-platform GitHub releases.

  • Static Go binary on macOS, Linux, and Windows
Utility & Efficiency 14 / 15

Turns any OpenAPI service into a rich CLI on the fly with pagination, auth, and compact formatting.

  • Instant OpenAPI discovery plus ad-hoc HTTP shorthand
Maintenance & Lineage 8 / 10

Active MIT open-source project (rest-sh/restish).

  • MIT-licensed rest-sh/restish repository
Docs & Verifiability 8 / 10

Clear documentation at rest.sh covering profiles, filters, -o toon, and OAuth2.

  • Official docs at rest.sh and self-documenting OpenAPI --help

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key OAuth Browser Config File
Credential Storage

Stores API profiles, bearer keys, and OAuth2 tokens under ~/.config/restish/ (apis.json), supporting --rsh-no-browser for headless OAuth.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source Go CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Restish (restish) Agent Rules
- Always pass `-o json` or `-o toon` with `-f <filter>` to keep response payloads concise.
- Run `restish <api> --help` to verify OpenAPI-discovered operation names and HTTP methods before calling write operations.
- Pass `--rsh-no-browser` if running in a headless environment.

Agent-Ready Command Recipes

Safe Read-Only Queries

Query a REST endpoint with JSON output and field filter
restish api.rest.sh/images -o json -f 'body.#.name'

Fetches an endpoint as JSON and filters the payload inline with -f to save tokens.

Use compact TOON output on a registered API
restish myapi list-items -o toon

Calls an OpenAPI-discovered operation and emits token-efficient -o toon output.

Controlled Writes & Previews

Send a JSON body POST via shorthand syntax
restish myapi create-item name:demo,enabled:true -o json

Posts structured shorthand key-value fields to an OpenAPI operation and returns JSON.

Strengths for Agents

  • + Supports -o json, -o toon, and inline -f filtering to minimize agent context bloat.
  • + OpenAPI auto-discovery turns arbitrary REST APIs into self-describing subcommands.

Caveats & Pitfalls

  • ! No global --dry-run flag before executing mutating POST/PUT/DELETE operations.
  • ! OAuth2 Authorization Code login requires interactive browser or manual code entry unless using client credentials.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI