Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.
모델 요청에는 DGrid Model API Key를 사용하세요. Management API Key는 관리용 자격 증명이므로 이 가이드에 사용할 수 없습니다. 키에 사용 가능한 잔액과 선택한 모델의 접근 권한이 있는지 확인하세요.
API 키, Responses API Base URL 및 전체 모델 ID로 Codex CLI 또는 데스크톱 앱의 Codex를 DGrid에 연결합니다.현재 데스크톱 다운로드는 Codex가 포함된 ChatGPT 데스크톱 앱입니다. 기존 설치에서는 Codex라는 이름이 남아 있을 수 있습니다. 공식 다운로드 페이지에서 앱을 받으세요.이 가이드는 openai/gpt-6-sol을 사용합니다. 스크린샷과 데스크톱 상세 절차는 macOS 기준이며 Windows 설치 및 CLI 안내도 포함합니다.
CLI 프로필은 해당 프로필로 시작한 실행에서 DGrid를 선택합니다. 데스크톱 기본 파일을 수정하면 이 파일을 읽는 클라이언트의 기본 공급자가 바뀝니다. 현재 데스크톱 환경을 업무에 사용 중이라면 다른 컴퓨터에서 데스크톱 절차를 진행하세요.두 방법 모두 다음 연결 설정을 사용합니다.
폴더 신뢰 여부를 물으면 방금 만든 예제 폴더를 신뢰하도록 선택하세요. 선택한 모델이 openai/gpt-6-sol인지 확인하세요. /status로 세션을 확인할 수도 있습니다.다음을 보내세요.
Reply with exactly: DGrid connection successful
예상 응답은 다음과 같습니다.
DGrid connection successful
DGrid 모델을 선택하고 응답을 표시하는 Codex CLI
시작 시 Running without the shared background server: --profile requires embedded mode.가 표시되면 프로필 세션의 실행 방식에 대한 안내입니다. F2로 확인하고 Esc로 닫은 다음 계속하세요. 일부 Mac 키보드는 Fn + F2를 사용합니다.
macOS: 다운로드한 설치 프로그램을 열고 앱을 Applications로 드래그한 다음 여세요.
Windows: 다운로드한 설치 프로그램을 실행하고 안내를 따르세요.
Codex가 포함된 현재 앱을 선택하세요. 아래 절차는 macOS 및 /Applications/ChatGPT.app 경로를 기준으로 합니다.DGrid 자격 증명을 사용하려면 아래의 공급자 및 실행 환경을 설정하세요. 첫 로그인 화면의 OpenAI API key 필드만으로는 DGrid Base URL이 설정되지 않습니다.
기존 파일에서는 해당 최상위 키를 수정하고 첫 테이블 헤더 앞([section])에 배치하세요. 파일 끝에 DGrid 공급자 테이블을 추가하거나 기존 테이블을 수정하세요. 다른 설정은 유지하고 키나 테이블을 중복 정의하지 마세요. 일반 텍스트와 곧은 따옴표를 사용하세요.앱은 이 기본 파일을 읽습니다. CLI 프로필 파일만으로 데스크톱 앱에서 DGrid가 선택되지는 않습니다. Windows 경로는 %USERPROFILE%\.codex\config.toml입니다. 공식 게이트웨이 설정 안내를 참고하세요.
export DGRID_API_KEYread -rs "DGRID_API_KEY?Paste your DGrid API key (hidden): "
DGrid 키를 붙여넣고 Enter를 누르세요. 터미널 프롬프트가 돌아오면 같은 터미널에서 별도의 명령으로 다음을 실행하세요.
open -a "/Applications/ChatGPT.app" --env "DGRID_API_KEY=$DGRID_API_KEY"
앱 이름이 Codex.app이면 실제 설치 경로로 바꾸세요.앱이 이미 실행 중이어서 환경 변수를 설정할 수 없다는 메시지가 나오면 Command + Q로 완전히 종료한 후 실행 명령을 다시 입력하세요.키는 이번에 시작한 앱 프로세스에 전달됩니다. 새 터미널에서 다시 시작할 때는 숨겨진 키 입력과 실행 명령을 반복하세요. Dock에서 앱을 열면 이 터미널에만 설정한 변수가 전달되지 않습니다.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"DGrid AI Docs","description":"Documentation for DGrid AI: The Decentralized Smart Network of AI","colors":{"primary":"#65A30D","light":"#A3E635","dark":"#4D7C0F"},"logo":{"light":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-black.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=aa7da302786ec058e3c91526a127736d","dark":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-white.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=62aa06e50e86ab2394beada6a4814623"},"favicon":"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/favicon.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=75fcb6ffc8e30d1e2be00c994cc0372e","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript","go","java"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dgrid.ai/overview"}},"footer":{"socials":{"x":"https://x.com/dgrid_ai","telegram":"https://telegram.me/dgrid_ai","github":"https://github.com/dgridai"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh-Hant","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"部落格"},{"href":"https://telegram.me/dgrid_ai","label":"支援"}],"primary":{"type":"button","label":"儀表板","href":"https://dgrid.ai/overview"}},"href":"zh-Hant"},{"language":"ko","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"블로그"},{"href":"https://telegram.me/dgrid_ai","label":"지원"}],"primary":{"type":"button","label":"대시보드","href":"https://dgrid.ai/overview"}},"href":"ko"},{"language":"fr","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Assistance"}],"primary":{"type":"button","label":"Tableau de bord","href":"https://dgrid.ai/overview"}},"href":"fr"},{"language":"es","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Soporte"}],"primary":{"type":"button","label":"Panel","href":"https://dgrid.ai/overview"}},"href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dgridai","hasAudioNarration":false,"actualSubdomain":"dgridai","customDomains":["docs.dgrid.ai"],"gitSource":{"type":"github","owner":"ethanclarkeio","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"collectionId":"146373a5-1310-4927-bf4d-bc5f1b23b737","liveDeploymentHistoryId":"6adb04f0a28cf93daee93294","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb04f0a28cf93daee93294"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adb04f0a28cf93daee93294","clientVersion":"0.0.3939","searchFilterCounts":[{"language":"en","tag":"Documentation","count":36},{"language":"es","tag":"Documentación","count":36},{"language":"fr","tag":"Documentation","count":36},{"language":"ko","tag":"문서","count":36},{"language":"zh-Hant","tag":"文件","count":36},{"language":"en","tag":"API Reference","count":28},{"language":"es","tag":"Referencia de la API","count":28},{"language":"fr","tag":"Référence API","count":28},{"language":"ko","tag":"API 참조","count":28},{"language":"zh-Hant","tag":"API 參考","count":28},{"language":"en","tag":"MODEL API","count":22},{"language":"es","tag":"API DE MODELOS","count":22},{"language":"fr","tag":"API DE MODÈLES","count":22},{"language":"ko","tag":"모델 API","count":22},{"language":"zh-Hant","tag":"模型 API","count":22},{"language":"en","tag":"AI GATEWAY","count":13},{"language":"es","tag":"PUERTA DE ENLACE IA","count":13},{"language":"fr","tag":"PASSERELLE IA","count":13},{"language":"ko","tag":"AI 게이트웨이","count":13},{"language":"zh-Hant","tag":"AI 閘道","count":13},{"language":"en","tag":"Integration Tutorials","count":7},{"language":"es","tag":"Tutoriales de integración","count":7},{"language":"fr","tag":"Tutoriels d'intégration","count":7},{"language":"ko","tag":"통합 가이드","count":7},{"language":"zh-Hant","tag":"整合教學","count":7},{"language":"en","tag":"Images","count":6},{"language":"en","tag":"GENESIS PREMIUM","count":6},{"language":"es","tag":"Imágenes","count":6},{"language":"es","tag":"GENESIS PREMIUM","count":6},{"language":"fr","tag":"Images","count":6},{"language":"fr","tag":"GENESIS PREMIUM","count":6},{"language":"ko","tag":"이미지","count":6},{"language":"ko","tag":"GENESIS PREMIUM","count":6},{"language":"zh-Hant","tag":"圖像","count":6},{"language":"zh-Hant","tag":"GENESIS PREMIUM","count":6},{"language":"en","tag":"Chat","count":5},{"language":"es","tag":"Chat","count":5},{"language":"fr","tag":"Chat","count":5},{"language":"ko","tag":"채팅","count":5},{"language":"zh-Hant","tag":"對話","count":5},{"language":"en","tag":"Audio","count":4},{"language":"en","tag":"CORE CONCEPTS","count":4},{"language":"es","tag":"Audio","count":4},{"language":"es","tag":"CONCEPTOS CLAVE","count":4},{"language":"fr","tag":"Audio","count":4},{"language":"fr","tag":"CONCEPTS CLÉS","count":4},{"language":"ko","tag":"오디오","count":4},{"language":"ko","tag":"핵심 개념","count":4},{"language":"zh-Hant","tag":"音訊","count":4},{"language":"zh-Hant","tag":"核心概念","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"ko/ai-gateway/integrations/codex","slug":"/ko/ai-gateway/integrations/codex","pageMetadata":{"title":"DGrid로 Codex 사용하기","sidebarTitle":"Codex","description":"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.","href":"/ko/ai-gateway/integrations/codex"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,Note,OptimizedImage,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsx(_components.p,{children:`모델 요청에는 DGrid Model API Key를 사용하세요. Management API Key는 관리용 자격 증명이므로 이 가이드에 사용할 수 없습니다. 키에 사용 가능한 잔액과 선택한 모델의 접근 권한이 있는지 확인하세요.`})}),`\n`,_jsxs(_components.p,{children:[`API 키, Responses API Base URL 및 전체 모델 ID로 `,_jsx(`strong`,{children:`Codex CLI`}),` 또는 `,_jsx(`strong`,{children:`데스크톱 앱의 Codex`}),`를 DGrid에 연결합니다.`]}),`\n`,_jsxs(_components.p,{children:[`현재 데스크톱 다운로드는 `,_jsx(`strong`,{children:`Codex가 포함된 ChatGPT 데스크톱 앱`}),`입니다. 기존 설치에서는 Codex라는 이름이 남아 있을 수 있습니다. `,_jsx(_components.a,{href:`https://chatgpt.com/download/`,children:`공식 다운로드 페이지`}),`에서 앱을 받으세요.`]}),`\n`,_jsxs(_components.p,{children:[`이 가이드는 `,_jsx(_components.code,{children:`openai/gpt-6-sol`}),`을 사용합니다. 스크린샷과 데스크톱 상세 절차는 macOS 기준이며 Windows 설치 및 CLI 안내도 포함합니다.`]}),`\n`,_jsx(Heading,{level:`2`,id:`시작하기-전에`,children:`시작하기 전에`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`사용 가능한 잔액과 Responses API 지원 모델의 접근 권한이 있는 `,_jsx(_components.a,{href:`https://dgrid.ai/`,children:`DGrid 계정`}),`이 필요합니다.`]}),`\n`,_jsxs(_components.li,{children:[`DGrid에 로그인하여 `,_jsx(_components.a,{href:`https://dgrid.ai/api-keys`,children:`API Keys`}),`에서 API 키를 만들거나 복사하세요.`]}),`\n`,_jsx(_components.li,{children:`npm 설치에는 Node.js와 npm이 필요합니다. 데스크톱 앱은 CLI와 독립적으로 사용할 수 있습니다.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`스크린샷과 공유 파일에 전체 키를 노출하지 마세요. `,_jsx(_components.code,{children:`openai/`}),` 접두사를 포함한 전체 모델 ID를 유지하세요.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`모델 메타데이터 또는 카탈로그 오류가 발생하면 Codex 버전에 맞는 카탈로그 설정을 DGrid에 문의하세요. 사용자 지정 모델 별칭에는 해당 메타데이터가 필요할 수 있습니다. 카탈로그 URL을 추측하지 마세요. `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/enterprise/connect-to-a-gateway`,children:`공식 게이트웨이 설정 안내`}),`를 참고하세요.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`설정-방법-선택`,children:`설정 방법 선택`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`방법`}),_jsx(_components.th,{children:`설정 파일`}),_jsx(_components.th,{children:`사용 방법`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CLI`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/.codex/dgrid.config.toml`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`codex --profile dgrid`}),`를 실행하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`macOS 데스크톱`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/.codex/config.toml`})}),_jsx(_components.td,{children:`앱이 시작 시 기본 설정 파일을 읽습니다.`})]})]})]}),`\n`,_jsx(_components.p,{children:`CLI 프로필은 해당 프로필로 시작한 실행에서 DGrid를 선택합니다. 데스크톱 기본 파일을 수정하면 이 파일을 읽는 클라이언트의 기본 공급자가 바뀝니다. 현재 데스크톱 환경을 업무에 사용 중이라면 다른 컴퓨터에서 데스크톱 절차를 진행하세요.`}),`\n`,_jsx(_components.p,{children:`두 방법 모두 다음 연결 설정을 사용합니다.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`설정`}),_jsx(_components.th,{children:`값`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`openai/gpt-6-sol`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Base URL`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://api.dgrid.ai/v1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API 형식`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`responses`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`자격 증명 환경 변수`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DGRID_API_KEY`})})]})]})]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`CLI`,id:`cli`,\"data-child-heading-ids\":`[\"1-node-js-%EB%B0%8F-codex-cli-%EC%84%A4%EC%B9%98\",\"2-dgrid-%ED%94%84%EB%A1%9C%ED%95%84-%EC%83%9D%EC%84%B1\",\"3-api-%ED%82%A4-%EC%9E%85%EB%A0%A5\",\"4-codex-%EC%8B%9C%EC%9E%91-%EB%B0%8F-%EB%A9%94%EC%8B%9C%EC%A7%80-%EC%A0%84%EC%86%A1\"]`,children:[_jsx(Heading,{level:`3`,id:`1-node-js-및-codex-cli-설치`,children:`1. Node.js 및 Codex CLI 설치`}),_jsxs(_components.p,{children:[`필요하면 `,_jsx(_components.a,{href:`https://nodejs.org/en/download`,children:`Node.js 다운로드 페이지`}),`에서 현재 LTS 버전을 설치하세요. macOS 또는 Windows용 설치 프로그램을 실행하세요. 표준 설치 프로그램에는 npm이 포함됩니다.`]}),_jsx(_components.p,{children:`macOS 터미널 또는 Windows PowerShell에서 확인하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -v`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -v`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/codex/cli`,children:`공식 Codex npm 설치 방법`}),`에 따라 설치하세요.`]}),_jsxs(_components.p,{children:[_jsx(`strong`,{children:`macOS:`}),` 사용자 디렉터리에 설치하세요.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @openai/codex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --prefix`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.local\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PATH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.local/bin:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PATH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`})]}),`\n`]})})}),_jsx(_components.p,{children:`PATH 명령은 현재 터미널에만 적용됩니다. 새 터미널에서 다시 실행하거나 셸 PATH 설정에 디렉터리를 추가하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm install `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`g `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`@openai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codex`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codex `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`version`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`PowerShell이 `,_jsx(_components.code,{children:`npm.ps1`}),`을 차단하면 `,_jsx(_components.code,{children:`npm`}),` 대신 `,_jsx(_components.code,{children:`npm.cmd`}),`를 사용하세요.`]}),_jsxs(_components.p,{children:[`CLI 스크린샷은 `,_jsx(_components.code,{children:`codex-cli 0.163.0`}),`을 사용합니다. 아래 독립 프로필 파일 형식은 Codex `,_jsx(_components.code,{children:`0.134.0`}),` 이상에 적용됩니다. `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/config-file/config-advanced#profiles`,children:`프로필 설정`}),`을 참고하세요.`]}),_jsx(Heading,{level:`3`,id:`2-dgrid-프로필-생성`,children:`2. DGrid 프로필 생성`}),_jsxs(_components.p,{children:[`macOS에서 `,_jsx(_components.code,{children:`~/.codex/dgrid.config.toml`}),`, Windows에서 `,_jsx(_components.code,{children:`%USERPROFILE%\\\\.codex\\\\dgrid.config.toml`}),`을 만드세요. 다음 내용을 붙여넣으세요.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-6-sol\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_provider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dgrid\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_reasoning_effort`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`web_search`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disabled\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`model_providers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`dgrid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DGrid\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.dgrid.ai/v1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wire_api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"responses\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DGRID_API_KEY\"`})]}),`\n`]})})}),_jsx(_components.p,{children:`macOS에서는 다음 명령으로 파일을 만들고 열 수 있습니다.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`touch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex/dgrid.config.toml\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -t`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex/dgrid.config.toml\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`프로필이 이미 있으면 해당 설정을 수정하세요. 일반 텍스트로 저장하고 곧은 따옴표를 사용하세요. `,_jsx(_components.code,{children:`env_key`}),`는 변수 이름이므로 `,_jsx(_components.code,{children:`DGRID_API_KEY`}),`로 유지하세요.`]}),_jsx(Frame,{caption:`터미널에서 Codex CLI 설치 및 별도 DGrid 프로필 생성`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=9ffe2a1a6ab6330e03095b19ebc221a4`,alt:`터미널에서 Codex CLI 설치 및 별도 DGrid 프로필 생성`,\"data-og-width\":`1756`,width:`1756`,\"data-og-height\":`1106`,height:`1106`,\"data-path\":`images/integrations/codex/cli-config.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=280\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=dc35a27ee677c5ac026e737cfd54ef10 280w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=560\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=40f83bb18b4657ffad1b9793440864c9 560w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=840\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=7113aec029f4f1a7b839486319de8761 840w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=1100\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=314da3f41cbc5ae0e45309dfc80aed73 1100w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=1650\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=ad69c1e57ff43b6139348a26e82f1042 1650w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-config.png?w=2500\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=3bec4157fb4fa7878f323c8485b0d17e 2500w`})}),_jsx(Heading,{level:`3`,id:`3-api-키-입력`,children:`3. API 키 입력`}),_jsx(_components.p,{children:`Codex를 시작할 동일한 터미널을 사용하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DGRID_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`read`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -rs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"DGRID_API_KEY?Paste your DGrid API key (hidden): \"`})]}),`\n`]})})}),_jsx(_components.p,{children:`프롬프트에 키를 붙여넣고 Enter를 누르세요. 입력한 문자는 표시되지 않습니다. 터미널 프롬프트가 돌아온 뒤 다음 명령을 실행하세요.`}),_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Windows PowerShell:`}),` 첫 줄을 실행하고 숨겨진 입력 프롬프트에 키를 입력한 다음 나머지 줄을 실행하세요.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$dgridSecureKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Read-Host`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Paste your DGrid API key (hidden)\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AsSecureString`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DGRID_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`System.Net.NetworkCredential`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]::new(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $dgridSecureKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).Password`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Remove-Variable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` dgridSecureKey`})]}),`\n`]})})}),_jsx(_components.p,{children:`현재 터미널 세션에 키가 설정됩니다. 새 터미널에서는 다시 입력해야 합니다.`}),_jsx(Heading,{level:`3`,id:`4-codex-시작-및-메시지-전송`,children:`4. Codex 시작 및 메시지 전송`}),_jsx(_components.p,{children:`macOS에서 실행하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dgrid-codex-demo\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dgrid-codex-demo\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dgrid`})]}),`\n`]})})}),_jsx(_components.p,{children:`Windows PowerShell에서 실행하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`New-Item`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ItemType Directory `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Force `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dgrid-codex-demo\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Out-Null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Set-Location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dgrid-codex-demo\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`codex `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`profile dgrid`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`폴더 신뢰 여부를 물으면 방금 만든 예제 폴더를 신뢰하도록 선택하세요. 선택한 모델이 `,_jsx(_components.code,{children:`openai/gpt-6-sol`}),`인지 확인하세요. `,_jsx(_components.code,{children:`/status`}),`로 세션을 확인할 수도 있습니다.`]}),_jsx(_components.p,{children:`다음을 보내세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Reply with exactly: DGrid connection successful`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`예상 응답은 다음과 같습니다.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DGrid connection successful`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Frame,{caption:`DGrid 모델을 선택하고 응답을 표시하는 Codex CLI`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=cf39b9052373d3d4a67a6b789ad33e6b`,alt:`DGrid 모델을 선택하고 응답을 표시하는 Codex CLI`,\"data-og-width\":`1756`,width:`1756`,\"data-og-height\":`1106`,height:`1106`,\"data-path\":`images/integrations/codex/cli-success.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=280\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=6b9207d025c93ba82c579329028be0be 280w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=560\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=c89eeb2f4c4a05a00b1ee3a4243d0e53 560w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=840\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=337604b2a672411ed1ea8d983ce74444 840w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=1100\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=dd5aab44f3b3107535a39611934d5adb 1100w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=1650\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=fbd881e60f3545b0cebe632209ad3cbd 1650w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/cli-success.png?w=2500\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=2229164fb4687168736857f74b7de2cc 2500w`})}),_jsxs(_components.p,{children:[`시작 시 `,_jsx(_components.code,{children:`Running without the shared background server: --profile requires embedded mode.`}),`가 표시되면 프로필 세션의 실행 방식에 대한 안내입니다. F2로 확인하고 Esc로 닫은 다음 계속하세요. 일부 Mac 키보드는 Fn + F2를 사용합니다.`]})]}),_jsxs(Tab,{title:`데스크톱(macOS)`,id:`%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-macos`,\"data-child-heading-ids\":`[\"1-%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-%EC%95%B1-%EC%84%A4%EC%B9%98\",\"2-%EA%B8%B0%EB%B3%B8-%ED%8C%8C%EC%9D%BC%EC%97%90-dgrid-%EC%84%A4%EC%A0%95\",\"3-%ED%82%A4-%EC%9E%85%EB%A0%A5-%EB%B0%8F-%EC%95%B1-%EC%8B%9C%EC%9E%91\",\"4-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%84%A0%ED%83%9D-%EB%B0%8F-%EB%A9%94%EC%8B%9C%EC%A7%80-%EC%A0%84%EC%86%A1\"]`,children:[_jsx(Heading,{level:`3`,id:`1-데스크톱-앱-설치`,children:`1. 데스크톱 앱 설치`}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://chatgpt.com/download/`,children:`공식 다운로드 페이지`}),`를 열고 운영체제를 선택하세요.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(`strong`,{children:`macOS:`}),` 다운로드한 설치 프로그램을 열고 앱을 Applications로 드래그한 다음 여세요.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`strong`,{children:`Windows:`}),` 다운로드한 설치 프로그램을 실행하고 안내를 따르세요.`]}),`\n`]}),_jsxs(_components.p,{children:[`Codex가 포함된 현재 앱을 선택하세요. 아래 절차는 macOS 및 `,_jsx(_components.code,{children:`/Applications/ChatGPT.app`}),` 경로를 기준으로 합니다.`]}),_jsxs(_components.p,{children:[`DGrid 자격 증명을 사용하려면 아래의 공급자 및 실행 환경을 설정하세요. 첫 로그인 화면의 `,_jsx(_components.code,{children:`OpenAI API key`}),` 필드만으로는 DGrid Base URL이 설정되지 않습니다.`]}),_jsx(Heading,{level:`3`,id:`2-기본-파일에-dgrid-설정`,children:`2. 기본 파일에 DGrid 설정`}),_jsxs(_components.p,{children:[_jsx(`strong`,{children:`Command + Q로 데스크톱 앱을 완전히 종료하세요.`}),` 창만 닫으면 앱이 계속 실행될 수 있습니다.`]}),_jsx(_components.p,{children:`macOS 터미널에서 실행하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`touch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex/config.toml\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -t`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.codex/config.toml\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`config.toml`}),`에 다음 설정을 사용하세요.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"openai/gpt-6-sol\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_provider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dgrid\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`model_reasoning_effort`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`web_search`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disabled\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`model_providers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`dgrid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DGrid\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.dgrid.ai/v1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wire_api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"responses\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DGRID_API_KEY\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`기존 파일에서는 해당 최상위 키를 수정하고 `,_jsx(`strong`,{children:`첫 테이블 헤더 앞`}),`(`,_jsx(_components.code,{children:`[section]`}),`)에 배치하세요. 파일 끝에 DGrid 공급자 테이블을 추가하거나 기존 테이블을 수정하세요. 다른 설정은 유지하고 키나 테이블을 중복 정의하지 마세요. 일반 텍스트와 곧은 따옴표를 사용하세요.`]}),_jsxs(_components.p,{children:[`앱은 이 기본 파일을 읽습니다. CLI 프로필 파일만으로 데스크톱 앱에서 DGrid가 선택되지는 않습니다. Windows 경로는 `,_jsx(_components.code,{children:`%USERPROFILE%\\\\.codex\\\\config.toml`}),`입니다. `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/enterprise/connect-to-a-gateway`,children:`공식 게이트웨이 설정 안내`}),`를 참고하세요.`]}),_jsx(Heading,{level:`3`,id:`3-키-입력-및-앱-시작`,children:`3. 키 입력 및 앱 시작`}),_jsx(_components.p,{children:`macOS 터미널의 Zsh에서 실행하세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DGRID_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`read`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -rs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"DGRID_API_KEY?Paste your DGrid API key (hidden): \"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`DGrid 키를 붙여넣고 Enter를 누르세요. 터미널 프롬프트가 돌아오면 `,_jsx(`strong`,{children:`같은 터미널에서 별도의 명령으로`}),` 다음을 실행하세요.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -a`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/Applications/ChatGPT.app\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"DGRID_API_KEY=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DGRID_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`앱 이름이 `,_jsx(_components.code,{children:`Codex.app`}),`이면 실제 설치 경로로 바꾸세요.`]}),_jsx(_components.p,{children:`앱이 이미 실행 중이어서 환경 변수를 설정할 수 없다는 메시지가 나오면 Command + Q로 완전히 종료한 후 실행 명령을 다시 입력하세요.`}),_jsx(_components.p,{children:`키는 이번에 시작한 앱 프로세스에 전달됩니다. 새 터미널에서 다시 시작할 때는 숨겨진 키 입력과 실행 명령을 반복하세요. Dock에서 앱을 열면 이 터미널에만 설정한 변수가 전달되지 않습니다.`}),_jsx(Heading,{level:`3`,id:`4-프로젝트-선택-및-메시지-전송`,children:`4. 프로젝트 선택 및 메시지 전송`}),_jsx(_components.p,{children:`예제 폴더를 만드세요.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/dgrid-codex-demo\"`})]}),`\n`]})})}),_jsx(_components.p,{children:`데스크톱 앱에서 진행하세요.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(`strong`,{children:`Choose project`}),`를 클릭하고 홈 폴더의 `,_jsx(_components.code,{children:`dgrid-codex-demo`}),`를 선택하세요.`]}),`\n`,_jsx(_components.li,{children:`아래 프롬프트를 입력하세요.`}),`\n`,_jsx(_components.li,{children:`전송 화살표를 클릭하세요.`}),`\n`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Reply with exactly: DGrid connection successful`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Frame,{caption:`Codex에서 프로젝트 선택 후 연결 확인 프롬프트 전송 준비`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=7d33a94934394af2f6bc5d8261376af6`,alt:`Codex에서 프로젝트 선택 후 연결 확인 프롬프트 전송 준비`,\"data-og-width\":`2180`,width:`2180`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/integrations/codex/desktop-project.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=6f58624899ad937f6aac08ae6a35d540 280w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=25f8f8a0502eafdfef6ff6f383fb8958 560w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=1b7ba96fb89fc40afd5b9223b1a00da2 840w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=fc85307d8de0f695161ff9277792a096 1100w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=369c1d0f6305263348990f06e85578df 1650w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-project.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=8c3bd94068dd622f9856eb6510afd268 2500w`})}),_jsx(_components.p,{children:`예상 응답은 다음과 같습니다.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DGrid connection successful`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Frame,{caption:`모델 응답을 표시하는 Codex 데스크톱 앱`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=45a924ee655be767e92e4d697f414a74`,alt:`모델 응답을 표시하는 Codex 데스크톱 앱`,\"data-og-width\":`2180`,width:`2180`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/integrations/codex/desktop-success.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=9312ce9b0bdb3b5de542a4b92c1e14e2 280w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=2124dc9be0e0459f173df635e98a6465 560w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=7e0370be5438f6f1961a5593f90b5472 840w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=aee86d96f03ebc74bfc17df726e60588 1100w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=c051972da7548843eaa8f0d3000c0be7 1650w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/desktop-success.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=9bc6c2ff8097c9709a3629ccb1714213 2500w`})}),_jsxs(_components.p,{children:[`일부 버전은 `,_jsx(`strong`,{children:`Custom Medium`}),` 같은 이름을 표시합니다. 설정의 전체 모델 ID와 DGrid 요청 기록을 비교하여 실제 모델 및 경로를 확인하세요.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`dgrid에서-요청-확인`,children:`DGrid에서 요청 확인`}),`\n`,_jsxs(_components.p,{children:[`DGrid 요청 기록에서 요청 시간과 전체 모델 ID가 일치하는 항목을 찾으세요. 완료된 요청에는 `,_jsx(`strong`,{children:`Success`}),` 상태가 표시됩니다.`]}),`\n`,_jsx(Frame,{caption:`openai/gpt-6-sol과 Success가 표시된 DGrid 요청 기록. Key Name은 흐림 처리됨`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=d6561588795a3cb621f9c96eb8bf9bd1`,alt:`openai/gpt-6-sol과 Success가 표시된 DGrid 요청 기록. Key Name은 흐림 처리됨`,\"data-og-width\":`2170`,width:`2170`,\"data-og-height\":`725`,height:`725`,\"data-path\":`images/integrations/codex/dgrid-request-success-redacted.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=280\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=fece08bf19d314898524a2a706ae5241 280w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=560\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=55a2fa31422f381342c5fdfe75c6d331 560w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=840\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=542e5e1f79e8bb5a5ae63c6b16927b05 840w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=1100\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=b3418764832ec366aaa81c4e59dec10e 1100w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=1650\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=598c5d4edc1f4b518b7491d74a704d74 1650w, https://mintcdn.com/dgridai/QQLVyRrVjCz0-l8E/images/integrations/codex/dgrid-request-success-redacted.png?w=2500\u0026fit=max\u0026auto=format\u0026n=QQLVyRrVjCz0-l8E\u0026q=85\u0026s=819d7c6a6b6dff6d4fb2eb9d3aacbea4 2500w`})}),`\n`,_jsx(_components.p,{children:`개인정보 보호를 위해 Key Name을 흐림 처리했습니다. 토큰 수와 비용은 모델 및 Codex가 보내는 컨텍스트에 따라 달라집니다.`}),`\n`,_jsx(Heading,{level:`2`,id:`문제-해결`,children:`문제 해결`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`증상`}),_jsx(_components.th,{children:`확인 사항`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`codex: command not found`})}),_jsxs(_components.td,{children:[`설치가 완료되었는지 확인하세요. macOS에서는 현재 터미널에서 `,_jsx(_components.code,{children:`export PATH=\"$HOME/.local/bin:$PATH\"`}),`를 실행하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API 키를 찾을 수 없음`}),_jsxs(_components.td,{children:[`클라이언트를 시작하는 터미널에 키를 설정하세요. `,_jsx(_components.code,{children:`env_key`}),`는 변수 이름이며 값을 설정하지는 않습니다.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`앱이 이미 실행 중이어서 환경 변수 설정 실패`}),_jsx(_components.td,{children:`Command + Q로 완전히 종료한 다음 데스크톱 실행 명령을 다시 입력하세요.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Dock에서 연 뒤 로그인 또는 요청 실패`}),_jsxs(_components.td,{children:[`앱을 종료하고 터미널에서 키를 입력한 다음 `,_jsx(_components.code,{children:`--env`}),`로 시작하세요.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`인증 또는 모델 접근 오류`}),_jsx(_components.td,{children:`DGrid 키, 잔액, Responses 지원 및 전체 모델 ID를 확인하세요.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`공급자 설정이 무시됨`}),_jsxs(_components.td,{children:[`위의 사용자 수준 파일을 사용하세요. 프로젝트의 `,_jsx(_components.code,{children:`.codex/config.toml`}),`에서는 사용자 지정 공급자를 선택할 수 없습니다.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`기존 데스크톱 공급자로 복원`}),_jsx(_components.td,{children:`기존 모델, 공급자 및 인증 설정을 복원한 후 앱을 완전히 종료하고 다시 여세요.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/config-file/config-reference`,children:`Codex 설정 참고 문서`}),`에서 공급자 설정을 확인할 수 있습니다. 이 가이드는 연결 및 응답 수신을 다룹니다. 도구, 웹 검색 및 긴 에이전트 작업은 선택한 모델과 게이트웨이의 지원 범위에 따라 달라집니다.`]}),`\n`,_jsx(Heading,{level:`2`,id:`관련-자료`,children:`관련 자료`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ko/ai-gateway/integrations`,children:`통합 가이드 개요`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ko/ai-gateway/overview#%EB%B9%A0%EB%A5%B8-%EC%8B%9C%EC%9E%91`,children:`AI Gateway 빠른 시작`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://blog.dgrid.ai/posts/2026-03-23/`,children:`DGrid로 Codex CLI 사용하기`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"DGrid로 Codex 사용하기","sidebarTitle":"Codex","description":"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.","href":"/ko/ai-gateway/integrations/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"시작하기 전에","slug":"시작하기-전에","depth":2,"children":[]},{"title":"설정 방법 선택","slug":"설정-방법-선택","depth":2,"children":[{"title":"1. Node.js 및 Codex CLI 설치","slug":"1-node-js-및-codex-cli-설치","depth":3,"children":[],"tabId":"cli"},{"title":"2. DGrid 프로필 생성","slug":"2-dgrid-프로필-생성","depth":3,"children":[],"tabId":"cli"},{"title":"3. API 키 입력","slug":"3-api-키-입력","depth":3,"children":[],"tabId":"cli"},{"title":"4. Codex 시작 및 메시지 전송","slug":"4-codex-시작-및-메시지-전송","depth":3,"children":[],"tabId":"cli"},{"title":"1. 데스크톱 앱 설치","slug":"1-데스크톱-앱-설치","depth":3,"children":[],"tabId":"%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-macos"},{"title":"2. 기본 파일에 DGrid 설정","slug":"2-기본-파일에-dgrid-설정","depth":3,"children":[],"tabId":"%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-macos"},{"title":"3. 키 입력 및 앱 시작","slug":"3-키-입력-및-앱-시작","depth":3,"children":[],"tabId":"%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-macos"},{"title":"4. 프로젝트 선택 및 메시지 전송","slug":"4-프로젝트-선택-및-메시지-전송","depth":3,"children":[],"tabId":"%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-macos"}]},{"title":"DGrid에서 요청 확인","slug":"dgrid에서-요청-확인","depth":2,"children":[]},{"title":"문제 해결","slug":"문제-해결","depth":2,"children":[]},{"title":"관련 자료","slug":"관련-자료","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dgridai","siteName":"DGrid AI Docs","title":"DGrid로 Codex 사용하기 - DGrid AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/ai-gateway/integrations/codex","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/ai-gateway/integrations/codex","matchLevel":1},"ko":{"href":"/ko/ai-gateway/integrations/codex","matchLevel":0},"fr":{"href":"/fr/ai-gateway/integrations/codex","matchLevel":1},"es":{"href":"/es/ai-gateway/integrations/codex","matchLevel":1}}},"lastModified":"2026-10-23T06:55:56.780Z","originalFileLocation":"ko/ai-gateway/integrations/codex.mdx","locale":"ko"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"DGrid로 Codex 사용하기 - DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dgridai.mintlify.app/_mintlify/api/og/v2?division=%ED%86%B5%ED%95%A9+%EA%B0%80%EC%9D%B4%EB%93%9C\u0026amp;title=DGrid%EB%A1%9C+Codex+%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0\u0026amp;description=Codex+CLI+%EB%98%90%EB%8A%94+%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1+%EC%95%B1%EC%9D%B4+Responses+API%EB%A5%BC+%ED%86%B5%ED%95%B4+DGrid+AI+Gateway%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EB%8F%84%EB%A1%9D+%EC%84%A4%EC%A0%95%ED%95%A9%EB%8B%88%EB%8B%A4.\u0026amp;theme=a529b9f9a5638a188e68c5e8\u0026amp;signature=19ff6d41afaf0d2aa3223b6cdd0ba517325f9d8a715cc19786f05602779e25a8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"DGrid로 Codex 사용하기 - DGrid AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dgridai.mintlify.app/_mintlify/api/og/v2?division=%ED%86%B5%ED%95%A9+%EA%B0%80%EC%9D%B4%EB%93%9C\u0026amp;title=DGrid%EB%A1%9C+Codex+%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0\u0026amp;description=Codex+CLI+%EB%98%90%EB%8A%94+%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1+%EC%95%B1%EC%9D%B4+Responses+API%EB%A5%BC+%ED%86%B5%ED%95%B4+DGrid+AI+Gateway%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EB%8F%84%EB%A1%9D+%EC%84%A4%EC%A0%95%ED%95%A9%EB%8B%88%EB%8B%A4.\u0026amp;theme=a529b9f9a5638a188e68c5e8\u0026amp;signature=19ff6d41afaf0d2aa3223b6cdd0ba517325f9d8a715cc19786f05602779e25a8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dgridai/TU6mO6G1dAMh6LGG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#65A30D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ko/ai-gateway/integrations/codex.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dgrid.ai/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.dgrid.ai/zh-Hant/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.dgrid.ai/es/ai-gateway/integrations/codex\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dgrid.ai/ai-gateway/integrations/codex\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dgrid.ai/#organization\",\"name\":\"DGrid AI Docs\",\"url\":\"https://docs.dgrid.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dgridai/eFrQx07adP_MQw0i/logo/dgrid-horizontal-black.png?fit=max\u0026auto=format\u0026n=eFrQx07adP_MQw0i\u0026q=85\u0026s=aa7da302786ec058e3c91526a127736d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dgrid.ai#website\",\"name\":\"DGrid AI Docs\",\"url\":\"https://docs.dgrid.ai\",\"publisher\":{\"@id\":\"https://docs.dgrid.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex#webpage\",\"url\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\",\"name\":\"DGrid로 Codex 사용하기\",\"description\":\"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\",\"dateModified\":\"2026-10-23T06:55:56.780Z\",\"isPartOf\":{\"@id\":\"https://docs.dgrid.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI 게이트웨이\",\"item\":\"https://docs.dgrid.ai/ko/ai-gateway/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"통합 가이드\",\"item\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"DGrid로 Codex 사용하기\",\"item\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex#article\",\"headline\":\"DGrid로 Codex 사용하기\",\"name\":\"DGrid로 Codex 사용하기\",\"description\":\"Codex CLI 또는 데스크톱 앱이 Responses API를 통해 DGrid AI Gateway를 사용하도록 설정합니다.\",\"url\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dgrid.ai/ko/ai-gateway/integrations/codex#webpage\"},\"dateModified\":\"2026-10-23T06:55:56.780Z\",\"publisher\":{\"@id\":\"https://docs.dgrid.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dgrid.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DGrid AI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DGrid AI Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/ai-gateway/integrations/codex"}]},{"language":"zh-Hant","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"部落格"},{"href":"https://telegram.me/dgrid_ai","label":"支援"}],"primary":{"type":"button","label":"儀表板","href":"https://dgrid.ai/overview"}},"pages":[{"title":"zh-Hant","href":"/zh-Hant/ai-gateway/integrations/codex"}]},{"language":"ko","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"블로그"},{"href":"https://telegram.me/dgrid_ai","label":"지원"}],"primary":{"type":"button","label":"대시보드","href":"https://dgrid.ai/overview"}},"tabs":[{"tab":"문서","icon":"book-open","groups":[{"group":"시작하기","pages":[{"title":"DGrid AI 문서","sidebarTitle":"홈","mode":"wide","href":"/ko"},{"title":"빠른 시작","sidebarTitle":"빠른 시작","href":"/ko/quickstart"}]},{"group":"핵심 개념","pages":[{"title":"우리가 하는 일","sidebarTitle":"우리가 하는 일","href":"/ko/what-we-do"},{"title":"배경","sidebarTitle":"배경","href":"/ko/background"},{"title":"DGrid의 솔루션","sidebarTitle":"DGrid의 솔루션","href":"/ko/dgrid-solution"},{"title":"노드 운영자","sidebarTitle":"노드 운영자","href":"/ko/node-operators"}]},{"group":"AI 게이트웨이","pages":[{"title":"AI Gateway","sidebarTitle":"개요","href":"/ko/ai-gateway/overview"},{"title":"DGrid Credit Code 교환하기","sidebarTitle":"Credit Code 교환","href":"/ko/ai-gateway/redeem-credit-code"},{"title":"자동 충전","sidebarTitle":"자동 충전","href":"/ko/ai-gateway/auto-deposit"},{"title":"알림 설정","sidebarTitle":"알림 설정","href":"/ko/ai-gateway/notifications"},{"title":"무료 모델 라우터","sidebarTitle":"무료 모델 라우터","href":"/ko/ai-gateway/free-models-router"},{"group":"통합 가이드","pages":[{"title":"통합 가이드","sidebarTitle":"개요","href":"/ko/ai-gateway/integrations"},{"title":"DGrid로 Cursor 사용하기","sidebarTitle":"Cursor","href":"/ko/ai-gateway/integrations/cursor"},{"title":"DGrid로 Claude Code 사용하기","sidebarTitle":"Claude Code","description":"Claude Code CLI 또는 데스크톱 앱의 Code 탭을 DGrid AI Gateway에 연결하고 첫 응답을 확인합니다.","href":"/ko/ai-gateway/integrations/claude-code"},{"title":"DGrid로 Codex 사용하기","sidebarTitle":"Codex","href":"/ko/ai-gateway/integrations/codex"},{"title":"DGrid로 OpenClaw 사용하기","sidebarTitle":"OpenClaw","description":"OpenClaw를 설치하고 DGrid를 사용자 지정 공급자로 설정한 다음 대시보드에서 첫 메시지를 보냅니다.","href":"/ko/ai-gateway/integrations/openclaw"},{"title":"DGrid로 Hermes Agent 사용하기","sidebarTitle":"Hermes Agent","href":"/ko/ai-gateway/integrations/hermes-agent"},{"title":"DGrid로 Vercel AI SDK 사용하기","sidebarTitle":"Vercel AI SDK","href":"/ko/ai-gateway/integrations/vercel-ai-sdk"}]},{"title":"지원 국가 및 지역","sidebarTitle":"지원 국가 및 지역","href":"/ko/ai-gateway/supported-regions"}]},{"group":"AI 아레나","pages":[{"title":"AI Arena","sidebarTitle":"개요","href":"/ko/ai-arena/overview"},{"title":"Arena for Agent","sidebarTitle":"Arena for Agent","href":"/ko/ai-arena/arena-for-agent"}]},{"group":"생태계","pages":[{"title":"Dori Find Models","sidebarTitle":"Dori Find Models","href":"/ko/dori"},{"title":"DClaw","sidebarTitle":"DClaw","href":"/ko/dclaw"}]},{"group":"$DGAI 토큰","pages":[{"title":"$DGAI란 무엇인가요?","sidebarTitle":"$DGAI란 무엇인가요?","href":"/ko/what-is-dgai"},{"title":"핵심 기능","sidebarTitle":"핵심 기능","href":"/ko/core-functions"},{"title":"순환 메커니즘","sidebarTitle":"순환 메커니즘","href":"/ko/circulation-mechanism"},{"title":"토큰 분배","sidebarTitle":"토큰 분배","href":"/ko/token-distribution"}]},{"group":"GENESIS PREMIUM","pages":[{"title":"프로그램 개요","sidebarTitle":"프로그램 개요","href":"/ko/premium/program-overview"},{"title":"독점 혜택","sidebarTitle":"독점 혜택","href":"/ko/premium/exclusive-benefits"},{"title":"구매 및 활성화","sidebarTitle":"구매 및 활성화","href":"/ko/premium/purchase-and-activation"},{"title":"인센티브 메커니즘 및 보상","sidebarTitle":"인센티브 및 보상","href":"/ko/premium/incentive-mechanism-and-rewards"},{"title":"컴플라이언스 및 규제","sidebarTitle":"컴플라이언스","href":"/ko/premium/compliance-and-regulatory"},{"title":"법적 고지","sidebarTitle":"법적 고지","href":"/ko/premium/legal-disclaimer"}]},{"group":"리소스","pages":[{"title":"로드맵","sidebarTitle":"로드맵","href":"/ko/roadmap"},{"title":"학술 연구","sidebarTitle":"학술 연구","href":"/ko/academic-research"},{"title":"이용약관","sidebarTitle":"이용약관","href":"/ko/ai-gateway/terms-of-service"}]}]},{"tab":"API 참조","icon":"code","pages":[{"title":"API 참조","href":"/ko/api-reference/introduction"}]}]},{"language":"fr","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Assistance"}],"primary":{"type":"button","label":"Tableau de bord","href":"https://dgrid.ai/overview"}},"pages":[{"title":"fr","href":"/fr/ai-gateway/integrations/codex"}]},{"language":"es","navbar":{"links":[{"href":"https://blog.dgrid.ai/","label":"Blog"},{"href":"https://telegram.me/dgrid_ai","label":"Soporte"}],"primary":{"type":"button","label":"Panel","href":"https://dgrid.ai/overview"}},"pages":[{"title":"es","href":"/es/ai-gateway/integrations/codex"}]}]},"title":"DGrid로 Codex 사용하기 - DGrid AI Docs","buildId":"dpl_5UDDZ9hnigTkoV7QtvQ39eUp84nu","deploymentId":"dpl_5UDDZ9hnigTkoV7QtvQ39eUp84nu","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CUTvSGqu.js","DynamicMarkdown-BGu84FgU.js","zoom-image-lightbox-ChyC7Hte.js","PlusIcon-DXkY3IBj.js","lightbox-handle-r17bVUz3.js"]}