Use Codex CLI with Toknix

Route OpenAI CLI and Codex commands through Toknix by setting standard environment variables.

Developers using the OpenAI CLI or Codex terminal utilities can proxy all calls through Toknix.

Environment Configuration

bash
export OPENAI_BASE_URL="https://api.toknix.in/v1"
export OPENAI_API_KEY="tk_live_your_actual_key"

Command Execution

bash
openai api chat.completions.create   -m gpt-6-astra   -g user "Generate a Kubernetes deployment manifest for Redis cluster."