Prerequisites
Before setting up the integration, ensure you have:- Node.js: Version 20 or higher installed on your system
- Unbound Application: A configured application in your Unbound Security dashboard
- Unbound API Key: Generated from your application settings
Installation
Step 1: Install Codex CLI
Install the Codex CLI globally using npm:Step 2: Configure Environment Variables
Set up your environment variables to point Codex to your Unbound AI Gateway:<UNBOUND_API_KEY>
with your actual Unbound API key from your application dashboard.
Step 3: Verify Installation
Test that Codex is properly configured: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
Configuration Options
Environment Variables
You can also set these variables in your shell profile (.bashrc
, .zshrc
, etc.) for persistent configuration:
Alternative Configuration
You can also configure Codex using a configuration file: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