Insomnia Inso CLI
$ inso Official Low RiskInsomnia Inso CLI (inso) brings Kong Insomnia workspaces into headless CI/CD pipelines (inso run collection, inso run test, inso lint spec, inso export spec). Supports --ci non-interactive mode, --env targeting, --workingDir, --request-timeout, and INSOMNIA_ENCRYPTION_KEY.
brew install inso inso validates OpenAPI specs and runs Insomnia collections offline against local exports or Git-synced .insomnia folders without cloud round-trips.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Dedicated --ci flag disables all prompts, and --env / --workingDir / --reporter support CI automation, though spec/collection output is mostly text/JUnit/TAP rather than universal --json.
- Dedicated
--ciflag disables interactive selection prompts - Supports
--reporter(spec,json,junit, etc. on test runner)
Read-only lint spec and export spec are safe, and INSOMNIA_ENCRYPTION_KEY avoids CLI secret leaks.
- Supports
INSOMNIA_ENCRYPTION_KEYenv var for encrypted workspaces - Explicit
--envprevents running against unintended environments
Installable via Homebrew (brew install inso), npm (insomnia-inso), and binary releases across macOS, Linux, and Windows.
- Available on Homebrew, npm, and official releases
Combines OpenAPI Spectral linting, spec export, unit test suites, and collection execution in one tool.
- Covers
run collection,run test,lint spec, andexport spec
Official Kong repository (Kong/insomnia) under Apache-2.0 license.
- First-party Kong Insomnia tool under Apache-2.0
Well-documented at docs.insomnia.rest with clear CI examples and --printOptions config debugging.
- Official Kong docs and built-in
--printOptionsdebugger
Security, Auth & Guardrails
Reads local .insomnia / exported .db.json files via --workingDir and decrypts protected secrets using INSOMNIA_ENCRYPTION_KEY.
Apache-2.0 open-source CLI; free for local and CI use (Insomnia team sync plans are optional).
# Insomnia Inso CLI (inso) Agent Rules - Always append `--ci` so `inso` never opens interactive fuzzy-selection prompts. - Pass `--env <env>` and `--workingDir <dir>` explicitly. - Inject `INSOMNIA_ENCRYPTION_KEY` via environment variables rather than `--encryption-key` on the command line.
Agent-Ready Command Recipes
Safe Read-Only Queries
inso lint spec openapi.yaml --ci
Validates an OpenAPI spec with Spectral rules non-interactively and exits non-zero on errors.
inso export spec <spec-id> --workingDir ./.insomnia --ci
Extracts an OpenAPI document from an Insomnia workspace directory read-only.
Controlled Writes & Previews
inso run collection <collection-id> --env Staging --workingDir ./.insomnia --ci
Executes saved requests in <collection-id> using the Staging environment without prompts.
Strengths for Agents
- +
--cimode reliably eliminates interactive prompts when IDs and--envare supplied. - + Built-in OpenAPI linting (
inso lint spec) pairs naturally with API test execution.
Caveats & Pitfalls
- ! Omitting
--cior collection IDs triggers interactive prompts that hang headless agents. - ! Requires an Insomnia
.insomniadirectory or exported workspace file forrun collection/run test.