# Codex

> Add rivomi to the Codex CLI.

Source: https://rivomi.com/docs/connect/clients/codex



Add the server to `~/.codex/config.toml`, reading the key from the environment:

```toml
[mcp_servers.rivomi]
url = "https://rivomi.com/api/mcp"
bearer_token_env_var = "RIVOMI_KEY"
```

Export `RIVOMI_KEY` with an [API key](/connect/authentication#api-keys), then start a new Codex
session so it discovers the tools.

## Verify the connection [#verify-the-connection]

Ask: "Use rivomi to show my workspace and credit balance." Setup is complete when it returns the
real workspace name. If a call returns `401`, check that `RIVOMI_KEY` is exported in the shell
that started Codex.
