Codex CLI (OpenAI)

Codex CLI को GetVibe API के साथ सेट करें: config.toml, auth.json और environment variables। wire_api = "responses" ज़रूरी है — Codex /v1/responses को call करता है।

तैयार कॉन्फ़िगरेशन

अनुरोध पर हमारी सूची से तैयार किया जाता है: एपीआई का पता, हर प्रकाशित मॉडल तथा उसकी संदर्भ सीमा और आउटपुट सीमा, और अनुशंसित सेटिंग। इसमें कोई कुंजी नहीं होती। Codex कुंजी को GETVIBE_API_KEY (env_key) से पढ़ता है। एक बार चलाने के लिए सस्ता मॉडल: codex -m <model ID>; अधिकतम तर्क क्षमता: codex -c model_reasoning_effort="high"। इस फ़ाइल के पुराने संस्करणों से बची [profiles.*] तालिकाएँ हटाएँ — इनके मौजूद रहने पर Codex 0.134 और बाद के संस्करण --profile को अस्वीकार करते हैं।

# macOS / Linux
mkdir -p ~/.codex
curl -fsSL https://getvibeapi.com/api/integrations/codex.toml -o ~/.codex/config.toml
# Windows PowerShell
New-Item -ItemType Directory -Force "$HOME\.codex" | Out-Null
Invoke-WebRequest https://getvibeapi.com/api/integrations/codex.toml -OutFile "$HOME\.codex\config.toml"
  • मुख्य मॉडल — gpt-6.1-sol: मध्यम मूल्य पर बड़े context वाला मज़बूत agentic coder; बेयर id cross-channel failover चालू रखती है।
  • छोटे काम — deepseek-v4.1-flash: 1M context वाला सबसे सस्ता सक्षम model, titles, summaries, commit messages और compaction के लिए।
  • Streaming on, 600-second request timeout, reasoning effort medium: एक लंबे reasoning वाले उत्तर में कई मिनट लगते हैं, और streaming के बिना यह wait limit से टकरा जाता है।
  • हर जगह बिना :suffix के bare model IDs — इससे किसी स्वस्थ channel पर स्वचालित failover चालू रहता है।
Catalog बदलता रहता है: जब नए models आएँ, तो file दोबारा download करें। अगर सिर्फ़ कुछ models रखने हैं, तो URL में comma-separated IDs के साथ ?models= जोड़ें।

Codex CLI, OpenAI का एक agentic tool है जो terminal में code के साथ काम करने के लिए है। यह /v1/responses endpoint इस्तेमाल करता है, इसलिए wire_api = "responses" parameter ज़रूरी है।

config.toml

Provider को ~/.codex/config.toml में जोड़ें:

model = "gpt-6.1-sol"
model_provider = "getvibe"
model_reasoning_effort = "high"

[model_providers.getvibe]
name = "GetVibe API"
base_url = "https://getvibeapi.com/v1"
wire_api = "responses"
env_key = "GETVIBE_API_KEY"

प्राथमिक विधि: environment variable

env_key द्वारा नामित variable सेट करें:

export GETVIBE_API_KEY="PASTE_YOUR_GETVIBE_KEY_HERE"
codex

Alternative: auth.json

इस option के लिए, env_key हटाएँ और provider block को इससे बदलें:

model = "gpt-6.1-sol"
model_provider = "getvibe"
model_reasoning_effort = "high"

[model_providers.getvibe]
name = "GetVibe API"
base_url = "https://getvibeapi.com/v1"
wire_api = "responses"
requires_openai_auth = true

फिर असली key को ~/.codex/auth.json में ठीक उसी नाम OPENAI_API_KEY के अंतर्गत डालें। $GETVIBE_API_KEY string JSON के अंदर expand नहीं होती।

{"OPENAI_API_KEY": "PASTE_YOUR_GETVIBE_KEY_HERE"}
Codex CLI सीधे /v1/responses पर जाता है (OpenAI Responses API format)। wire_api = "responses" के बिना requests ग़लत endpoint पर चली जातीं।
api.openai.com से आने वाला 403 Country, region, or territory not supported का मतलब है कि आपकी GetVibe key नहीं उठाई गई, यह नहीं कि आपके देश में GetVibe blocked है।
Codex CLI + GetVibe API — config.toml, wire_api प्रतिक्रियाएँ | GetVibe API