An r/ClaudeCode user runs Codex as orchestrator and Claude Code as performer. The bridge: MCP servers that both agents can call. This tutorial walks the setup for shared search tools.
Prerequisites
- Claude Code installed
- OpenAI Codex CLI installed
- Scavio API key
Walkthrough
Step 1: Install Claude Code MCP server in Codex
Tell Codex to set up the official Claude Code MCP server.
# In Codex session:
# 'Set up the official Claude Code MCP server'
# Codex will configure the MCP bridge automaticallyStep 2: Add Scavio MCP to Claude Code
Both agents can now call the same search tools.
claude mcp add scavio https://mcp.scavio.dev/mcp --header 'x-api-key: YOUR_SCAVIO_KEY'Step 3: Add Scavio MCP to Codex settings
Add the same MCP config to Codex.
# In Codex personalization or agents.md:
# MCP server: scavio at https://mcp.scavio.dev/mcp
# Header: x-api-key: YOUR_SCAVIO_KEYStep 4: Define roles in system prompt
Codex orchestrates, Claude Code executes. Both can search.
# Codex orchestrator prompt:
# 'Use Claude Code for implementation. Use scavio.search for web research.
# When Claude Code needs live data, it has the same search tools.'Step 5: Test the dual-agent workflow
Ask Codex to research and implement with Claude Code.
# 'Research the current pricing of Helium 10 via scavio.search,
# then have Claude Code implement a price comparison table.'Python Example
# This is a config-based setup, not Python code.
# Codex orchestrates; Claude Code implements.
# Both call scavio.search for live web data.JavaScript Example
// Config-based setup across two agent runtimes.
// Both share the same Scavio MCP server.Expected Output
Dual coding agent setup where Codex orchestrates and Claude Code implements, with shared Scavio search tools via MCP.