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
OPENAI_API_KEY and OPENAI_BASE_URL environment variables to route Codex through Unbound.
To remove the Unbound configuration:
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

