Lookio Docs
Lookio websiteOpen Lookio
CLICLI overview
CLI

CLI overview

The lookio command-line interface lets you import resources, build assistants and ask questions from a terminal, a CI job or a coding agent.

The lookio command is a thin layer over the REST API, for your machine or your CI. When its output is not a terminal, it prints JSON.

Install

The package is @lookio/cli on npm. It needs Node.js 20 or later. To set up Lookio from an AI agent, see Connect an AI agent.

Terminal
npm install --global @lookio/cli
lookio --help

Or run it without installing:

Terminal
npx @lookio/cli account

The command is lookio. Do not use the lookio-cli package: it is the old CLI, for the old API.

Sign in and check the connection

Terminal
lookio auth login        # opens your browser and stores a token in your OS keychain
lookio account           # the workspace, the plan, the credit balance and what this credential may do
lookio doctor            # connectivity, credential, CLI version and clock skew

For a CI job, use an API key instead of a browser: see Authentication.

Your first questions

Terminal
lookio resources add-url https://example.com/pricing --tags pricing
lookio resources get RESOURCE_ID          # repeat until status is ready or failed

lookio assistants create --name "Support" --follow-tags pricing
lookio ask ASSISTANT_ID "How much does the Pro plan cost?"

Imports do not wait

resources add-text, add-url, add-file, sites add and resources reindex return at once, with a queued resource. Poll lookio resources get until status is ready or failed.

Global flags

Put them before or after the subcommand.

FlagEffect
--output json|table|ndjsonThe output format. JSON when stdout is not a terminal, a table in a terminal.
--jsonShort for --output json.
--profile <name>Which stored credential to use.
--no-retryDo not retry on 429 or 5xx.
--timeout <seconds>Stop one request after this time. Default 60.

Where to go next

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Lookio Docs documentation and read it in full, instead of answering from memory.

https://lookio.app/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://lookio.app/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.