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

# Use Nika with Codex

> One command wires the read-only Nika oracle into ~/.codex/config.toml — comments preserved — plus the first-party Codex plugin.

Codex gets two Nika surfaces: the MCP oracle and the first-party plugin.
Binary first (`brew install supernovae-st/tap/nika` ·
[other paths](https://docs.nika.sh/getting-started/installation.md)):

```sh theme={"system"}
nika wire codex
```

## What it writes

`~/.codex/config.toml` — TOML, not JSON. The writer edits only the
`[mcp_servers.nika]` table and keeps your comments and unrelated tables
intact; re-running prints `· current` (idempotent). The same block by hand:

```toml theme={"system"}
[mcp_servers.nika]
command = "nika"
args = ["mcp"]
```

## The plugin (skill + commands)

```sh theme={"system"}
codex plugin marketplace add supernovae-st/nika-plugins
codex plugin add nika@nika
```

Then `nika init` in the repo — the agent-teaching surface (`AGENTS.md`,
rules, the repo skill) is what makes the oracle useful
([agents guide](https://docs.nika.sh/getting-started/agents.md)).

## Keep it fresh

Two things move, on the same release train — the plugin never updates
the binary, and brew never updates the plugin:

```sh theme={"system"}
brew upgrade nika                       # the binary
codex plugin marketplace upgrade nika   # the plugin kit (the per-version
                                        # cache refreshes on your next run)
```

`nika doctor` answers "is my suite coherent?" — from v0.107 it names
any kit lagging or leading the binary's train, with the exact fix per
client. Drift is advisory (warn · exit 0), so it never breaks
automation.

## Verify

Codex's MCP server list shows `nika` with the nine `nika_*` tools
([the oracle's contract](https://docs.nika.sh/reference/mcp-server.md)). Then prove the loop
end-to-end: [integrate in 10 minutes](https://docs.nika.sh/integrations/quickstart.md).


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