Menu

Use DeepSeek in the Codex App and CLI
📰

Use DeepSeek in the Codex App and CLI

DEV Community: tutorial·Miles Sun·about 8 hours ago
#HAHcyTdG
#devtotutorial#devto#dev#deepseek#codex
Long article (806 words) — no AI summary yet.
Reading 0:00
15s threshold

Disclosure: I run HaryAI, one of the providers used below.

Codex, OpenAI's coding agent, talks to models through the Responses API. DeepSeek supports that API natively, so DeepSeek can be Codex's model instead of an OpenAI one. One config file covers the Codex CLI, the Codex extension for VS Code, and the Codex panel in the ChatGPT desktop app.

Below is the setup against a gateway I run, HaryAI, which resells DeepSeek at a discount, the reason for each line in the config, and at the end the same setup pointed straight at DeepSeek's own API.

The models

DeepSeek serves two current models behind this endpoint:

Model Model ID Context Max output Image input

DeepSeek V4.1 Flash deepseek-flash 1,048,576 tokens 384,000 tokens Yes

DeepSeek V4 Pro deepseek-v4-pro 1,048,576 tokens 384,000 tokens No

deepseek-flash and deepseek-v4-pro are DeepSeek's own published model IDs for this API, not a label a wrapper invented. Flash is the default: it reads images and is built for everyday text and code work.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.