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

# Quickstart

> A key, one changed line, and your first governed call in about five minutes.

This page connects one agent and records one call. You need an account; if you do not have one, [join the waitlist](https://app.navige.ai/waitlist) and we will email you an invitation. It is free, and stays free until Navige has saved you something.

## On your own computer: one command

If the agents you want to see are Claude Code, Codex, Cursor, GitHub Copilot CLI or Claude Desktop on your machine, run this command and skip the rest of this page. You need Node 18 or later and a workspace admin.

```bash bash theme={null}
curl -fsSL https://app.navige.ai/cli/navige.mjs -o navige.mjs && node navige.mjs connect
```

```powershell Windows PowerShell theme={null}
irm https://app.navige.ai/cli/navige.mjs -OutFile navige.mjs; node navige.mjs connect
```

Your browser opens. Check that the six-character code matches the one in the terminal, then click **Allow**. The key goes straight into `~/.navige/config.json` and is never shown. Claude Code's model calls go through Navige, and every tool call in Claude Code, Codex, Cursor, Copilot CLI and Claude Desktop's local tool servers is checked before it runs. Each app appears as its own agent under the computer. Only the size and a fingerprint of a tool's arguments reach Navige, never their content. `node ~/.navige/navige.mjs disconnect` removes all of it.

When a Claude Code chat is done, tell Navige whether it did what you asked: type `! node ~/.navige/navige.mjs good` (or `bad`, optionally with `--why wrong-file`) in the chat. Only you know whether it worked, and Navige learns from these labels which models are enough for the work. The command marks the latest chat in that folder; `navige.mjs sessions` lists the others.

## 1. Create an agent and take its key

In the console, go to **Agents → Add agent**. Name it after the thing that will use it. You will read this name in the audit log and on the spend page, so `billing-reconciler` is more useful than `agent-1`.

You get back a key that starts with `nv_`.

> [!WARNING]
>
> The key is shown only once. Navige stores only a hash of it, so it cannot be shown again or recovered. Copy it now. If you lose it, revoke it and create another. That takes two clicks and a change to your config.

## 2. Point your client at Navige

Change the base URL and add one header. Leave everything else as it is, including your provider key.

```python Python, OpenAI SDK theme={null}
from openai import OpenAI

client = OpenAI(
    base_url="https://api.navige.ai/proxy/openai/v1",
    api_key=OPENAI_API_KEY,            # still yours, still goes to OpenAI
    default_headers={"x-navige-key": NAVIGE_KEY},
)

client.chat.completions.create(
    model="gpt-5.1",
    messages=[{"role": "user", "content": "ping"}],
)
```

```typescript TypeScript, Anthropic SDK theme={null}
import Anthropic from "@anthropic-ai/sdk";

const anthropic = new Anthropic({
  baseURL: "https://api.navige.ai/proxy/anthropic",
  apiKey: process.env.ANTHROPIC_API_KEY,
  defaultHeaders: { "x-navige-key": process.env.NAVIGE_KEY! },
});

await anthropic.messages.create({
  model: "claude-sonnet-5-5",
  max_tokens: 64,
  messages: [{ role: "user", content: "ping" }],
});
```

```bash curl, if you would rather see the wire theme={null}
curl https://api.navige.ai/proxy/openai/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "x-navige-key: $NAVIGE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.1","messages":[{"role":"user","content":"ping"}]}'
```

> [!NOTE]
>
> `Authorization` carries your provider key and is forwarded upstream untouched. `x-navige-key` carries your Navige key and never leaves Navige. Because they are separate headers, the two keys cannot be mistaken for one another. See [Authentication](https://docs.navige.ai/reference/authentication.md).

## 3. Find the call in the console

Open **Transactions** in the console. Your call is there, with the model, the token counts, what it cost and how long it took.

If it is not there, the usual cause is a key in the wrong header. That fails closed with a `401` from Navige; it does not fail silently.

## 4. Give the work a name

To see what a task cost, such as the eleven model calls and four tool calls in one invoice run, pass a workflow key and Navige groups the calls.

```bash theme={null}
-H "x-navige-workflow: invoice-run"
```

The spend page then reports per task: instead of `$0.0004` per call, you see `$1.37` per invoice.

## What you have now

* Every model call through that client, priced and attributed.
* A per-task cost, if you set a workflow key.
* A weekly report of what it all cost and where the waste is. The waste figures are modelled (An estimate of what did not happen. Never added to a measured figure, and never billed.), not charged for, because you are on Watchtower (The free tier. Policies are decided and recorded but not enforced, and cost levers do not act. The kill switch and spend caps act on every tier.) and nothing has been changed.

## Next

> [card] [Gate an action](https://docs.navige.ai/connect/enforce.md)
>
> Ask before your agent does something irreversible.

> [card] [Turn the levers on](https://docs.navige.ai/concepts/watchtower.md)
>
> What changes when an account starts paying.


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