Skip to content

INTEGRATIONS · CODEX

Use Codex with Redgold.

Add Redgold to Codex as a Responses provider, as an MCP server, or both. Codex keeps your repository, commands, and approvals; Redgold adds models, data tools, search, browsers, and remote builds.

Two settings, one file.

Responses provider

Add a custom provider in ~/.codex/config.toml and run codex as usual.

Hosted MCP server

Add an mcp_servers entry that reads the key from an environment variable.

Agent tools

Install rac for web search, a managed browser, and remote Rust and UI builds from inside a Codex session.

Add Redgold as a Responses provider.

Make REDGOLD_API_KEY available in the environment that starts Codex. The configuration names the variable and does not store its value. Replace redgold-flint with another Responses-compatible model from /v1/models when you need to.

~/.codex/config.toml · model provider
model = "redgold-flint"
model_provider = "redgold"

[model_providers.redgold]
name = "Redgold"
base_url = "https://api.redgold.ai/v1"
env_key = "REDGOLD_API_KEY"
wire_api = "responses"

Connect the hosted MCP server.

You can add the MCP server and keep your current model provider. Restart Codex, then ask it to list the Redgold tools.

~/.codex/config.toml · MCP server
[mcp_servers.redgold]
url = "https://api.redgold.ai/api/mcp"
bearer_token_env_var = "REDGOLD_API_KEY"

Give Codex the tools it is missing.

Codex is good at editing code and weak at anything that needs a browser, fresh web results, or a large build. The setup prompt asks your agent to install rac and its skills, keep your existing instructions and model settings, and report what access each tool still needs.