Configurez Codex CLI ou l’application de bureau pour utiliser DGrid AI Gateway via l’API Responses.
Utilisez une DGrid Model API Key pour les requêtes aux modèles. Une Management API Key est une clé d’administration et ne convient pas à ce tutoriel. Vérifiez les crédits disponibles et l’accès au modèle choisi.
Connectez Codex CLI ou Codex dans l’application de bureau à DGrid avec votre clé API, l’URL de base Responses et l’ID complet du modèle.Le téléchargement actuel est l’application ChatGPT qui inclut Codex. Certaines installations conservent le nom Codex. Téléchargez l’application depuis la page officielle.Ce guide utilise openai/gpt-6-sol. Les captures et le parcours de bureau concernent macOS ; l’installation et la CLI sous Windows sont aussi décrites.
Un compte DGrid avec des crédits et l’accès à un modèle compatible avec l’API Responses.
Une clé API DGrid : connectez-vous et créez ou copiez une clé depuis API Keys.
Pour l’installation avec npm, prévoyez Node.js et npm. La méthode de bureau est indépendante de la CLI.
Ne montrez pas la clé complète dans les captures ou fichiers partagés. Conservez l’ID complet, préfixe openai/ inclus.
Si Codex signale une erreur de métadonnées ou de catalogue, demandez à DGrid les paramètres adaptés à votre version. Les alias personnalisés peuvent nécessiter des métadonnées correspondantes. N’inventez pas d’URL de catalogue. Voir le guide officiel de configuration de passerelle.
L’application lit sa configuration principale au démarrage.
Le profil CLI sélectionne DGrid uniquement pour les exécutions lancées avec ce profil. Modifier le fichier principal change le fournisseur par défaut des clients qui le lisent. Si vous utilisez votre environnement actuel au quotidien, suivez le parcours de bureau sur un autre ordinateur.Les deux méthodes utilisent ces paramètres :
Si nécessaire, installez la version LTS actuelle depuis la page Node.js. Exécutez l’installateur macOS ou Windows ; les installateurs standard incluent npm.Ouvrez Terminal sur macOS ou PowerShell sur Windows et vérifiez :
La commande PATH ne vaut que pour ce terminal. Relancez-la dans les nouveaux terminaux ou ajoutez le répertoire à la configuration PATH du shell.Windows PowerShell :
npm install -g @openai/codexcodex --version
Si PowerShell bloque npm.ps1, remplacez npm par npm.cmd.Les captures utilisent codex-cli 0.163.0. Le format de profil séparé ci-dessous s’applique à Codex 0.134.0 et versions ultérieures ; voir les profils de configuration.
Si le profil existe, modifiez les paramètres concernés. Enregistrez en texte brut avec des guillemets droits. env_key désigne le nom de variable : conservez DGRID_API_KEY.
Installation de Codex CLI et création d'un profil DGrid distinct dans Terminal
Utilisez le terminal depuis lequel vous lancerez Codex.Terminal macOS avec Zsh :
export DGRID_API_KEYread -rs "DGRID_API_KEY?Paste your DGrid API key (hidden): "
Collez la clé à l’invite et appuyez sur Entrée. Aucun caractère n’apparaît. Attendez le retour de l’invite avant la commande suivante.Windows PowerShell : exécutez la première ligne, saisissez la clé à l’invite masquée, puis exécutez les lignes restantes.
$dgridSecureKey = Read-Host "Paste your DGrid API key (hidden)" -AsSecureString$env:DGRID_API_KEY = [System.Net.NetworkCredential]::new("", $dgridSecureKey).PasswordRemove-Variable dgridSecureKey
La clé est définie pour cette session du terminal. Ressaisissez-la dans un nouveau terminal.
Si Codex demande si le dossier est fiable, confirmez pour le dossier de démonstration créé. Vérifiez le modèle openai/gpt-6-sol. Vous pouvez aussi consulter la session avec /status.Envoyez :
Reply with exactly: DGrid connection successful
La réponse attendue est :
DGrid connection successful
Réponse affichée dans Codex CLI avec le modèle DGrid sélectionné
Le message Running without the shared background server: --profile requires embedded mode. décrit le mode d’exécution du profil. Appuyez sur F2 pour le consulter et Échap pour le fermer, puis continuez. Certains claviers Mac utilisent Fn + F2.
macOS : ouvrez l’installateur téléchargé, glissez l’application dans Applications et ouvrez-la.
Windows : lancez l’installateur téléchargé et suivez les instructions.
Choisissez l’application actuelle qui inclut Codex. Le parcours ci-dessous utilise macOS et le chemin /Applications/ChatGPT.app.Pour utiliser vos identifiants DGrid, configurez le fournisseur et l’environnement de lancement ci-dessous. Le champ initial OpenAI API key ne définit pas l’URL de base DGrid.
Dans un fichier existant, modifiez les clés de premier niveau et placez-les avant le premier en-tête de table ([section]). Ajoutez la table DGrid à la fin ou modifiez-la si elle existe. Conservez les autres paramètres sans dupliquer les clés ou tables. Utilisez du texte brut et des guillemets droits.L’application lit ce fichier principal. Un profil CLI seul n’active pas DGrid dans l’application. Sous Windows, utilisez %USERPROFILE%\.codex\config.toml. Voir le guide officiel de configuration de passerelle.
export DGRID_API_KEYread -rs "DGRID_API_KEY?Paste your DGrid API key (hidden): "
Collez la clé DGrid et appuyez sur Entrée. Au retour de l’invite, exécutez ceci comme commande séparée dans le même terminal :
open -a "/Applications/ChatGPT.app" --env "DGRID_API_KEY=$DGRID_API_KEY"
Si l’application se nomme Codex.app, utilisez son chemin réel.Si Terminal indique que l’application est déjà active et que les variables ne peuvent pas être définies, quittez-la avec Command + Q et relancez la commande.La clé est transmise au processus lancé. Pour un prochain lancement depuis un nouveau terminal, répétez la saisie masquée et la commande. Ouvrir l’application depuis le Dock ne transmet pas une variable définie uniquement dans ce terminal.
Cliquez sur Choose project et sélectionnez dgrid-codex-demo dans votre dossier personnel.
Saisissez le prompt ci-dessous.
Cliquez sur la flèche d’envoi.
Reply with exactly: DGrid connection successful
Projet sélectionné et prompt de connexion prêt à être envoyé dans Codex
La réponse attendue est :
DGrid connection successful
Réponse du modèle dans l'application Codex
Certaines versions affichent un libellé comme Custom Medium. Vérifiez l’ID complet dans la configuration et la requête DGrid correspondante pour confirmer le modèle et le routage.
Vérifiez l’installation. Sur macOS, exécutez export PATH="$HOME/.local/bin:$PATH" dans le terminal actuel.
Clé API manquante
Définissez la clé dans le terminal qui lance le client. env_key nomme une variable, sans en définir la valeur.
Application déjà active ; variables non définies
Quittez avec Command + Q, puis répétez la commande de lancement.
Échec de connexion ou de requête après ouverture depuis le Dock
Quittez l’application, saisissez la clé dans Terminal et lancez avec --env.
Erreur d’authentification ou d’accès au modèle
Vérifiez la clé DGrid, les crédits, la prise en charge de Responses et l’ID complet du modèle.
Paramètres du fournisseur ignorés
Utilisez les fichiers utilisateur ci-dessus. Le fichier .codex/config.toml du projet ne peut pas sélectionner de fournisseur personnalisé.
Revenir au fournisseur de bureau précédent
Restaurez les paramètres de modèle, de fournisseur et d’authentification, puis quittez et rouvrez l’application.
La référence de configuration Codex décrit les paramètres des fournisseurs. Ce guide couvre la connexion et la réception d’une réponse. Les outils, la recherche web et les tâches longues dépendent du modèle et de la passerelle.
{"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":"fr/ai-gateway/integrations/codex","slug":"/fr/ai-gateway/integrations/codex","pageMetadata":{"title":"Utiliser Codex avec DGrid","sidebarTitle":"Codex","description":"Configurez Codex CLI ou l'application de bureau pour utiliser DGrid AI Gateway via l'API Responses.","href":"/fr/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: \"Configurez Codex CLI ou l’application de bureau pour utiliser DGrid AI Gateway via l’API Responses.\"\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`,strong:`strong`,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:`Utilisez une DGrid Model API Key pour les requêtes aux modèles. Une Management API Key est une clé d’administration et ne convient pas à ce tutoriel. Vérifiez les crédits disponibles et l’accès au modèle choisi.`})}),`\n`,_jsxs(_components.p,{children:[`Connectez `,_jsx(_components.strong,{children:`Codex CLI`}),` ou `,_jsx(_components.strong,{children:`Codex dans l’application de bureau`}),` à DGrid avec votre clé API, l’URL de base Responses et l’ID complet du modèle.`]}),`\n`,_jsxs(_components.p,{children:[`Le téléchargement actuel est l’`,_jsx(_components.strong,{children:`application ChatGPT qui inclut Codex`}),`. Certaines installations conservent le nom Codex. Téléchargez l’application depuis la `,_jsx(_components.a,{href:`https://chatgpt.com/download/`,children:`page officielle`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Ce guide utilise `,_jsx(_components.code,{children:`openai/gpt-6-sol`}),`. Les captures et le parcours de bureau concernent macOS ; l’installation et la CLI sous Windows sont aussi décrites.`]}),`\n`,_jsx(Heading,{level:`2`,id:`avant-de-commencer`,children:`Avant de commencer`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Un `,_jsx(_components.a,{href:`https://dgrid.ai/`,children:`compte DGrid`}),` avec des crédits et l’accès à un modèle compatible avec l’API Responses.`]}),`\n`,_jsxs(_components.li,{children:[`Une clé API DGrid : connectez-vous et créez ou copiez une clé depuis `,_jsx(_components.a,{href:`https://dgrid.ai/api-keys`,children:`API Keys`}),`.`]}),`\n`,_jsx(_components.li,{children:`Pour l’installation avec npm, prévoyez Node.js et npm. La méthode de bureau est indépendante de la CLI.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Ne montrez pas la clé complète dans les captures ou fichiers partagés. Conservez l’ID complet, préfixe `,_jsx(_components.code,{children:`openai/`}),` inclus.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Si Codex signale une erreur de métadonnées ou de catalogue, demandez à DGrid les paramètres adaptés à votre version. Les alias personnalisés peuvent nécessiter des métadonnées correspondantes. N’inventez pas d’URL de catalogue. Voir le `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/enterprise/connect-to-a-gateway`,children:`guide officiel de configuration de passerelle`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`choisir-votre-méthode`,children:`Choisir votre méthode`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Méthode`}),_jsx(_components.th,{children:`Configuration`}),_jsx(_components.th,{children:`Activation`})]})}),_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:[`Exécutez `,_jsx(_components.code,{children:`codex --profile dgrid`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Application de bureau macOS`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`~/.codex/config.toml`})}),_jsx(_components.td,{children:`L’application lit sa configuration principale au démarrage.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Le profil CLI sélectionne DGrid uniquement pour les exécutions lancées avec ce profil. Modifier le fichier principal change le fournisseur par défaut des clients qui le lisent. Si vous utilisez votre environnement actuel au quotidien, suivez le parcours de bureau sur un autre ordinateur.`}),`\n`,_jsx(_components.p,{children:`Les deux méthodes utilisent ces paramètres :`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Paramètre`}),_jsx(_components.th,{children:`Valeur`})]})}),_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:`Format de l’API`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`responses`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Variable d’environnement de la clé`}),_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-installer-node-js-et-codex-cli\",\"2-cr%C3%A9er-un-profil-dgrid\",\"3-saisir-la-cl%C3%A9-api\",\"4-lancer-codex-et-envoyer-un-message\"]`,children:[_jsx(Heading,{level:`3`,id:`1-installer-node-js-et-codex-cli`,children:`1. Installer Node.js et Codex CLI`}),_jsxs(_components.p,{children:[`Si nécessaire, installez la version LTS actuelle depuis la `,_jsx(_components.a,{href:`https://nodejs.org/en/download`,children:`page Node.js`}),`. Exécutez l’installateur macOS ou Windows ; les installateurs standard incluent npm.`]}),_jsx(_components.p,{children:`Ouvrez Terminal sur macOS ou PowerShell sur Windows et vérifiez :`}),_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:[`Suivez la `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/codex/cli`,children:`méthode officielle d’installation de Codex avec npm`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`macOS :`}),` installez dans votre répertoire utilisateur.`]}),_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:`La commande PATH ne vaut que pour ce terminal. Relancez-la dans les nouveaux terminaux ou ajoutez le répertoire à la configuration PATH du shell.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Windows PowerShell :`})}),_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:[`Si PowerShell bloque `,_jsx(_components.code,{children:`npm.ps1`}),`, remplacez `,_jsx(_components.code,{children:`npm`}),` par `,_jsx(_components.code,{children:`npm.cmd`}),`.`]}),_jsxs(_components.p,{children:[`Les captures utilisent `,_jsx(_components.code,{children:`codex-cli 0.163.0`}),`. Le format de profil séparé ci-dessous s’applique à Codex `,_jsx(_components.code,{children:`0.134.0`}),` et versions ultérieures ; voir les `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/config-file/config-advanced#profiles`,children:`profils de configuration`}),`.`]}),_jsx(Heading,{level:`3`,id:`2-créer-un-profil-dgrid`,children:`2. Créer un profil DGrid`}),_jsxs(_components.p,{children:[`Créez `,_jsx(_components.code,{children:`~/.codex/dgrid.config.toml`}),` sur macOS ou `,_jsx(_components.code,{children:`%USERPROFILE%\\\\.codex\\\\dgrid.config.toml`}),` sur Windows. Collez ce contenu :`]}),_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:`Sur macOS, créez et ouvrez le fichier ainsi :`}),_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:[`Si le profil existe, modifiez les paramètres concernés. Enregistrez en texte brut avec des guillemets droits. `,_jsx(_components.code,{children:`env_key`}),` désigne le nom de variable : conservez `,_jsx(_components.code,{children:`DGRID_API_KEY`}),`.`]}),_jsx(Frame,{caption:`Installation de Codex CLI et création d'un profil DGrid distinct dans Terminal`,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:`Installation de Codex CLI et création d'un profil DGrid distinct dans Terminal`,\"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-saisir-la-clé-api`,children:`3. Saisir la clé API`}),_jsx(_components.p,{children:`Utilisez le terminal depuis lequel vous lancerez Codex.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Terminal macOS avec 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`]})})}),_jsx(_components.p,{children:`Collez la clé à l’invite et appuyez sur Entrée. Aucun caractère n’apparaît. Attendez le retour de l’invite avant la commande suivante.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Windows PowerShell :`}),` exécutez la première ligne, saisissez la clé à l’invite masquée, puis exécutez les lignes restantes.`]}),_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:`La clé est définie pour cette session du terminal. Ressaisissez-la dans un nouveau terminal.`}),_jsx(Heading,{level:`3`,id:`4-lancer-codex-et-envoyer-un-message`,children:`4. Lancer Codex et envoyer un message`}),_jsx(_components.p,{children:`Sur 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:`Dans 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:[`Si Codex demande si le dossier est fiable, confirmez pour le dossier de démonstration créé. Vérifiez le modèle `,_jsx(_components.code,{children:`openai/gpt-6-sol`}),`. Vous pouvez aussi consulter la session avec `,_jsx(_components.code,{children:`/status`}),`.`]}),_jsx(_components.p,{children:`Envoyez :`}),_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:`La réponse attendue est :`}),_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:`Réponse affichée dans Codex CLI avec le modèle DGrid sélectionné`,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:`Réponse affichée dans Codex CLI avec le modèle DGrid sélectionné`,\"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:[`Le message `,_jsx(_components.code,{children:`Running without the shared background server: --profile requires embedded mode.`}),` décrit le mode d’exécution du profil. Appuyez sur F2 pour le consulter et Échap pour le fermer, puis continuez. Certains claviers Mac utilisent Fn + F2.`]})]}),_jsxs(Tab,{title:`Application de bureau (macOS)`,id:`application-de-bureau-macos`,\"data-child-heading-ids\":`[\"1-installer-l%E2%80%99application-de-bureau\",\"2-configurer-dgrid-dans-le-fichier-principal\",\"3-saisir-la-cl%C3%A9-et-lancer-l%E2%80%99application\",\"4-choisir-un-projet-et-envoyer-un-message\"]`,children:[_jsx(Heading,{level:`3`,id:`1-installer-l’application-de-bureau`,children:`1. Installer l’application de bureau`}),_jsxs(_components.p,{children:[`Ouvrez la `,_jsx(_components.a,{href:`https://chatgpt.com/download/`,children:`page officielle de téléchargement`}),` et choisissez votre système.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`macOS :`}),` ouvrez l’installateur téléchargé, glissez l’application dans Applications et ouvrez-la.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Windows :`}),` lancez l’installateur téléchargé et suivez les instructions.`]}),`\n`]}),_jsxs(_components.p,{children:[`Choisissez l’application actuelle qui inclut Codex. Le parcours ci-dessous utilise macOS et le chemin `,_jsx(_components.code,{children:`/Applications/ChatGPT.app`}),`.`]}),_jsxs(_components.p,{children:[`Pour utiliser vos identifiants DGrid, configurez le fournisseur et l’environnement de lancement ci-dessous. Le champ initial `,_jsx(_components.code,{children:`OpenAI API key`}),` ne définit pas l’URL de base DGrid.`]}),_jsx(Heading,{level:`3`,id:`2-configurer-dgrid-dans-le-fichier-principal`,children:`2. Configurer DGrid dans le fichier principal`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Quittez complètement l’application avec Command + Q.`}),` Fermer la fenêtre peut la laisser active.`]}),_jsx(_components.p,{children:`Dans Terminal sur macOS, exécutez :`}),_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:[`Utilisez ces paramètres dans `,_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:[`Dans un fichier existant, modifiez les clés de premier niveau et placez-les `,_jsx(_components.strong,{children:`avant le premier en-tête de table`}),` (`,_jsx(_components.code,{children:`[section]`}),`). Ajoutez la table DGrid à la fin ou modifiez-la si elle existe. Conservez les autres paramètres sans dupliquer les clés ou tables. Utilisez du texte brut et des guillemets droits.`]}),_jsxs(_components.p,{children:[`L’application lit ce fichier principal. Un profil CLI seul n’active pas DGrid dans l’application. Sous Windows, utilisez `,_jsx(_components.code,{children:`%USERPROFILE%\\\\.codex\\\\config.toml`}),`. Voir le `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/enterprise/connect-to-a-gateway`,children:`guide officiel de configuration de passerelle`}),`.`]}),_jsx(Heading,{level:`3`,id:`3-saisir-la-clé-et-lancer-l’application`,children:`3. Saisir la clé et lancer l’application`}),_jsx(_components.p,{children:`Dans Terminal macOS avec 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:[`Collez la clé DGrid et appuyez sur Entrée. Au retour de l’invite, exécutez ceci `,_jsx(_components.strong,{children:`comme commande séparée dans le même terminal`}),` :`]}),_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:[`Si l’application se nomme `,_jsx(_components.code,{children:`Codex.app`}),`, utilisez son chemin réel.`]}),_jsx(_components.p,{children:`Si Terminal indique que l’application est déjà active et que les variables ne peuvent pas être définies, quittez-la avec Command + Q et relancez la commande.`}),_jsx(_components.p,{children:`La clé est transmise au processus lancé. Pour un prochain lancement depuis un nouveau terminal, répétez la saisie masquée et la commande. Ouvrir l’application depuis le Dock ne transmet pas une variable définie uniquement dans ce terminal.`}),_jsx(Heading,{level:`3`,id:`4-choisir-un-projet-et-envoyer-un-message`,children:`4. Choisir un projet et envoyer un message`}),_jsx(_components.p,{children:`Créez un dossier de démonstration :`}),_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:`Dans l’application de bureau :`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Cliquez sur `,_jsx(_components.strong,{children:`Choose project`}),` et sélectionnez `,_jsx(_components.code,{children:`dgrid-codex-demo`}),` dans votre dossier personnel.`]}),`\n`,_jsx(_components.li,{children:`Saisissez le prompt ci-dessous.`}),`\n`,_jsx(_components.li,{children:`Cliquez sur la flèche d’envoi.`}),`\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:`Projet sélectionné et prompt de connexion prêt à être envoyé dans 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:`Projet sélectionné et prompt de connexion prêt à être envoyé dans 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:`La réponse attendue est :`}),_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:`Réponse du modèle dans l'application 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:`Réponse du modèle dans l'application 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:[`Certaines versions affichent un libellé comme `,_jsx(_components.strong,{children:`Custom Medium`}),`. Vérifiez l’ID complet dans la configuration et la requête DGrid correspondante pour confirmer le modèle et le routage.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`vérifier-la-requête-dans-dgrid`,children:`Vérifier la requête dans DGrid`}),`\n`,_jsxs(_components.p,{children:[`Dans l’historique DGrid, retrouvez l’heure et l’ID complet du modèle. Une requête terminée affiche `,_jsx(_components.strong,{children:`Success`}),`.`]}),`\n`,_jsx(Frame,{caption:`Historique DGrid avec openai/gpt-6-sol et Success ; Key Name est flouté`,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:`Historique DGrid avec openai/gpt-6-sol et Success ; Key Name est flouté`,\"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 est flouté pour préserver la confidentialité. Les tokens et les coûts varient selon le modèle et le contexte envoyé par Codex.`}),`\n`,_jsx(Heading,{level:`2`,id:`dépannage`,children:`Dépannage`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Symptôme`}),_jsx(_components.th,{children:`Points à vérifier`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`codex: command not found`})}),_jsxs(_components.td,{children:[`Vérifiez l’installation. Sur macOS, exécutez `,_jsx(_components.code,{children:`export PATH=\"$HOME/.local/bin:$PATH\"`}),` dans le terminal actuel.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Clé API manquante`}),_jsxs(_components.td,{children:[`Définissez la clé dans le terminal qui lance le client. `,_jsx(_components.code,{children:`env_key`}),` nomme une variable, sans en définir la valeur.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Application déjà active ; variables non définies`}),_jsx(_components.td,{children:`Quittez avec Command + Q, puis répétez la commande de lancement.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Échec de connexion ou de requête après ouverture depuis le Dock`}),_jsxs(_components.td,{children:[`Quittez l’application, saisissez la clé dans Terminal et lancez avec `,_jsx(_components.code,{children:`--env`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Erreur d’authentification ou d’accès au modèle`}),_jsx(_components.td,{children:`Vérifiez la clé DGrid, les crédits, la prise en charge de Responses et l’ID complet du modèle.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Paramètres du fournisseur ignorés`}),_jsxs(_components.td,{children:[`Utilisez les fichiers utilisateur ci-dessus. Le fichier `,_jsx(_components.code,{children:`.codex/config.toml`}),` du projet ne peut pas sélectionner de fournisseur personnalisé.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Revenir au fournisseur de bureau précédent`}),_jsx(_components.td,{children:`Restaurez les paramètres de modèle, de fournisseur et d’authentification, puis quittez et rouvrez l’application.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`La `,_jsx(_components.a,{href:`https://learn.chatgpt.com/docs/config-file/config-reference`,children:`référence de configuration Codex`}),` décrit les paramètres des fournisseurs. Ce guide couvre la connexion et la réception d’une réponse. Les outils, la recherche web et les tâches longues dépendent du modèle et de la passerelle.`]}),`\n`,_jsx(Heading,{level:`2`,id:`ressources-connexes`,children:`Ressources connexes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/fr/ai-gateway/integrations`,children:`Vue d’ensemble des tutoriels d’intégration`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/fr/ai-gateway/overview#d%C3%A9marrage-rapide`,children:`Démarrage rapide AI Gateway`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://blog.dgrid.ai/posts/2026-03-23/`,children:`Utiliser Codex CLI avec DGrid`})}),`\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":"Utiliser Codex avec DGrid","sidebarTitle":"Codex","description":"Configurez Codex CLI ou l'application de bureau pour utiliser DGrid AI Gateway via l'API Responses.","href":"/fr/ai-gateway/integrations/codex"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Avant de commencer","slug":"avant-de-commencer","depth":2,"children":[]},{"title":"Choisir votre méthode","slug":"choisir-votre-méthode","depth":2,"children":[{"title":"1. Installer Node.js et Codex CLI","slug":"1-installer-node-js-et-codex-cli","depth":3,"children":[],"tabId":"cli"},{"title":"2. Créer un profil DGrid","slug":"2-créer-un-profil-dgrid","depth":3,"children":[],"tabId":"cli"},{"title":"3. Saisir la clé API","slug":"3-saisir-la-clé-api","depth":3,"children":[],"tabId":"cli"},{"title":"4. Lancer Codex et envoyer un message","slug":"4-lancer-codex-et-envoyer-un-message","depth":3,"children":[],"tabId":"cli"},{"title":"1. Installer l’application de bureau","slug":"1-installer-l’application-de-bureau","depth":3,"children":[],"tabId":"application-de-bureau-macos"},{"title":"2. Configurer DGrid dans le fichier principal","slug":"2-configurer-dgrid-dans-le-fichier-principal","depth":3,"children":[],"tabId":"application-de-bureau-macos"},{"title":"3. Saisir la clé et lancer l’application","slug":"3-saisir-la-clé-et-lancer-l’application","depth":3,"children":[],"tabId":"application-de-bureau-macos"},{"title":"4. Choisir un projet et envoyer un message","slug":"4-choisir-un-projet-et-envoyer-un-message","depth":3,"children":[],"tabId":"application-de-bureau-macos"}]},{"title":"Vérifier la requête dans DGrid","slug":"vérifier-la-requête-dans-dgrid","depth":2,"children":[]},{"title":"Dépannage","slug":"dépannage","depth":2,"children":[]},{"title":"Ressources connexes","slug":"ressources-connexes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dgridai","siteName":"DGrid AI Docs","title":"Utiliser Codex avec DGrid - 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":1},"fr":{"href":"/fr/ai-gateway/integrations/codex","matchLevel":0},"es":{"href":"/es/ai-gateway/integrations/codex","matchLevel":1}}},"lastModified":"2026-10-23T06:55:57.613Z","originalFileLocation":"fr/ai-gateway/integrations/codex.mdx","locale":"fr"},"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=\"Configurez Codex CLI ou l\u0026#x27;application de bureau pour utiliser DGrid AI Gateway via l\u0026#x27;API Responses.\">\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=\"Utiliser Codex avec DGrid - DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configurez Codex CLI ou l\u0026#x27;application de bureau pour utiliser DGrid AI Gateway via l\u0026#x27;API Responses.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DGrid AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dgrid.ai/fr/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=Tutoriels+d%27int%C3%A9gration\u0026amp;title=Utiliser+Codex+avec+DGrid\u0026amp;description=Configurez+Codex+CLI+ou+l%27application+de+bureau+pour+utiliser+DGrid+AI+Gateway+via+l%27API+Responses.\u0026amp;theme=a529b9f9a5638a188e68c5e8\u0026amp;signature=605d90b5cb136b8491ef0b02c345a878fae643345a00ed7878a4c9b5d3045aa1\">\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=\"Utiliser Codex avec DGrid - DGrid AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configurez Codex CLI ou l\u0026#x27;application de bureau pour utiliser DGrid AI Gateway via l\u0026#x27;API Responses.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dgridai.mintlify.app/_mintlify/api/og/v2?division=Tutoriels+d%27int%C3%A9gration\u0026amp;title=Utiliser+Codex+avec+DGrid\u0026amp;description=Configurez+Codex+CLI+ou+l%27application+de+bureau+pour+utiliser+DGrid+AI+Gateway+via+l%27API+Responses.\u0026amp;theme=a529b9f9a5638a188e68c5e8\u0026amp;signature=605d90b5cb136b8491ef0b02c345a878fae643345a00ed7878a4c9b5d3045aa1\">\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/fr/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=\"/fr/ai-gateway/integrations/codex.md\">\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=\"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=\"ko\" href=\"https://docs.dgrid.ai/ko/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/fr/ai-gateway/integrations/codex#webpage\",\"url\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex\",\"name\":\"Utiliser Codex avec DGrid\",\"description\":\"Configurez Codex CLI ou l'application de bureau pour utiliser DGrid AI Gateway via l'API Responses.\",\"dateModified\":\"2026-10-23T06:55:57.613Z\",\"isPartOf\":{\"@id\":\"https://docs.dgrid.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PASSERELLE IA\",\"item\":\"https://docs.dgrid.ai/fr/ai-gateway/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutoriels d'intégration\",\"item\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Utiliser Codex avec DGrid\",\"item\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex#article\",\"headline\":\"Utiliser Codex avec DGrid\",\"name\":\"Utiliser Codex avec DGrid\",\"description\":\"Configurez Codex CLI ou l'application de bureau pour utiliser DGrid AI Gateway via l'API Responses.\",\"url\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dgrid.ai/fr/ai-gateway/integrations/codex#webpage\"},\"dateModified\":\"2026-10-23T06:55:57.613Z\",\"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"}},"pages":[{"title":"ko","href":"/ko/ai-gateway/integrations/codex"}]},{"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"}},"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"PRISE EN MAIN","pages":[{"title":"Documentation DGrid AI","sidebarTitle":"Accueil","mode":"wide","href":"/fr"},{"title":"Démarrage rapide","sidebarTitle":"Démarrage rapide","href":"/fr/quickstart"}]},{"group":"CONCEPTS CLÉS","pages":[{"title":"Ce que nous faisons","sidebarTitle":"Ce que nous faisons","href":"/fr/what-we-do"},{"title":"Contexte","sidebarTitle":"Contexte","href":"/fr/background"},{"title":"La solution de DGrid","sidebarTitle":"La solution de DGrid","href":"/fr/dgrid-solution"},{"title":"Opérateurs de nœuds","sidebarTitle":"Opérateurs de nœuds","href":"/fr/node-operators"}]},{"group":"PASSERELLE IA","pages":[{"title":"AI Gateway","sidebarTitle":"Aperçu","href":"/fr/ai-gateway/overview"},{"title":"Utiliser un code de crédit","sidebarTitle":"Utiliser un code de crédit","href":"/fr/ai-gateway/redeem-credit-code"},{"title":"Rechargement automatique","sidebarTitle":"Rechargement automatique","href":"/fr/ai-gateway/auto-deposit"},{"title":"Notifications","sidebarTitle":"Notifications","href":"/fr/ai-gateway/notifications"},{"title":"Routeur de modèles gratuits","sidebarTitle":"Routeur de modèles gratuits","href":"/fr/ai-gateway/free-models-router"},{"group":"Tutoriels d'intégration","pages":[{"title":"Tutoriels d'intégration","sidebarTitle":"Vue d'ensemble","href":"/fr/ai-gateway/integrations"},{"title":"Utiliser Cursor avec DGrid","sidebarTitle":"Cursor","href":"/fr/ai-gateway/integrations/cursor"},{"title":"Utiliser Claude Code avec DGrid","sidebarTitle":"Claude Code","description":"Connectez Claude Code CLI ou l'onglet Code de l'application de bureau à DGrid AI Gateway et vérifiez la première réponse.","href":"/fr/ai-gateway/integrations/claude-code"},{"title":"Utiliser Codex avec DGrid","sidebarTitle":"Codex","href":"/fr/ai-gateway/integrations/codex"},{"title":"Utiliser OpenClaw avec DGrid","sidebarTitle":"OpenClaw","description":"Installez OpenClaw, configurez DGrid comme fournisseur personnalisé et envoyez votre premier message dans le tableau de bord.","href":"/fr/ai-gateway/integrations/openclaw"},{"title":"Utiliser Hermes Agent avec DGrid","sidebarTitle":"Hermes Agent","href":"/fr/ai-gateway/integrations/hermes-agent"},{"title":"Utiliser Vercel AI SDK avec DGrid","sidebarTitle":"Vercel AI SDK","href":"/fr/ai-gateway/integrations/vercel-ai-sdk"}]},{"title":"Pays et régions pris en charge","sidebarTitle":"Pays et régions pris en charge","href":"/fr/ai-gateway/supported-regions"}]},{"group":"ARÈNE IA","pages":[{"title":"AI Arena","sidebarTitle":"Aperçu","href":"/fr/ai-arena/overview"},{"title":"Arena for Agent","sidebarTitle":"Arena for Agent","href":"/fr/ai-arena/arena-for-agent"}]},{"group":"ÉCOSYSTÈME","pages":[{"title":"Dori Find Models","sidebarTitle":"Dori Find Models","href":"/fr/dori"},{"title":"DClaw","sidebarTitle":"DClaw","href":"/fr/dclaw"}]},{"group":"JETON $DGAI","pages":[{"title":"Qu'est-ce que $DGAI ?","sidebarTitle":"Qu'est-ce que $DGAI ?","href":"/fr/what-is-dgai"},{"title":"Fonctions principales","sidebarTitle":"Fonctions principales","href":"/fr/core-functions"},{"title":"Mécanisme de circulation","sidebarTitle":"Mécanisme de circulation","href":"/fr/circulation-mechanism"},{"title":"Distribution des tokens","sidebarTitle":"Distribution des tokens","href":"/fr/token-distribution"}]},{"group":"GENESIS PREMIUM","pages":[{"title":"Présentation du programme","sidebarTitle":"Présentation du programme","href":"/fr/premium/program-overview"},{"title":"Avantages exclusifs","sidebarTitle":"Avantages exclusifs","href":"/fr/premium/exclusive-benefits"},{"title":"Achat et activation","sidebarTitle":"Achat et activation","href":"/fr/premium/purchase-and-activation"},{"title":"Mécanisme d'incitation et récompenses","sidebarTitle":"Incitations et récompenses","href":"/fr/premium/incentive-mechanism-and-rewards"},{"title":"Conformité et réglementation","sidebarTitle":"Conformité","href":"/fr/premium/compliance-and-regulatory"},{"title":"Avis de non-responsabilité légal","sidebarTitle":"Avis de non-responsabilité légal","href":"/fr/premium/legal-disclaimer"}]},{"group":"RESSOURCES","pages":[{"title":"Feuille de route","sidebarTitle":"Feuille de route","href":"/fr/roadmap"},{"title":"Recherche académique","sidebarTitle":"Recherche académique","href":"/fr/academic-research"},{"title":"Conditions d'utilisation","sidebarTitle":"Conditions d'utilisation","href":"/fr/ai-gateway/terms-of-service"}]}]},{"tab":"Référence API","icon":"code","pages":[{"title":"Référence API","href":"/fr/api-reference/introduction"}]}]},{"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":"Utiliser Codex avec DGrid - 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"]}