Skip to content

CLI Reference

The lynox CLI is the installer + server entrypoint. All interactive features live in the Web UI. All scripted/agent workflows go through the HTTP API (lynox --http-api).

Pre-HN-launch we trimmed the power-user CLI modes (single-task invocation, file-watch, manifest runner, background-task creator, output redirect). They were undocumented in the user-facing surface, had no external callers, and were not exercised by CI. We will revisit them once OSS-launch traffic shape tells us which (if any) are missed.

Terminal window
npx @lynox-ai/core

Interactive Docker setup — creates docker-compose.yml, .env, SearXNG config, starts the containers, and opens the browser. Re-run anytime via lynox init or lynox --init.

Terminal window
lynox --http-api

Starts the Engine HTTP API on LYNOX_HTTP_PORT (default 3100). This is the production entrypoint used by the bundled Docker image (entrypoint-webui.sh exec’s node dist/index.js --http-api). Drive lynox programmatically via the REST/SSE endpoints exposed by this server.

FlagDescription
--http-apiStart Engine HTTP API server (Docker entrypoint)
--init / initRe-run the Docker installer
--project <dir>Set project directory (loads .lynox/config.json if present)
--data-dir <dir>Override data directory (default: ~/.lynox)
--version / -vShow version (no API key required)
--help / -hShow help (no API key required)
VariableDescription
ANTHROPIC_API_KEYAnthropic API key (required for the anthropic provider)
ANTHROPIC_BASE_URLCustom API endpoint (for proxies)
LYNOX_LLM_PROVIDERLLM provider: anthropic | vertex | custom | openai
LYNOX_VAULT_KEYAES-256 key for the secrets vault (critical — cannot be recovered if lost)
LYNOX_DATA_DIROverride data directory (same as --data-dir)
LYNOX_HTTP_PORTHTTP API port (default: 3100)
LYNOX_HTTP_SECRETHTTP API Bearer token (enables network binding)
LYNOX_WEBUI_URLWeb UI URL to open (default: http://localhost:5173)
GCP_PROJECT_IDGoogle Cloud project (for provider: vertex)
CLOUD_ML_REGIONVertex AI region (e.g. europe-west4, us-east5)
SEARXNG_URLSearXNG instance for web search (Docker: http://searxng:8080). Without it, web_research falls back to a best-effort DuckDuckGo HTML scrape.
CodeMeaning
0Success
1Error (API failure, invalid config, etc.)