> ## 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.

# Run it with what you already have

> Run a task on an agent app you are signed into — Codex, Claude Code, Copilot, Grok Build, Gemini CLI and others — and know what permits: covers there.

> [!WARNING]
>
> Experimental. Engine 0.124.4 ships the adapters in the default CLI
> build (`default = ["access-harness"]` in
> [`nika-cli` at `v0.123.0`](https://github.com/supernovae-st/nika/blob/v0.123.0/crates/nika-cli/Cargo.toml#L72)).
> You still need the harness **installed and signed in**, and a `model:`
> that seat can serve. `nika doctor` listing a CLI is detection, not a
> completed generation. Retired ACP wrapper ids (`claude-agent-acp` ·
> `codex-acp`) are not seats and refuse with `NIKA-1802`.

`model:` picks the intelligence. **Access** picks the path the run
takes to reach it — an API key, a local server, the mock, or a harness
you already pay for. The same `infer:` / `agent:` task is admitted onto
that path with a witness. Unsatisfied pins refuse (`NIKA-1801` ·
`NIKA-1803`); they never silently fall back to a metered key.

## What you need

The harness, signed in the way IT expects. Nika never holds its
credential: a harness seat runs on the account signed into that
application, so check that provider's terms before running one on a shared
server. `nika doctor` prints one `runtime` row per seat (detected, signed in
or not) and the fix for each one that is not ready. The seats in
0.124.4:

| `--access` seat | The harness | Routed to it when nothing is pinned | `infer:` tasks |
| - | - | - | - |
| `codex` | Codex | `openai/…` models | yes |
| `claude-code` | Claude Code | `anthropic/…` models | yes |
| `copilot` | GitHub Copilot CLI | its own routing | yes |
| `grok-build` | Grok Build | `xai/…` models | yes |
| `gemini-cli` | Gemini CLI | `gemini/…` models | no: `agent:` tasks only |
| `kimi-code` | Kimi Code | `moonshot/…` models | no: `agent:` tasks only |
| `qwen-code` | Qwen Code | `qwen/…` models, which this build does not resolve | no: `agent:` tasks only |
| `opencode` | OpenCode | its own routing | no: `agent:` tasks only |

Every seat runs `agent:` tasks over the Agent Client Protocol. An `infer:`
task needs a one-shot, tool-free answer, which only the four seats marked
`yes` are admitted for. With `--access <seat>`, every model in the file
goes to that seat, and only the run proves the seat can serve it.

Classes also pin: `local` · `mock` · `harness` · `oauth` · `api`.

## Check, then run

```bash theme={"system"}
nika check flow.nika --access codex   # installed? signed in? fit for each task?
nika run flow.nika --access codex
```

`nika check --access` judges the same access plan the run uses, so a seat
that is missing, signed out or unfit for an `infer:` task is named before
anything runs. On every `agent:` task a seat will run, `nika check` also
prints a `[harness]` hint: what `permits:` does not cover on that seat
(`nika explain harness`).

Codex, Claude Code, OpenCode and GitHub Copilot CLI name themselves on
`initialize`, the first answer of an ACP session. A task on one of these
seats starts the adapter once and judges that answer before `session/new`:
the adapter's name, and its release against the seat's version pin. An
adapter that does not answer within 30 seconds, exits before answering,
answers as another program or sits outside its pin is unavailable
(`NIKA-1803`) and is not retried. `nika doctor` asks
`initialize` on its own to print the adapter's release, and the `ACCESS` row
of `nika check` reads only whether the application is installed and signed
in.

## What `permits:` covers on a harness seat

On a harness seat, an `agent:` task runs the application's **own** tools: its
file edits, its shell, its fetches. Nika does not execute them, so it cannot
judge each one the way it judges an `exec:` task or a `nika:*` builtin. It
holds the session with two levers.

**Before the prompt** (journaled as `permit_checked`, plane `agent`):

* The session works in the project the run was admitted for, never in the
  directory the Nika process runs from.
* Nika selects the harness's measured **asking** mode and reads it back from
  the harness's answer (Gemini CLI only acknowledges the switch), or refuses
  to start. It never selects a mode that approves actions on its own (an
  auto-reviewer, accept-edits, full access, bypass, yolo). A mode change the
  harness reports during the turn ends the session; Gemini CLI reports one only
  as message text, which Nika does not read.
* Nika offers the harness no file or terminal methods. A harness that calls
  one anyway gets an error, never a fake success, and the refusal is
  journaled.
* Nika asks the harness to report a turn it could not complete as a failure
  (the `sessionFailure` extension, which codex-acp and claude-agent-acp
  implement). A rejected model or an exhausted retry limit then fails the task
  with the harness's own error, instead of succeeding with that error as its
  answer: transient (`NIKA-1804`, so `retry:` may replay the task) when the
  harness offers a retry, an expired sign-in when it asks you to sign in
  again, a refusal (`NIKA-1805`) otherwise. A harness without that report
  still returns its error as text, and Nika does not read answer text to guess
  a failure.

**On every permission the harness asks** (journaled as `permit_checked`):

* Inside your `permits:` grants, the ask is allowed once, never "allow
  always".
* Outside them, the run pauses with the harness's question, followed by the
  command it names (unless its title shows it) and the reason it gives
  (`NIKA-1806`). The question is one line the harness cannot steer: control
  characters become spaces, invisible ones (direction overrides, zero-width
  characters) are removed, and a title or command over 2,000 bytes keeps its
  beginning and end around the number of bytes left out and their SHA-256.
  Answer with `nika run --resume <trace> --answer <task>=true` (or `false`).
  The harness is shut down at the pause; the resumed run starts the task
  again in a new session, and your answer decides its first ask outside the
  grants, once for the task: an attempt that `retry:` replays never reuses it,
  so an ask outside the grants there pauses again.
* Paths are judged in your project's terms (`./out/**` matches the absolute
  path the harness names) and where the operating system will land: each
  path is walked from the root, component by component, through every symlink
  (a dangling one included) and every `..`. `out/link/../notes.md` with
  `out/link` pointing outside the project is judged outside, beside the link's
  target. A path that cannot be resolved (a symlink loop, an unreadable
  directory) pauses for you.
* A command is matched against `permits.exec` by its program. A harness that
  asks with a shell string (Codex, Claude Code) or without any command line
  (Gemini CLI) is admitted only by `permits.exec: true`; otherwise the ask
  pauses for you.
* In `read-only`, Codex runs ordinary commands in its sandbox without asking,
  so a command it asks about asks to leave that sandbox, and Codex would run
  it with no sandbox at all. Such an ask always pauses for you, whatever
  `permits.exec` grants (`permits.exec: true` included), with the command and
  Codex's reason in the question.
* An ask for network access is never answered automatically, whatever
  `permits.exec` grants: a fetch, or a command the harness says needs the
  network (Codex: an http or https URL, a SOCKS target such as
  `socks5Tcp network access to <host>`, or a network permission). It pauses
  for you with the target in view.
* A command that asks the harness to widen its own sandbox (Codex
  `additionalPermissions`, Claude Code `dangerouslyDisableSandbox`) pauses for
  you: no grant covers it, `permits.exec: true` included.
* An MCP tool call the harness asks you to approve always pauses for you,
  because `permits.tools` names your workflow's MCP tools, not the harness's:
  no grant covers it, `permits.exec: true` and `permits.tools` included. Codex
  asks it as a command with no command line; Claude Code and Gemini CLI ask
  theirs as another kind of ask, which pauses too.

### What `permits:` does not cover

What the selected mode lets the harness do **without asking** never reaches
Nika, so `permits:` does not bound it:

| Seat (adapter and app measured) | Its default | Mode Nika holds | Still done without asking |
| - | - | - | - |
| `codex` (codex-acp 1.13.1, Codex 0.156.1) | `agent`: Codex's own reviewer approves | `read-only`: every approval goes to Nika | reads any file; writes the project, `/tmp`, `$TMPDIR` and its own `~/.codex` (generated images, session logs, state); runs any program inside its own sandbox, and runs its tools through a JavaScript "code mode"; calls its configured MCP tools marked `readOnlyHint: true`, remote ones included, so a Codex MCP approval rarely reaches Nika; opens pages with its hosted web tool, even under `permits: {}`, so untrusted web content reaches the model; starts every configured MCP server when the session begins; applies your global `~/.codex/AGENTS.md` and your Codex plugins. This adapter has no read-only sandbox: **even with no `fs.write` grant, the project stays writable.** Network stays off for its commands unless it asks |
| `claude-code` (claude-agent-acp 0.81.1, Claude Code 2.1.280) | your `permissions.defaultMode` (`auto` lets a classifier decide) | `default` ("Manual"): edits and commands ask | reads files in the project; runs commands Claude Code classifies as read-only; fetches documentation hosts it pre-approves. `bypassPermissions` is withheld |
| `gemini-cli` (0.62.0) | `default`, or your `--approval-mode` or settings | `default` | reads files in the project (its file tools refuse paths outside it); runs shell commands it judges safe reads; Google web searches |
| `qwen-code` · `kimi-code` · `opencode` · `copilot` · `grok-build` | — | none: no mode is measured, so none is selected; a current mode that visibly approves on its own refuses the run | everything it does without asking: Nika judges only what it asks |

On every seat:

* An action Nika allows runs under the harness's own sandbox, not Nika's exec
  sandbox, so `permits.fs` and `permits.net` do not confine it. Nika judges the
  network access a harness asks for, not the connections an allowed command
  opens by itself: Codex keeps its sandboxed commands offline unless they ask,
  while a command Claude Code or Gemini CLI runs has the network the machine
  has.
* The harness's own configuration still applies: its permission rules, its
  hooks and the MCP servers it configures act without Nika's judgment unless
  they ask.

If a task must not write anything, or must not read outside the project, do
not rely on `permits:` alone on a harness seat. Run it on an API or local
model, where Nika's own agent loop judges every tool call, or in a container
or a throwaway checkout.

### Reading the trace

Each harness `agent:` task journals, in order:

* one `permit_checked` with plane `agent`, gate `session mode · <mode>` and
  decision `confine` (the measured mode was selected) or `unmeasured` (the
  harness's own mode was only observed), whose `why` states what the harness
  still does without asking;
* one `permit_checked` per ask, with decision `allow`, `deny` (your answer)
  or `escalate` (paused for you). Its gate names what was judged:
  `mcp · <server or tool call>` for an MCP tool approval,
  `network · <target>` for a network ask, `sandbox · <widening>` for a
  sandbox widening (its `why` names the command the widening is for),
  `sandbox · command` for a Codex command that asks to leave its sandbox (the
  command and the reason in its `why`, whole up to 16 KiB, then its beginning
  and end around the bytes left out and their SHA-256), otherwise the ask's
  kind with its program or paths (an unresolvable path reads `<unresolved>`).
  A run paused on that question still journals the task's decisions, just
  before its `workflow_paused` frame;
* one `permit_checked` with decision `deny` for each file or terminal method
  the harness called and Nika refused;
* one `agent_image_observed` per image the seat sent (see below): the digest
  and size of the received bytes, the path the harness reported (never
  opened) and, under `images: { save: }`, the `saved_path` Nika wrote.

A turn the harness reports as failed ends the task with `task_failed` and its
code (`NIKA-1804` or `NIKA-1805`), never a `task_completed` whose output is
the error text.

## Images and structured answers on a seat

An application such as Codex can generate images during an `agent:` turn.
Declare `images:` on the task to use them in the workflow:

```yaml theme={"system"}
banner:
  agent:
    prompt: "Draw a 16:9 release banner, no text"
    images:
      save: ./out/release/banner.png   # optional
halftone:
  with:
    banner: ${{ tasks.banner.output.images[0].path }}
  invoke:
    tool: nika:image_fx
    args: { input: "${{ with.banner }}", out: ./out/release/banner-halftone.png, ops: [{ halftone: {} }] }
```

* `.output` becomes `{ message, images }`. `message` holds what `.output`
  would hold without `images:`. Each image carries `index` (from 0), `path`,
  `sha256`, `size_bytes`, `mime_type`, `width` and `height`. `nika check`
  types it that way, so `.output.images[0].path` and `.output.message.<key>`
  resolve, and a schema key read at the top is refused.
* Only the bytes the application sent on **this task's own session** count.
  The path it reports for its own copy (Codex: a folder under
  `~/.codex/generated_images` that every session on the machine shares) is
  never opened, so a task cannot pick up another session's image. Do not ask
  the application to copy its image into the project; declare `save:`.
* With `save:`, Nika writes the received bytes at that path through
  `nika:write`, inside `permits.fs.write` (`NIKA-SEC-004` outside it). A
  second image lands at `banner-2.png`, a third at `banner-3.png`, up to
  four: only images whose bytes arrived count, and a save that received more
  than four is refused before any file is written. Every path is judged
  before any file is written: `nika check` judges all four for a literal path
  (grant the directory, or the four files `--infer-permits` lists), refuses a
  computed `save:` path when `permits.fs.write` grants no path at all, and the
  run judges the received ones before the first write. A task whose session
  delivered no image fails `NIKA-AGENT-007` instead of succeeding with no
  file. `nika serve` lists the saved file among the run's artifacts with the
  received digest.
* A save is a write: two tasks that can run at the same time and save on one
  path, a `for_each` task that saves one path, or a save beside a
  `nika:write` of one of its files are refused (`NIKA-SEC-012`). Order them
  with `after:` or give each its own path.
* Nika recognises the image tool of Codex. On another application,
  `images: { save: }` receives nothing: `nika check` does not block it, and
  the run fails `NIKA-AGENT-007`.
* `images:` belongs to a task on a seat. On an API or local model,
  `nika check` names it as a blocker and the run refuses it: there,
  `nika:image_generate` makes the images.

A `schema:` on a seated `agent:` task is validated by Nika on the final
message, and the validated object becomes the output (`message` under
`images:`). There is no repair turn on a seat, because a new session would
replay the agent's work: a final message that does not validate fails
`NIKA-INFER-002`.

An `infer:` task over ACP (`run.access.protocol: acp`) runs one tool-free
turn and carries:

* `schema:`: the prompt carries the schema and Nika validates the answer. An
  answer that does not validate is never the output: Nika asks again in a new
  one-turn session that receives the earlier answer and the errors, up to the
  repair budget, then fails `NIKA-INFER-002`. Each repair is one more prompt
  on your subscription.
* `vision:` files, sent as ACP image blocks when the application declares
  image prompts at `initialize` (codex-acp and claude-agent-acp do). An
  application that does not is refused before the session starts, and so is
  a file whose bytes do not start with a PNG, JPEG, GIF or WebP signature.
  As on an API route, a `vision:` file is a read inside `permits.fs.read`:
  `nika check` judges a literal path, and the run judges every path on its
  resolved form before the session starts (`NIKA-SEC-004` outside the grant,
  `NIKA-AUTH-006` at check with no `permits:` block). A granted file that
  cannot be read fails with the read's own code (`NIKA-BUILTIN-READ-001` when
  no file is there, `NIKA-BUILTIN-READ-002` otherwise)
  ([Verbs](https://docs.nika.sh/concepts/verbs.md#vision-files-are-reads)).

Over ACP, a seat cannot carry `temperature`, `max_tokens`, an enabled
`thinking` budget or a `vision:` URL on an `infer:` task (Nika does not fetch
it): `nika check` names them as blockers instead of reporting the file
run-ready, and the run refuses them before anything is sent. On every seat, a
`tools:` whitelist on an `agent:` task is a blocker too, and `check` stops
suggesting `max_tokens` or `max_tokens_total` on a seated task.
`nika run --dry-run` refuses what the run's seat refuses, with the lines
`nika check` blocks `run ready` on, and exits 2.

Without `run.access.protocol: acp`, an `infer:` task on a seat runs as the
application's direct one-shot command (`codex exec`, `claude -p`, and the
one-shots of Grok Build and GitHub Copilot CLI). That command carries the
prompt, the system prompt, the model and a `schema:` (except on Copilot),
never an image, so a task with `vision:` is refused instead of running
without its images: `nika check` blocks `run ready` with `NIKA-432`, and the
run refuses the task before the seat starts, with nothing sent. The run still
judges and reads the `vision:` files under `permits.fs.read` first. The check
and the run name a route that carries the files:
`run.access: { via: <seat>, protocol: acp }` when that seat's ACP one-shot
also carries the rest of the task, and an API route first when the task sets
what the ACP session refuses (`temperature`, `max_tokens`, an enabled
`thinking` budget, a `vision:` URL), with those fields named:

```text theme={"system"}
 layers · valid ✔ · access ready ✔ · capacity fit ✔ · run ready ✖ · seat · `look` is an infer: on `codex`'s direct one-shot, whose command carries the prompt, system, model and a `schema:`, never an image: the model would not see its `vision:`, so the run refuses it before anything is sent (NIKA-432) — declare an API route or drop `vision:`; `run.access: { via: codex, protocol: acp }` carries `vision:` files, not `max_tokens`
```

<sub>Captured offline from nika 0.124.1 with `--access codex`, a scripted
`codex` standing in for the application.</sub>

That task sets `max_tokens`, so the API route comes first. Without
`max_tokens`, the same line ends on the ACP route:

```text theme={"system"}
(NIKA-432) — declare `run.access: { via: codex, protocol: acp }` (its ACP one-shot carries `vision:` files), drop `vision:` or declare an API route
```

The direct route still neither sends nor refuses `temperature`, `max_tokens`
and `thinking`, and `nika check` does not flag them: declare an API route on
a task that needs them.

## Ask a seat for its fast tier

A workflow can ask its route how fast to serve, beside the model and the
effort. `run.access.service_tier` takes two words, `standard` and `fast`:

```yaml fast-brief.nika theme={"system"}
# Ask the Codex seat for its fast tier.
nika: fast-brief
model: openai/gpt-5.5
run:
  access:
    via: codex
    protocol: acp
    fallback: none
    service_tier: fast   # or: standard
  reasoning:
    effort: low
permits: {}
tasks:
  brief:
    infer:
      prompt: "Summarize the release notes in five bullets."
outputs:
  brief: ${{ tasks.brief.output }}
```

It needs Codex installed and signed in, with its ACP adapter codex-acp 1.13.1.

* **The two words are the language's.** `standard` is the route's regular
  tier and `fast` its faster one, where the route offers one for the selected
  model. A route's own value is not a word of the file: `service_tier: on` or
  `priority` is refused at parse (`NIKA-PARSE-019`), and so is a `${{ }}`
  template. The key belongs to `run.access`; a task cannot carry it.
* **Leaving the key out is not `standard`.** Nika then sends no speed
  selection, the session keeps its own tier, and the receipt records none.
* **Only the Codex seat over ACP carries a tier.** Nika selects the model, the
  effort, the tier and the session mode in that order, and reads the whole
  selection back before the first prompt. `fast` is sent as codex-acp's
  `fast-mode: on`, `standard` as `off`.
* **The session decides whether the model offers a fast tier.** Codex lists
  the option only for a model that supports one. When the option is missing,
  or the read-back does not hold the value, the task fails `NIKA-1805` before
  any prompt is sent. Nika never serves `fast` at the regular tier.
* **The binding is held for codex-acp 1.13.1.** Another release of the
  adapter refuses a declared tier until it is measured: install 1.13.1, or
  remove the key.
* **Every other route refuses the key before task 1** (`NIKA-1800`): an API
  or local route, the mock, a seat with no measured speed control
  (`claude-code` today), and an `infer:` task outside `protocol: acp`. An
  `agent:` task always runs over ACP, so it carries the tier on the Codex seat
  with or without `protocol: acp`.
* A child workflow reads its own `run.access`: it does not inherit its
  parent's tier.
* A resumed run whose tier changed runs its `infer:` and `agent:` tasks again
  instead of reusing their recorded results.

`nika check` judges the route, not the offer. On a signed-in Codex seat it
reports the file above run-ready, and the session judges the tier when the
task starts. A route that cannot carry a tier is named on the `ACCESS` row
and blocks `access ready` and `run ready`; `nika run` then refuses before any
task, with exit 3. The mock shows it without a seat or a key:

```text theme={"system"}
nika run: NIKA-1800 · `mock/echo` resolves to `mock` (mock) and no speed control is bound for that route, so `run.access.service_tier: standard` cannot be honored — declare an agent seat that offers one (`run.access.via: codex` with `protocol: acp`), or remove the key to keep the route's own tier (nothing ran)
```

<sub>Captured offline from nika 0.124.2: `nika run` on a `mock/echo` workflow
that declares `run.access.service_tier: standard`.</sub>

A session that lists no speed option for the model refuses at the task, and
the run exits 1:

```text theme={"system"}
  ✖ NIKA-1805 · infer harness: harness refused: the harness offers no `fast-mode` option for model `gpt-5.5`, so `run.access.service_tier: fast` cannot be applied — it advertises mode (mode) · model (model) · reasoning_effort (thought_level) (remove the key to keep the route's own tier; no prompt was sent)
```

<sub>Captured offline from nika 0.124.2 on `fast-brief.nika`, a scripted
`codex-acp` standing in for the application and listing no `fast-mode`
option.</sub>

### What the receipt says about the tier

A file that declares `run.access` or `run.reasoning` leaves two rows in the
run's journal. `access_requirement` is what the file asked: the opening event
and the terminal event of each `infer:` or `agent:` task carry it.
`access_selection` is what the route did with it, on the terminal event of a
task that reached its route: for the model and the effort, the value asked,
the option it travelled through, the value sent and the value the session
read back. With a declared tier, the selection gains a `service_tier` block.
Read it from the run's `--json` stream, or from its trace file under
`.nika/traces/`, which holds the same lines:

```bash theme={"system"}
nika run fast-brief.nika --json > run.ndjson
jq -c 'select(.kind == "task_completed") | .fields[] | select(.key == "access_selection") | .value | fromjson | .service_tier' run.ndjson
```

```json theme={"system"}
{"configured":"on","configured_source":"confirmed_selection","effective":{"evidence":"unknown","value":null},"offered":["off","on"],"option":"fast-mode","requested":"fast","transmitted":"on","turn":{"evidence":"unknown","value":null}}
```

<sub>Captured offline from nika 0.124.2, a scripted `codex-acp` standing in
for the application: it answers as release 1.13.1 and lists a `fast-mode`
option.</sub>

| Fact | Field | What it holds |
| - | - | - |
| Requested | `requested` | the file's word, `standard` or `fast` |
| Offered | `offered` | the values the route listed for its `option` when the tier was judged |
| Transmitted | `transmitted` | the route's own value Nika sent: `on` or `off` on codex-acp |
| Configured | `configured` | the value the session reported after the selection, with how it was learned in `configured_source` |
| Carried on the turn | `turn` | `unknown`: no ACP answer names the tier a turn carried |
| Effective | `effective` | `unknown`: no ACP answer names the tier that served it |

A configured `on` is not proof that a turn ran on the fast tier. Codex applies
a tier only while its own `fast_mode` feature is enabled, which
`codex features list` shows on the seat, and what a fast turn counts against
your plan is Codex's to say: the task still reads `billing: unknown`. Nika
records the selection; it measures no speed and promises none.

A job on `nika serve` keeps both rows in its journal and sends neither over
HTTP. From TypeScript,
[two readers](https://docs.nika.sh/sdk/runtime/events.md#read-the-access-contract-and-its-receipt)
parse them on a local run.

A program that admits workflows can ask the engine first: an engine that reads
the key lists `accessServiceTier` in `supportedCapabilities`
(`nika --sdk-identity`, and `GET /health` on a `nika serve`). An engine
without the capability refuses the key when it parses the file, and so does an
editor whose `nika lsp` is older than 0.124.2.

## Ask a served route what it offers

A run learns what its session offers on the way to its prompt, and says so
only when it refuses. From engine 0.124.3, `nika serve` can ask ahead, without
a prompt, for a workflow it serves:

```sh theme={"system"}
curl -s http://127.0.0.1:8787/v1/access-offers/workflows/brief.nika \
  -H "Authorization: Bearer $(cat .nika/serve.token)"
```

`GET /health` lists `accessSessionOffer` in `supportedCapabilities` when the
server has this route. The answer is a `nika/access-offer@1` document. Its
shape, with example values:

```json theme={"system"}
{
  "schema": "nika/access-offer@1",
  "workflow": "workflows/brief.nika",
  "status": "read",
  "declared": { "via": "codex", "protocol": "acp", "fallback": "none", "effort": "low" },
  "prompts_sent": 0,
  "routes": [
    {
      "via": "codex", "protocol": "acp", "profile": "completion", "tasks": ["brief"],
      "status": "observed",
      "observed_at": "2026-11-10T17:00:00Z", "fresh_until": "2026-11-10T17:01:00Z",
      "adapter": { "name": "@agentclientprotocol/codex-acp", "version": "1.13.1" },
      "model": { "requested": "openai/gpt-5.5", "status": "confirmed", "current": "gpt-5.5",
                 "offered": ["gpt-5.4", "gpt-5.5"], "omitted": 0 },
      "effort": { "status": "offered", "option": "reasoning_effort",
                  "offered": ["low", "medium", "high"], "omitted": 0, "current": "medium" },
      "service_tier": { "status": "offered", "option": "fast-mode",
                        "offered": ["standard", "fast"], "omitted": 0, "current": "standard" }
    }
  ],
  "routes_omitted": 0
}
```

* **The route is the file's.** Nika asks only when the workflow declares
  `run.access.via` under `run.access.protocol: acp`. Any other workflow
  answers `"status": "not_applicable"` with the reason, and no session is
  opened. A request names a served workflow and nothing else.
* **One row per session shape and model.** `completion` is for the models
  `infer:` tasks resolve to, on the route's one-shot completion profile.
  `agent` is for the models `agent:` tasks resolve to.
* **No prompt is sent.** Each session is opened as a run opens it, selects
  the file's model for that session only, lists what the session has for
  that model and ends. No effort, tier or mode is set, so an offer uses no
  turn of your subscription, and `prompts_sent` is `0`.
* **The values are exact.** `effort.offered` holds the values a run accepts
  on `run.reasoning.effort` for that model, with no case folding and no
  alias. `effort.current` is what a run that declares no effort keeps on a
  session like this one. `service_tier.offered` holds the language's words,
  `standard` and `fast`.
* **A model the session does not list is a state, not an error.** Its
  `model.status` is `not_offered`, with the models the session does list in
  `offered`, and its efforts and tiers are `unobserved`: they are never read
  from another model. The same holds for `legacy_list` (the session names
  the model only in its legacy model list) and `not_confirmed` (it answered
  another model).
* **The tiers can be unobserved.** On an adapter or a release whose speed
  control is not measured, which is anything but codex-acp 1.13.1 today,
  `service_tier.status` is `unobserved` and carries the reason.
* **A session that gives no offer is a row.** Its `status` is `unavailable`,
  with the code a run would meet before its prompt (`NIKA-1803` adapter
  absent, silent or outside its pin; `NIKA-1804` session death; `NIKA-1805`
  refused) and a reason.
* **A row has a time.** It is kept 60 seconds, 15 when unavailable, and
  served again meanwhile, so a page that asks often opens a session rarely.
  One reading runs at a time, and a ninth concurrent request answers
  `503 access_offer_busy`.

An offer authorizes nothing. A model, an effort or a tier can leave a seat
between the offer and the run: the run selects, reads back and refuses on its
own session as before. From TypeScript,
[`accessOffer`](https://docs.nika.sh/sdk/operations/server-surfaces#ask-what-a-route-offers)
reads the same document.

## The honest receipt

A harness run's trace row says `access: harness` and
`billing: unknown` — because your plan's quota is the harness's
business until the harness itself reports it. What you will never see
is a fabricated `$0.00`: the ledger records the lane as
`subscription_quota`, priced when evidence exists, absent when it
doesn't.

## Kill-switch

One adapter refusing to behave? Take it off the machine without
touching the rest:

```bash theme={"system"}
export NIKA_HARNESS_DISABLE=codex
```

A disabled adapter is no candidate at all — a pin naming it refuses in
plain words.


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