This repository builds a portable Codex CLI home directory for OpenAI GPT-5.5, DeepSeek, Z.ai coding plan, General Compute, and selected Ollama Cloud coding models.
Requires Codex CLI 0.134.0 or later (profiles use the <name>.config.toml format introduced in 0.134.0).
Configured profiles:
gpt-5-5deepseek-v4-prodeepseek-v4-flashollama-cloud-deepseek-v4-proollama-cloud-deepseek-v4-flashzai-coding-glm-5-1zai-coding-glm-4-7generalcompute-minimax-m2-7generalcompute-deepseek-v3-2generalcompute-deepseek-v3-1ollama-cloud-glm-5-1ollama-cloud-glm-5ollama-cloud-minimax-m2-7ollama-cloud-minimax-m2-5ollama-cloud-kimi-k2-6ollama-cloud-kimi-k2-5ollama-cloud-qwen3-coder-next
- Codex CLI >= 0.134.0
- Bash
jq
For OpenAI GPT-5.5, run:
codex loginDeepSeek models require Moon Bridge running locally. Codex uses the Responses API exclusively; Moon Bridge translates to DeepSeek's Chat Completions API.
- Install and start Moon Bridge (default:
http://127.0.0.1:38440) - Configure your DeepSeek API key and DeepSeek routes in Moon Bridge's
config.yml - Run:
codex --profile deepseek-v4-pro
codex --profile deepseek-v4-flashZ.AI models require Moon Bridge running locally. Codex uses the Responses API exclusively; Moon Bridge translates to Z.AI's Chat Completions API.
- Install and start Moon Bridge (default:
http://127.0.0.1:38440) - Configure Moon Bridge with
glm-5.1/glm-4.7models, a Z.AI provider usinghttps://api.z.ai/api/coding/paas/v4, and routes for those model names. See docs/moon-bridge-multi-provider.md. - Run:
codex --profile zai-coding-glm-5-1
codex --profile zai-coding-glm-4-7General Compute models require Moon Bridge running locally. General Compute provides an OpenAI-compatible Chat Completions API, while Codex uses the Responses API exclusively; Moon Bridge translates between them.
- Install and start Moon Bridge (default:
http://127.0.0.1:38440) - Configure Moon Bridge with a General Compute provider using
https://api.generalcompute.com/v1, your General Compute API key, and routes forgeneralcompute-minimax-m2.7,generalcompute-deepseek-v3.2, andgeneralcompute-deepseek-v3.1. See docs/moon-bridge-generalcompute.md. - Run:
codex --profile generalcompute-minimax-m2-7
codex --profile generalcompute-deepseek-v3-2
codex --profile generalcompute-deepseek-v3-1For Ollama Cloud models, create an API key from ollama.com and set:
export OLLAMA_API_KEY="..."This configuration talks directly to Ollama Cloud at https://ollama.com/v1; it does not require a local Ollama server proxy.
Codex CLI uses the Responses API (/v1/responses) exclusively. The older Chat Completions API (/v1/chat/completions) is no longer supported.
| Provider | API supported | Works with Codex? | Bridge required? |
|---|---|---|---|
| OpenAI | Responses | Yes | No |
| Ollama Cloud | Responses (v0.13.3+) | Yes | No |
| DeepSeek | Chat Completions only | No | Yes — use Moon Bridge |
| Z.AI | Chat Completions only | No | Yes — use Moon Bridge |
| General Compute | Chat Completions | No | Yes — use Moon Bridge |
Moon Bridge is a Go-based proxy that translates Codex Responses API calls into upstream provider APIs. For DeepSeek plus Z.AI routing, see docs/moon-bridge-multi-provider.md. For General Compute routing, see docs/moon-bridge-generalcompute.md.
scripts/validate.shThe installer deletes and recreates ~/.codex. It backs up the existing directory by default.
Preview changes:
./install.sh --dry-runInstall:
./install.shSkip the confirmation prompt:
./install.sh --yesSkip the backup only when you intentionally do not need the current ~/.codex:
./install.sh --yes --no-backupcodex --profile gpt-5-5
codex --profile deepseek-v4-pro
codex --profile deepseek-v4-flash
codex --profile ollama-cloud-deepseek-v4-pro
codex --profile ollama-cloud-deepseek-v4-flash
codex --profile zai-coding-glm-5-1
codex --profile zai-coding-glm-4-7
codex --profile generalcompute-minimax-m2-7
codex --profile generalcompute-deepseek-v3-2
codex --profile generalcompute-deepseek-v3-1
codex --profile ollama-cloud-glm-5-1
codex --profile ollama-cloud-glm-5
codex --profile ollama-cloud-minimax-m2-7
codex --profile ollama-cloud-minimax-m2-5
codex --profile ollama-cloud-kimi-k2-6
codex --profile ollama-cloud-kimi-k2-5
codex --profile ollama-cloud-qwen3-coder-nextEach profile is a separate <name>.config.toml file in the profiles/ directory. These are copied to ~/.codex/<name>.config.toml during installation. Profile files only contain values that differ from the base config.toml.
If install created a backup such as ~/.codex.backup.20260421-153000, restore it with:
rm -rf ~/.codex
mv ~/.codex.backup.20260421-153000 ~/.codexModel capability sources and runtime verification status are tracked in docs/model-capabilities.md.
This project is licensed under the MIT License. See LICENSE for details.
Copyright (c) 2026-present Douglas Hoard