# Codex CLI

Codex reads MCP servers from config.toml and sends a bearer from an env variable.

API key

## Setup

1.  1
    
    Export the key in your shell profile.
    
    ```bash
    export ZOMLER_API_KEY="zk_live_…"
    ```
    
2.  2
    
    Add the server to ~/.codex/config.toml.
    
    **config.toml**
    
    ```
    [mcp_servers.zomler]
    url = "https://api.zomler.com/mcp"
    bearer_token_env_var = "ZOMLER_API_KEY"
    ```
    
3.  3
    
    Start codex; the Zomler tools are listed under /mcp.
    

## What you get

One tool per platform, plus `capabilities` and `check_balance`, at `https://api.zomler.com/mcp`. Every answer is [the envelope](https://zomler.com/docs/api/responses): what was measured, when, what was left out and why, and what it cost. Fresh fetches spend [credits](https://zomler.com/docs/api/credits); anything already held is free.

Keys are created under [API keys](https://app.zomler.com/api-keys) in the dashboard, where each one's calls and spend are listed. Revoking a key stops this client on its next call. The same key also calls the [REST API](https://zomler.com/docs/api).

[All clients](https://zomler.com/docs/mcp)

---

Source: https://zomler.com/docs/mcp/codex
