Canonical: https://redgold.ai/integrations/codex

[Home](<https://redgold.ai/>)[Learn](<https://redgold.ai/learn>)[Codex](<https://redgold.ai/integrations/codex>)

 

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.



[Connect Codex](<https://redgold.ai/splash?starter=codex>)[Open the setup guide](<https://docs.redgold.ai/intro/quickstart#use-the-api-with-coding-agents>)

 

## 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"
```

 

- [Hosted MCP server](<https://redgold.ai/integrations/mcp>)



## 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.

 

- [Connect your existing agent](<https://docs.redgold.ai/users/install/agent-tools>)

- [Read: a Rust monorepo, twenty agents, no local builds](<https://blog.redgold.ai/rust-monorepo-twenty-agents-no-local-builds>)

- [Claude Code with Redgold](<https://redgold.ai/integrations/claude-code>)

 

Model API access, MCP data tools, search, browsers, and remote builds have separate permissions and billing. See the OpenAI Codex documentation for its current configuration options.

 

[Claude Code](<https://redgold.ai/integrations/claude-code>)[Hosted MCP server](<https://redgold.ai/integrations/mcp>)[Fusion](<https://redgold.ai/fusion>)

<!-- redgold-ui-revision:2f2c9105adec0acae0c60e611ba9db7a1d33794c -->
