Responses API profile
Codex profiles can use wire_api = "responses",
base_url = "https://api.tekiz.ai/v1/", and
model = "sage-router/auto" for hosted routing.
Codex CLI routing
Use Tekiz as the model-routing layer behind Codex CLI. Keep the
OpenAI-compatible Responses wire format, point Codex at hosted Sage
Router or local port 8790, and let route policy handle
failover, capability matching, and provider custody.
Codex profiles can use wire_api = "responses",
base_url = "https://api.tekiz.ai/v1/", and
model = "sage-router/auto" for hosted routing.
Run Tekiz on http://127.0.0.1:8790/v1/ or a
Tailnet host when provider credentials, OAuth profiles, and local
Ollama fallback should stay on trusted infrastructure.
When a Codex route, provider key, or upstream model rate-limits, Tekiz can choose another eligible route instead of forcing every Codex profile to encode fallback logic.
mkdir -p ~/.codex cat > ~/.codex/sage-router.config.toml <<'TOML' model_provider = "sage-router-hosted" model = "sage-router/auto" [model_providers.sage-router-hosted] name = "Tekiz hosted" base_url = "https://api.tekiz.ai/v1/" env_key = "SAGE_ROUTER_API_KEY" wire_api = "responses" TOML # Shell export SAGE_ROUTER_API_KEY=sk_sage_your_generated_key codex --profile sage-router
Agentic and frontier profiles keep coding-agent behavior strict while allowing eligible providers to compete on health, latency, capability, and policy.
Use the same router with OpenClaw, local workspaces, Umbrel hosts, and Tailnet machines so Codex routing stays consistent across the fleet.
Tekiz can complete the official Codex device flow for an authorized OpenAI account. It never grants access on its own; bring your subscription or use hosted routing with a Tekiz API key.
Codex CLI is most useful when the model layer can adapt to the task. Tekiz keeps Codex pointed at one endpoint while routing by policy, capability, provider health, local availability, and quota state behind the scenes.
Create an API key, open the Codex guide, copy the hosted quickstart, or estimate routing fit.