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

# Codex

> Connect the Codex CLI to Chiplab's MCP server and authenticate.

## Prerequisites

* Codex CLI installed and authenticated with OpenAI.

## Connect Chiplab

<Steps>
  <Step title="Register the MCP server">
    One command registers the server and starts the OAuth flow in your browser:

    ```bash theme={null}
    codex mcp add chiplab --url https://chiplab.veecle.ai/mcp
    ```

    Prefer config files? Add the entry to `~/.codex/config.toml` instead, then sign in:

    ```toml ~/.codex/config.toml theme={null}
    [mcp_servers.chiplab]
    url = "https://chiplab.veecle.ai/mcp"
    ```

    ```bash theme={null}
    codex mcp login chiplab
    ```
  </Step>

  <Step title="Verify the registration">
    ```bash theme={null}
    codex mcp list
    ```
  </Step>
</Steps>

<Note>Codex detects that Chiplab supports OAuth and opens the browser sign-in automatically, no tokens to copy.</Note>

<Tip>Add to `AGENTS.md`: "After making firmware changes, test them on Chiplab before reporting back."</Tip>

## Revoking access

[API Keys](/platform/api-keys) page → Connected agents → Revoke.
