Connect Aroai to OpenAI Codex.

Wire OpenAI Codex CLI or App directly to Aroai via codex mcp add or ~/.codex/config.toml.

Before you start

Requires OpenAI Codex CLI or desktop app. Store your API key in the referenced environment variable.

Sign-in: API keyTime: About 2 minAccess: Read-only
  1. Create your free workspace

    The Researcher plan is free and ongoing: 1,000 credits a month.

  2. Add Aroai to OpenAI Codex

    1. Store AROAI_API_KEY in your shell profile or secrets manager (rather than running a live key inline in shell history).
    2. Run the codex mcp add command below or copy the [mcp_servers.aroai] block into ~/.codex/config.toml.
    3. Start Codex and ask it to run aroai_status to confirm the tools appear.
    https://mcp.aroai.com/v1
    codex mcp add aroai --url https://mcp.aroai.com/v1 --bearer-token-env-var AROAI_API_KEY
    For developers: industry addresses

    Focus tool ranking by country or industry without hiding other enabled tools.

    https://mcp.aroai.com/v1/accounting
  3. Ask your first question

    We are about to hire our first employee in New Zealand on a $68,000 salary, paid monthly. What will they cost us in a full year and each pay, including PAYE and KiwiSaver? Show each line and the rate you used.

    What a good answer looks like

    In your AI, with Aroai connected

    “What will our first employee on $68,000 really cost us?”

    Aroai ran Cost of a hire

    $70,380 a year, before ACC levies.

    Take-home a month
    $4,317.46
    PAYE a month
    $1,150.88
    KiwiSaver, 3.5%
    $198.33
    PAYE due
    21 Dec 2026
    Inland Revenue · rates from 1 April 2026

Stuck at any step? We will set it up with you

At a glance

CLI commandcodex mcp add aroai --url https://mcp.aroai.com/v1 --bearer-token-env-var AROAI_API_KEY
Config file~/.codex/config.toml
Env variable fieldbearer_token_env_var holds the NAME of your env var ("AROAI_API_KEY"), not the key value

Copyable configurations

Choose the option that matches how your workspace authenticates. Store keys in environment variables or a secret manager rather than committing them to Git.

Equivalent TOML configuration for global or project .codex/config.toml (reads AROAI_API_KEY from environment).

Manual ~/.codex/config.toml block

[mcp_servers.aroai]
url = "https://mcp.aroai.com/v1"
bearer_token_env_var = "AROAI_API_KEY"

What happens once connected

  • Codex injects server instructions along with tool names and JSON schemas at startup so tasks can query official NZ/AU rates and rules alongside repository code.

Ready-to-paste requests to try

Copy any prompt straight into your connected chat or agent to verify your connection on real New Zealand and Australian facts.

  • Verify in Codex

    Call aroai_status and verify my workspace connection.

  • Validate tax rules for billing code

    Check current NZ income tax bracket thresholds and ACC earner levy rules using Aroai before reviewing our calculator implementation.

Common questions and fixes

Codex returns an auth error even though config.toml is saved.

Check that bearer_token_env_var is set to the environment variable name "AROAI_API_KEY" (not the secret string itself), and that AROAI_API_KEY is set in the shell session launching Codex.

Related documentation

Need IT to approve it?

One page for your administrator: what Aroai is, how sign-in works and how data is handled.

Open the IT approval page

Right first time.

Free to start, and connected in a few minutes.