Integration Options
Unbound provides two ways to integrate Codex depending on your needs:- Using API Key: Use Codex through Unbound Gateway without needing your own OpenAI subscription
- With OpenAI Account: Keep your existing OpenAI subscription and add Unbound for tracking and analytics
Prerequisites
Before setting up the integration, ensure you have:- Unbound CLI: Installed and logged in — see the CLI guide
- Node.js: Version 20 or higher
- Codex CLI: Install with
npm install -g @openai/codex
Setup with Unbound CLI
- Gateway — Use Unbound as the AI provider (no OpenAI subscription needed)
- Subscription — Keep your OpenAI subscription, add Unbound for policy enforcement and analytics
Usage
Basic Usage
Once configured, you can start using Codex in your terminal:- Ask coding questions
- Get code suggestions
- Request explanations for existing code
- Debug issues with AI assistance
Example Commands
Troubleshooting
Common Issues
Codex not found after installation:- Ensure your Unbound API key is valid
- Check that the base URL is correct
- Verify your internet connection
Security Benefits
Using Codex with Unbound Security AI Gateway provides:- Request Monitoring: All AI requests are logged and monitored
- Cost Control: Set spending limits and track usage
- Compliance: Ensure AI interactions meet your organization’s standards
- Guardrails: Apply security policies to AI responses
- Audit Trail: Complete visibility into AI usage patterns
Unbound CLI
Install the CLI to set up and manage tools
Tool Policies
Configure security guardrails for AI tools

