Documentation
Inkspect CLI
Get cited Cloud context, review local changes and connect your coding agent from Windows, macOS or Linux.
Explore the CLIUpdated 19 November 2026Inkspect CLI v0.1.2 is available for macOS, Linux and Windows on x64 and ARM64. Install the native executable, then run inkspect login.
Install a native binary
The installer downloads a native executable and verifies its SHA-256 checksum. You do not need Go, Node.js, Python or the review engine. Local review needs Git. Targets: macOS, Linux and Windows on Intel/AMD 64-bit and ARM64.
macOS and Linux install into ~/.local/bin by default. If that directory is not in PATH, the installer tells you to add it. Windows installs into your local application-data folder and adds its bin directory to your user PATH; reopen your terminal.
curl -fsSL https://inkspect.si/cli/install.sh | shWindows PowerShell
Run this in PowerShell. Installation does not require administrator rights.
irm https://inkspect.si/cli/install.ps1 | iexWindows Command Prompt
The cmd command invokes the same PowerShell installer.
powershell -NoProfile -Command "irm https://inkspect.si/cli/install.ps1 | iex"Connect your Cloud workspace
Run inkspect login to open the Cloud approval page in your browser. Sign in, compare the code with your terminal, choose a workspace and allow CLI access. Only workspace owners and admins can connect in this release.
On a remote computer, use inkspect login --no-browser and open the displayed link on another device. Codes expire after 10 minutes and can only be exchanged once. You can decline or cancel without replacing saved credentials. Access expires after 90 days and can be revoked in Cloud → API keys.
inkspect whoami shows your current account, workspace, role and access expiry. Add --format json for scripts. It validates current Cloud access.
For automation, create an Inkspect CLI key in Cloud → API keys, then use INKSPECT_API_KEY or pipe the key from your secret manager to inkspect login --token-stdin. Unset INKSPECT_API_KEY before browser login because it overrides saved credentials. Existing AI provider keys cannot retrieve source.
No init is required. ask uses your project mapping or detects an accessible GitHub origin, otherwise searches accessible repositories in the signed-in workspace. init saves an automatically detected mapping; init --repo owner/name pins a repository. Outside an accessible checkout, init verifies the workspace without writing a file. Existing configuration is never overwritten. logout removes saved credentials; revoke the key in Cloud to disable all uses.
inkspect login
inkspect whoami
inkspect statusAsk for source context
ask without a question opens an interactive terminal session. Follow-ups carry the previous questions forward; /clear resets the session and /exit ends it. A question argument performs one request and exits. A Thinking... animation appears while a submitted question is running in an interactive terminal. Pipe, JSON and MCP output stays clean; set INKSPECT_NO_PROGRESS=1 to disable progress.
Cloud embeds your question, searches the existing code index, and reranks matching snippets. Repository code is embedded during indexing, not again for every question. The output includes source code, repository, file, lines, revision, source references and incomplete coverage. It does not generate an additional AI answer. --explain adds actual retrieval strategy and relevance scores, not a claim that all dependencies were found.
Use --repo owner/name for a specific repository or --all to search across the workspace even inside a project. General search combines per-repository rerank scores and reports missing indexes, failures and time limits; it does not search other workspaces. Each indexed repository uses a query embedding and rerank when candidates exist. Retrieval uses Cloud credits. --budget is an approximate source-token budget based on UTF-8 bytes; response metadata is additional. The CLI does not upload local source during ask.
inkspect ask
inkspect ask "Payment provider interfaces, checkout, webhooks and tests" --explain
inkspect ask "Authentication flow" --format json --budget 12000Use pipes and automation
Use - to read the question from standard input. Noninteractive calls never stop to ask for missing information. stdout contains the result; diagnostics go to stderr. Failures return a nonzero exit code.
Pipe the context into your coding assistant or call the CLI from an existing agent session. Follow your agent’s execution and approval settings.
printf '%s\n' "Payment provider integration" | inkspect ask - --format json
inkspect ask "Payment provider integration" | codex exec "Use this context to plan adding a provider"Start and follow Cloud indexing
Run inkspect index inside a connected checkout to detect its repository, or choose one with --repo owner/name. Indexing runs in Cloud; no local source is uploaded and no engine is installed. Existing access and repository-size limits apply. Indexing itself does not consume AI Credits.
The CLI follows the accepted operation and reports stages, files, chunks, embedded chunks and reused chunks. It joins queued/running work and reports an up-to-date index without starting another job.
Use index status to read the latest job, --no-wait to return immediately, or --timeout to bound waiting (default 1800 seconds). Ctrl+C stops waiting without cancelling the Cloud job. After an uncertain response, check status before starting again. JSON mode returns one status object without animation.
inkspect index
inkspect index status
inkspect index --repo owner/repository --no-wait --format jsonVerify freshness before editing
Cloud indexes may describe another commit or omit uncommitted work. The CLI compares the local origin repository, HEAD and working-tree state with returned source revisions. It reports current, stale, local_changes or unknown. --require-current fails if freshness is not verified or coverage is incomplete.
Read the current local version of files before modifying them. Use targeted local discovery when context is missing. Empty results never prove that an implementation does not exist.
inkspect ask "Checkout flow" --require-current --format jsonExpand a source at the same revision
Pass a source ID from ask to retrieve surrounding lines. Signed references expire after one hour and remain bound to the workspace, repository and revision. Current authorization is checked again. Expansion is capped at 401 lines.
inkspect source <source-id> --around 40 --format jsonReview before opening a pull request
review local uploads the selected before/after source snapshot to Cloud. “Local” describes where the source comes from; inference is remote and consumes Cloud credits. The Cloud instance must have agent reviews enabled.
The default covers tracked staged and unstaged changes against HEAD. --staged uses only staged contents. --base main compares against the merge base with main. New files require --include-untracked. No fetch, commit, push or test execution occurs.
Sensitive paths, likely credentials, symlinks, binaries and oversized files are omitted. Base .inkspectignore rules apply, and your current ignore file may further restrict uploads. Invalid rules stop the review. Limits: 80 files, 64 KB per file version, 400 KB total source and 750 KB request.
--dry-run lists paths and omissions without credentials or network access. The review is tied to the submitted snapshot; later edits require a new review.
inkspect review local --dry-run
inkspect review local --staged --task "Add a payment provider"
inkspect review local --base main --include-untracked --no-waitStart and inspect PR reviews
review pr resolves the current open PR snapshot on the server and uses the existing Cloud review admission and credit policies. It does not publish comments.
review rerun preserves the previous commit and model, and fails if the PR has moved or exact settings cannot be retained. Exact BYOK reruns are not supported in this release. Repeating the same submission reuses its operation instead of starting duplicate work.
Use --no-wait to return an ID immediately, then status or show. The default wait is 900 seconds; --timeout accepts 1–3600 seconds. A timeout does not cancel the Cloud job.
inkspect review pr 123 --no-wait
inkspect review status <review-id>
inkspect review show <review-id> --format json
inkspect review rerun <review-id>Install the Codex skill
The CLI downloads a compatible, checksummed instruction-only skill. Project scope installs into .agents/skills/inkspect and appends a small managed section to AGENTS.md. Existing instructions stay intact.
Use --scope global for ~/.agents/skills/inkspect. Global installation does not edit global instructions. Update and uninstall refuse to overwrite user-edited skill content. Start a new agent session after installation.
The skill teaches context retrieval, freshness checks and authorized review use. It does not authorize automatic paid review loops, commits or deployment.
inkspect skill install --agent codex
inkspect skill list
inkspect skill updates
inkspect skill update
inkspect skill uninstallConnect over MCP
Register inkspect with arguments mcp serve in your agent’s MCP configuration. The stdio server exposes inkspect_context, inkspect_source and inkspect_status. It supports the 2025-11-25 protocol and emits no banners on stdout.
The MCP client must supply the API-key environment or use a saved CLI login. The context tool detects project scope or searches the current workspace. Pass repository to narrow it, or all: true to force workspace search. Review submission is intentionally a CLI operation in this release.
[mcp_servers.inkspect]
command = "inkspect"
args = ["mcp", "serve"]
env_vars = ["INKSPECT_API_KEY"]Keep the CLI and skill current
Normal terminal commands check for published updates at most once a day. Notices tell you which version is available and which command to run. Checks are bounded to two seconds and fail silently; pipes, JSON and MCP stay free of automatic update checks and notices. Set INKSPECT_NO_UPDATE_CHECK=1 to opt out.
inkspect skill updates refreshes availability; inkspect skill update installs the latest compatible skill without overwriting your edits. Skill versions can advance independently of the CLI. If a skill needs a newer CLI, the command tells you to update the client first.
inkspect update downloads the native release, verifies SHA-256 and replaces the executable. Updates are explicit, never automatic. Restart MCP sessions afterwards. On Windows a locked previous executable may remain beside the new one until all old processes exit. System-managed or unwritable installations should use their original installation method.
inkspect skill updates
inkspect skill update
inkspect updateDiagnose setup problems
Run doctor to check Cloud authentication, accessible repositories and local Git metadata. If context reports an unavailable index, run inkspect index --repo owner/name to start or follow indexing in Cloud.
A provider-purpose key is rejected: create a CLI-purpose key. A workspace mismatch means the project mapping and API key belong to different workspaces. A checksum failure stops installation; do not bypass it.
If a download fails, check your connection and the official installation address. A checksum mismatch stops installation; download again instead of bypassing verification.
Every line deserves a second look.
Explore the product