본문으로 건너뛰기
Skillpedia
에이전트84k · #1417

config-codex-cli

하는 일

이 스킬은 Codex 명령줄 도구를 OmniRoute에 연결하는 단계별 안내서입니다. 일반적인 운영체제에서 Codex 요청을 OmniRoute를 거쳐 보내고 싶은 개발자를 위한 기능입니다.

사용하는 경우

  • ✓사용자가 OmniRoute를 백엔드로 하여 Codex CLI를 사용하고 싶을 때.
  • ✓사용자가 Windows, macOS, Linux에서 Codex를 설정해야 하는 경우.
  • ✓사용자가 여러 시간 걸리는 긴 Codex 세션을 안정적으로 유지하려고 계획할 때.

스킬 링크

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/config-codex-cli/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/config-codex-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 컴퓨터에 Codex CLI를 설치해서 OmniRoute를 사용하도록 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 운영체제와 셸을 확인하고, 여러 이름 있는 프로필이 담긴 Codex 설정 파일을 쓰며, Codex에 필요한 환경 변수를 설정한 뒤 설정을 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Step-by-step agent workflow to configure the OpenAI Codex CLI on any machine (Linux, macOS, Windows) to use OmniRoute as an OpenAI-compatible backend. Detects OS and shell, writes config.toml and 7 named profiles, sets environment variables, and verifies the setup.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

No CLI subcommands mapped for this family yet.

<!-- skill:custom-start -->

Long-running Codex tasks (#7287)

Two OmniRoute defaults silently break multi-hour Codex sessions. Document them whenever configuring Codex for overnight / multi-hour work. Full guide: docs/guides/CODEX-CLI-CONFIGURATION.md → Long-running tasks.

Session affinity (default off)

  • Setting: sessionAffinityTtlMs (ms; UI shows Affinity TTL (seconds) under Dashboard → Settings → Routing → Session affinity). Legacy alias: codexSessionAffinityTtlMs.
  • Default 0 = disabled. Each turn can land on a different account and break prompt-cache / session continuity.
  • Codex session keys (x-codex-session-id, x-session-id, x-omniroute-session, body prompt_cache_key / session_id) are only used for pinning when TTL > 0.
  • Max: 86400 seconds / 86400000 ms (24h). Set TTL above the expected task length (e.g. 43200 s for ~12h).

Stream idle timeout (default 10 minutes)

  • Env: STREAM_IDLE_TIMEOUT_MS (default 600000). Also consider FETCH_BODY_TIMEOUT_MS (same baseline; 0 disables).
  • Synthetic SSE heartbeats do not reset the idle clock — only real upstream chunks do.
  • A quiet reasoning turn past the idle window is force-closed (stream_idle_timeout / StreamIdleTimeoutError). Grep logs for Idle timeout: no data from.

Recommended multi-hour recipe

  1. Dashboard → Settings → Routing → Session affinity → Affinity TTL = 43200 (12h) or 86400 (24h max).
  2. OmniRoute environment:
STREAM_IDLE_TIMEOUT_MS=0
FETCH_BODY_TIMEOUT_MS=0
  1. Restart OmniRoute. Leave Codex config.toml as usual (wire_api = "responses", correct base_url).

Defaults decision

Do not flip ship defaults in code for this skill: sessionAffinityTtlMs stays 0 and STREAM_IDLE_TIMEOUT_MS stays 600000. Long-running operators must opt in. See Discussion #5718 and issue #7287.

<!-- skill:custom-end -->
자주 묻는 질문

설정은 무엇을 만드나요?

일곱 개의 이름 있는 프로필이 담긴 config.toml 파일을 쓰고, Codex에 필요한 환경 변수를 설정합니다.

결과를 확인하나요?

네. 스킬은 설정 확인으로 끝납니다.

긴 코딩 세션은 어떻게 하나요?

스킬은 세션 고정(session affinity)이 기본적으로 꺼져 있으므로, 긴 세션에서는 예상 작업 시간보다 길게 설정해야 한다고 알려 줍니다.

상세 정보

작성자의 원본 설명

Step-by-step agent workflow to configure the OpenAI Codex CLI on any machine (Linux, macOS, Windows) to use OmniRoute as an OpenAI-compatible backend. Detects OS and shell, writes config.toml and 7 named profiles, sets environment variables, and verifies the setup.

repo: cheaper-inference/OmniRoute

인기도

GitHub 스타
84k
순위
#1417
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬