> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# What Nika sees on your machine

> Two offline commands map your environment: what the binary contains, which agents, local servers and keys it can reach, and the exact fix for every gap.

Nika never asks you to configure blind. Two commands read your machine
offline, by presence only, and hand you the next step: `nika welcome` is the
short mirror, `nika doctor` the full diagnosis with a fix line for each gap.

## The mirror

```bash theme={"system"}
nika welcome
```

Captured from `nika 0.124.0`, installed where the install script puts it,
in an empty folder `~/demo` on a machine with no keys, no configuration and
no editor wired.

```text theme={"system"}
Say it once. Keep it as a file.

Nika runs a plan from a file, with a model you pick.
this hardware · 18 GB · Gear One standard (7.4 GB)

▸ Nika Gear One          open weights · no API key · 7.4 GB to pull

Next:
  nika compile hello hello.nika

🦋 nika 0.124.0 — Intent as Code. The workflow language for AI.
   one file · 4 verbs · one binary · audited BEFORE it runs
   every run records a tamper-evident, hash-chained trace

this machine
  editors    cursor ✗ · windsurf ✗ · claude ✗ · zed ✗ · hermes ✗ · vscode ✗
             6 unwired · one command each → nika wire cursor
  local      5 keyless engines supported · none probed → nika doctor --ping
  state      installed · no inference path — proof → nika try 01-hello
  workspace  ~/demo · git ✗ · no workflows yet · agents not briefed → nika init

this binary
  v0.124.0 (866ed914b) · installer: install.sh · ~/.nika/bin/nika
  4 verbs · 30 builtins · 17 providers · 63 examples · 22 templates
  17 wired in this build (5 local · 12 cloud · plus mock)

a whole workflow is one file
  nika: hello
  model: mock/echo
  tasks:
    greet:
      infer: { prompt: "say hello to the operator", max_tokens: 50 }

learn: nika.sh · docs: docs.nika.sh · ⭐ github.com/supernovae-st/nika
```

Read it from the top:

* **The recommendation.** The first lines name one way to a real answer for
  this machine. **Nika Gear One** is an open-weights local model sized to your
  memory that `nika model pull` downloads and that needs no API key: here a
  7.4 GB Gemma 3 12B file for an 18 GB machine. Local inference is unpriced,
  not free: it runs on your hardware. Other rows appear when Nika detects a
  signed-in agent app or a provider key. A key's row reads
  `OPENAI_API_KEY is set · not checked until the first call`: nothing here
  calls the provider, so a revoked key only shows on that first call. See
  [Local models](https://docs.nika.sh/guides/local-models.md#gear-one-the-pick-nika-welcome-proposes)
  for the sizes, and the one limit of serving them.
* **`Next:`** is the line to type now: `nika compile hello hello.nika`
  writes a starter file offline, without any key or model call.
* **`this machine`** names each gap and the command that closes it, never a
  vendor to buy from.
* **`this binary`** opens with the binary that is running: its version and
  commit, the installer it came from and its path. When another `nika` on your
  `PATH` differs from it, a second line says so and sends you to
  `nika doctor`. The counts below it are derived from the embedded language
  pack, never typed by hand. Its providers are the ones this build can drive:
  5 local servers and 12 cloud APIs,
  without `mock`. The specification names 18
  providers, counting `mock`, the rehearsal provider that makes no model
  call. `nika catalog` lists 39 entries and marks the ones
  this build cannot drive as catalog only; `nika check` refuses those.
* **The five-line workflow is real**: an engine test pins that it checks
  clean. It appears only while your workspace has no workflow.

`nika welcome --json` emits the same mirror for programs (`welcome_version: 1`),
and `--ascii` swaps every glyph for plain characters. Nika has no hosted
service and none is planned: every path the mirror names runs on your machine
or with a provider key you choose.

## The diagnosis

```bash theme={"system"}
nika doctor
```

Three rules shape the report:

* **Presence, never values.** A key is reported set or unset; its value is
  never read into a variable, so it cannot reach your terminal, a log or a
  trace.
* **Offline by default.** The base report touches nothing on the network.
  `--ping` (opt-in) probes the local servers you can configure: a connect to
  each loopback port, then a bounded `GET` of its model list. It runs no
  inference, downloads nothing and never contacts a vendor endpoint.
* **Diagnose only.** Doctor prints fixes and never runs them. `nika wire` and
  `nika key init` are the explicit commands that change something.

## A fresh machine, honestly

Captured from `nika 0.124.0` without a terminal, on a fresh `HOME` that holds
only the binary, with no agent app installed: the whole report, with the
binary's path shortened to `~/.nika/bin/nika`.

```text theme={"system"}
✔ 14 ok · 29 warn · 0 fail
✔ binary     v0.124.0 · self-contained (spec v1 embedded)
✔ running    ~/.nika/bin/nika · nika 0.124.0 (866ed914b) · installer: install.sh
✔ path       this binary is the first `nika` on PATH
✔ lsp        available via `nika lsp` (editor language server)
✔ traces     keep 10 per workflow · max age 30d · budget 256MB (NIKA_TRACE_KEEP · NIKA_TRACE_MAX_AGE_DAYS · NIKA_TRACE_BUDGET_MB)
✔ mcp        available via `nika mcp` (9 read-only tools · nika_check through nika_tools)
✔ access     --access classes: local · mock · harness · oauth · api · harness seats: claude-code · codex · copilot · gemini-cli · grok-build · kimi-code · opencode · qwen-code (ACP wrapper ids are not pins)
✔ sandbox    seatbelt · exec and external MCP spawns confined to the declared boundary
⚠ run-key    none · runs stay unsigned · the keychain is not opened without a terminal
  fix: nika key init
✔ sidecar    local inference built in — `nika model serve --model <path.gguf>` (loopback · OpenAI-compatible)
⚠ models     none pulled yet — the sidecar has nothing to serve
  fix: nika model pull unsloth/gemma-3-12b-it-GGUF:Q4_K_M
✔ registry   client matrix · 31 declared · 21 wireable · 6 probed · 15 declared-not-probed (codex · grok-build · claude-desktop · cline · continue · opencode · gemini-cli · antigravity · qwen-code · kimi-code · kiro · copilot-cli · amp · lmstudio · junie)
✔ local      5 providers (ollama · lmstudio · llamacpp · localai · vllm) — no key · needs a running server
  fix: nika doctor --ping   # probe local ports and model lists (offline otherwise)
✔ image      mock ready · local backend unset · NIKA_IMAGE_LOCAL_URL (engine fallback http://localhost:8080 · unprobed) · no cloud image key set
✔ tts        mock ready · local backend unset · NIKA_TTS_LOCAL_URL (engine fallback http://localhost:8080 · unprobed) · no cloud speech key set
✔ pricing    728 price rules · 11 providers priced · snapshot 2026-10-12 · 15 days old · abd9babb167a88e4 · list rates (public catalog)
⚠ runtime    gemini-cli — Gemini CLI · not installed · `--access gemini-cli`
  fix: install Gemini CLI itself · then `--access gemini-cli`
⚠ runtime    qwen-code — Qwen Code · not installed · `--access qwen-code`
  fix: install Qwen Code itself · then `--access qwen-code`
⚠ runtime    kimi-code — Kimi Code · not installed · `--access kimi-code`
  fix: install Kimi Code itself · then `--access kimi-code`
⚠ runtime    opencode — OpenCode · not installed · `--access opencode`
  fix: install OpenCode itself · then `--access opencode`
⚠ runtime    codex — Codex · not installed · `--access codex`
  fix: install Codex itself · then `--access codex`
⚠ runtime    copilot — GitHub Copilot CLI · not installed · `--access copilot`
  fix: install GitHub Copilot CLI itself · then `--access copilot`
⚠ runtime    grok-build — Grok Build · not installed · `--access grok-build`
  fix: install Grok Build itself · then `--access grok-build`
⚠ runtime    claude-code — Claude Code · not installed · `--access claude-code`
  fix: install Claude Code itself · then `--access claude-code`
· advisory   a healthy machine's notes — 6 agents unwired · 12 providers unconfigured · config defaults · nika doctor --verbose unfolds each
```

Warnings are not failures: with no workflow in hand, doctor cannot know which
provider, agent app or editor you need, so it lists every path you could
take. `nika doctor --verbose` unfolds the `advisory` line with a fix for each
note.

| Row | What it tells you |
| - | - |
| `binary` | The engine is self-contained: spec, schema, examples and templates are embedded. |
| `running` · `path` | Which `nika` is running: its resolved path, version, commit and installer (`install.sh`, `homebrew`, `npm-global`, `npm-payload`, `cargo`, `nix`, `release-dir`, `source-build`, or `unknown`), and what typing `nika` runs. Every other `nika` on `PATH` gets a row with the version it reports, and a warning with a repair hint when it is another build; a removal is suggested only for a known install layout. Each copy is asked `--version` under a two-second deadline, from `/` and with no credential in its environment: one that hangs reads unknown, one that fails warns, neither is fatal. `--json` adds `running`, `others[]` and `others_truncated`. |
| `access` | The access classes `--access` accepts, and the agent apps (harness seats) this build can drive. |
| `sandbox` | The sandbox this host has (Seatbelt on macOS, bubblewrap on Linux). A `permits:` file with `exec:` does not start on a host that cannot confine it (`NIKA-1710`). |
| `run-key` | Whether runs will be signed. Captured without a terminal, as above, it says `the keychain is not opened without a terminal`; in a macOS terminal it says `the keychain is not opened by this ad-hoc build`, even for the signed release: 0.124.0 never opens the keychain on macOS. `NIKA_KEYCHAIN=off nika key init` mints the key every process reads ([Seal your runs](https://docs.nika.sh/getting-started/installation.md#seal-your-runs)). |
| `sidecar` · `models` | Nika's built-in local inference, and whether a model is pulled for it. |
| `traces` | Run-record retention under `.nika/traces/`: the last N per workflow, an age cap, a size budget, each with its environment override. |
| `registry` | The agent clients the binary knows, how many `nika wire` can write, how many this machine was probed for. |
| `local` | The local servers that need no key, only a running process. |
| `image` · `tts` | The media backends. `mock` always works, so media workflows can be tested without keys. |
| `pricing` | The embedded price snapshot (rules, providers, date, digest): list rates, read with no network call. |
| `runtime` | One row per agent app: installed or not, signed in or not, and the `--access` seat that uses it. |
| `advisory` | Folded notes: unwired agents, unset keys (by presence), configuration defaults. |

## Probe the local servers

The `local` row says the providers need a running server; `--ping` checks
whether one is there. Each probe connects to the default loopback port (300 ms
cap), then asks the server for its model list with one bounded `GET` of
`/v1/models`. Here Ollama is running with no model pulled:

```text theme={"system"}
$ nika doctor --ping
✔ ping       ollama — listening on 127.0.0.1:11434 (0ms)
⚠ ping       lmstudio — nothing listening on 127.0.0.1:1234
⚠ ping       llamacpp — nothing listening on 127.0.0.1:8080
⚠ ping       localai — nothing listening on 127.0.0.1:8080
⚠ ping       vllm — nothing listening on 127.0.0.1:8000
⚠ models     ollama — compatible model list · no model advertised
…
```

An open port is not taken for an engine on its own: a server that answers a
web page instead of an API reads
`accepts connections … but answers a page, not an API … — not a model server`,
a `401` or `403` reads `key-protected`, and a `404` reads
`no /v1/models route` (the `nika model serve` sidecar has none).

One reachable server with a model is a fully local inference path: no key, no
cloud, no account. [Local models](https://docs.nika.sh/guides/local-models.md) sets one up.

## For scripts and agents

Every fact above ships as JSON; agents and CI branch on `summary.fail` instead
of parsing glyphs:

```bash theme={"system"}
nika doctor --json
```

## The fixes that change something

Doctor never edits a configuration. When a row says `fix: nika wire cursor`,
that command, and only that command, writes the MCP wiring, idempotently,
keeping whatever other servers the file already lists:

```bash theme={"system"}
nika wire detected --dry-run   # preview the clients this machine shows
nika wire detected             # wire them
nika wire cursor               # or one client by name
```

## Next

> [card] [First workflow](https://docs.nika.sh/getting-started/first-workflow.md)
>
> Your first run needs none of the keys above: `mock/echo` needs no key and makes no model call.

> [card] [Local models](https://docs.nika.sh/guides/local-models.md)
>
> Turn the `local` or `sidecar` row into a working, keyless inference path.

> [card] [Editors](https://docs.nika.sh/getting-started/editors.md)
>
> Schema validation and the `nika lsp` language server.

> [card] [Agents](https://docs.nika.sh/getting-started/agents.md)
>
> `nika init` briefs your agents; `nika wire` gives them the oracle.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.