Shandisa Codex CLI ne-Shannon
Tsanangura Shannon se-model provider mu-config.toml ye-Codex; Codex inotaura ne-Responses API ye-Shannon ne-tools dzayo pachayo.
- Yakaedzwa 2026 Mbu 7
- OpenAI Responses
- Anenge 3 min
Nezve Codex CLI
Codex CLI coding agent ari open-source we-OpenAI. Inoverenga repository yako, inogadzirisa files uye inomhanyisa commands mu-sandbox, kubva mu-terminal kana IDE extension. Custom model provider mu-~/.codex/config.toml inoita kuti imhanye pa-Shannon models kuburikidza ne-Responses API, ne-tools dzese dze-Codex pachayo.
Zvaunoda
- Shannon API key
- Makiyi nekushandiswa
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/responses - Snippet yega yega iri pazasi inotevera sarudzo yako.
Iseta
-
Wedzera Shannon se-model provider
Codex inotaura Responses API chete ne-custom provider, iyo Shannon inopa. Isa izvi mu-
~/.codex/config.toml(providers hadzigone kusetwa pa-project imwe neimwe).~/.codex/config.tomlmodel = "Kimi-K3-uncensored-NVFP4" model_provider = "shannon" model_context_window = 1022976 [model_providers.shannon] name = "Shannon" base_url = "https://api.shannon-ai.com/v1" env_key = "SHANNON_API_KEY" wire_api = "responses" -
Export key uye utange Codex
env_keyinotumidza variable yainoverenga Codex key.Shellexport SHANNON_API_KEY=YOUR_API_KEY codex
Ongorora kuti inoshanda
Tumira: Tsanangura kuti repository iyi inoita chii.
Unofanira kuona: Codex inoverenga files ne-tools dzayo uye inopindura; /status inoratidza Shannon provider ne-model.
Ma-model anokodzera Codex CLI
Id imwe neimwe iri pazasi inozadzisa zvinodiwa ne Codex CLI. Yekutanga ndiyo default mu-snippets.
| Id ye-model | Context window | Output yakakura | Kupinza mifananidzo |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Hongu |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Hongu |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Hongu |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Hongu |
shannon-3 | 196,608 | 65,536 | Hongu |
Ma-setting e-model
Codex CLI inokumbira ma-value aya. Anoenderana ne-model yawasarudza.
| Setting | Kukosha | Sei |
|---|---|---|
model_context_window | 1022976 | Codex haizivi Shannon ids uye inonyevera nezve fallback metadata pasina izvi. |
Zvakanaka kuziva
wire_api = "responses"inodiwa: Codex yazvino yasiya fomati ye-chat.- Mhinduro hadzichengetwi pa-server. Codex inotumira kukurukurirana kwese pa-turn imwe neimwe, izvo zvainoita se-default.
- Pa-Linux, Codex inomhanyisa commands mu-sandbox yayo (bubblewrap). Kana system ichivharira unprivileged user namespaces, commands nekunyora files zvinokundikana mukati me-Codex; iyo local setting, kwete API.
Mazano
- Edza imwe Shannon id pasina kugadzirisa config:
codex -m <id>. - Chengeta profile imwe pa-model imwe neimwe,
[profiles.<name>]ne-modelne-model_provider = "shannon", uye usarudze imwe ne-codex --profile <name>. codex exec "…"inomhanyisa basa rimwe pasina interactive screen, ye-scripts nema-CI job.- Nyora
/statusmu-session kuti uone provider, model ne-context window zviri kushandiswa ne-Codex.
Kugadzirisa matambudziko
| Chiratidzo | Chikonzero | Gadziriro |
|---|---|---|
| "Model metadata not found" warning | Codex haina data yakavakirwa mukati ye-Shannon ids. | Isa model_context_window; warning haina njodzi. |
404 Not Found | base_url haina /v1. | Shandisa https://api.shannon-ai.com/v1. |
400 nezve previous_response_id | Setting inokumbira server kuchengeta mhinduro. | Chengeta default ye-Codex, inotumira kukurukurirana kwese. |
401 Unauthorized | Key haipo, yanyorwa zvisizvo kana kuti yakachinjwa. | Kopa key zvakare kubva ku-Keys & usage; inotanga ne sk-. |
context_length_exceeded / “prompt is too long” | Hurukuro yakareba kupfuura window ye-model. | Tanga chat itsva, rega tool iidimbure, kana sarudza model ine window huru. |
insufficient_quota | Balance yako haikwani kubhadhara request. | Wedzera credit kana chinja plan; request haidzokororwi yoga. |
Mibvunzo
Codex CLI inoshanda ne-Shannon here?
Hongu, se-custom model provider pa-Responses API ku-https://api.shannon-ai.com/v1/responses.
Ndinogona kuseta provider pa-project imwe neimwe here?
Aiwa: Codex inoverenga providers kubva ku-~/.codex/config.toml chete.