DeepSeek Harness is designed around interchangeable model providers and an extensible plugin architecture. Normally, connecting a commercial cloud model means supplying an API key—traditional Bring Your Own Key (BYOK).
If a provider already gives you an authenticated CLI, desktop runtime, OAuth session, or subscription-backed local service, you can place an OpenAI-compatible proxy between that runtime and DeepSeek Harness.
This tutorial demonstrates the pattern with OpenAI Codex + GPT-5.6 Sol.
At the time of writing, DeepSeek Harness is developing native authorization for OAuth-capable providers, including infrastructure that can support Codex directly. This tutorial uses a proxy to demonstrate the general integration pattern independently of those evolving native flows.
Architecture
The request follows this path:
DeepSeek Harness
│
│ OpenAI-compatible HTTP
▼
Local Codex Proxy
│
│ Codex app-server
▼
Official Codex Runtime
│
│ OAuth
▼
ChatGPT / Codex Subscription
│
▼
GPT-5.6 SolDeepSeek Harness connects to the OpenAI-compatible endpoint; the proxy and Codex runtime handle authentication.
The proxy used here delegates authentication to the official Codex runtime rather than copying or managing your Codex OAuth tokens itself.
1. Install DeepSeek Harness
If Harness is not already running, start it locally with:
npx @deepseek-ai/dsh webThe Web UI runs locally on port 3080 by default.
DeepSeek Harness is currently in developer preview, so expect its configuration and extension APIs to continue changing.
2. Install the official Codex CLI
Install or update Codex:
npm install -g @openai/codex@latestThen authenticate:
codex loginCodex opens the official authentication flow and associates the CLI with your ChatGPT/Codex account.
OpenAI currently requires Codex CLI 0.144.0 or newer for GPT-5.6 access, and availability of Sol depends on your account and rollout status.
You can confirm your version with:
codex --version3. Verify GPT-5.6 Sol first
Before involving Harness or the proxy, make sure the model works directly through Codex:
codex exec \
--model gpt-5.6-sol \
--sandbox read-only \
--ephemeral \
--skip-git-repo-check \
"Reply exactly: SOL_OK"You should receive:
SOL_OKIf this fails, fix the Codex authentication or model-access issue first.
The model identifier currently used by Codex is gpt-5.6-sol, and recent Codex clients can execute it directly when the account has access.
4. Install codex-proxy
For this example we will use the open-source codex-proxy project.
If you have GitHub CLI installed:
gh repo clone mehdic/codex-proxy
cd codex-proxyThen install and build it:
npm install
npm run buildcodex-proxy wraps the official codex app-server and exposes OpenAI-style endpoints including:
/v1/chat/completions
/v1/responses
/v1/modelsBy default, it listens only on 127.0.0.1:3466 for local connections.
5. Start the proxy with GPT-5.6 Sol
Start it with Sol as the default and pre-warmed model:
CODEX_PROXY_DEFAULT_MODEL=gpt-5.6-sol \
CODEX_PROXY_PREWARM_MODELS=gpt-5.6-sol \
npm startYour OpenAI-compatible base endpoint is now:
http://127.0.0.1:3466/v1The proxy's public model catalog may lag behind the newest Codex models, but it passes requested model names through to codex app-server. Therefore we can manually configure gpt-5.6-sol in Harness when necessary.
6. Keep it alive with tmux
If you close the terminal running the proxy, the process will normally stop.
A simple solution is to run it inside tmux.
On macOS:
brew install tmuxCreate a dedicated session:
tmux new -s codex-proxyThen start the proxy inside that session:
cd codex-proxy
CODEX_PROXY_DEFAULT_MODEL=gpt-5.6-sol \
CODEX_PROXY_PREWARM_MODELS=gpt-5.6-sol \
npm startDetach from the session with:
Ctrl+B
DThe proxy continues running. Later, reconnect with:
tmux attach -t codex-proxyThis is particularly useful for long-running Harness agent sessions or remote development machines.
7. Verify the proxy
First check its health:
curl http://127.0.0.1:3466/healthThen make an actual model request:
curl http://127.0.0.1:3466/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-sol",
"messages": [
{
"role": "user",
"content": "Reply exactly: SOL_PROXY_OK"
}
]
}'You should receive a normal OpenAI-compatible response containing SOL_PROXY_OK.
This confirms the path from the HTTP request to the model:
HTTP Request
↓
codex-proxy
↓
Codex app-server
↓
Codex OAuth
↓
GPT-5.6 Sol8. Connect the proxy to DeepSeek Harness
Now open DeepSeek Harness → Settings → Models → Add a custom provider.
Harness officially supports custom providers using a provider ID, base URL, API protocol, credential and model catalog.
Configure:
Provider ID:
codex-proxy
Base URL:
http://127.0.0.1:3466/v1
Protocol:
openai-completions
Model:
gpt-5.6-solIf Harness requires a credential value, use a local placeholder such as:
localThis is not an OpenAI API key.
The authentication chain still lives here:
Codex CLI
↓
Codex OAuth
↓
ChatGPT accountRather than here:
DeepSeek Harness
↓
OPENAI_API_KEYIf /v1/models does not advertise Sol yet, enter gpt-5.6-sol manually in the Harness model catalog. Harness explicitly supports manually declared models for custom providers.
9. Select GPT-5.6 Sol in Harness
After saving the provider, return to a Harness session and select:
codex-proxy / gpt-5.6-solSend a simple test:
Explain which model provider you are using and return the text HARNESS_SOL_OK.The complete request path is now:
DeepSeek Harness Agent
│
▼
codex-proxy
│
▼
Codex app-server
│
▼
Codex OAuth Session
│
▼
GPT-5.6 SolThe authenticated cloud-model runtime is now available as a provider in DeepSeek Harness.
Security: keep the proxy local
Do not expose without appropriate access controls port 3466 to your LAN or the public Internet.
codex-proxy deliberately binds to 127.0.0.1 by default and delegates authentication to your existing Codex session. Its own documentation specifically recommends keeping the service private because Codex is an agent runtime, not merely a text-generation endpoint.
For a local workstation, keep:
CODEX_PROXY_HOST=127.0.0.1Also remember that the proxy exposes Codex-native capabilities according to its configured sandbox policy. Its conservative default is read-only; use broader filesystem or shell permissions only when you understand the consequences.
Extending the integration with Harness plugins
The integration makes GPT-5.6 Sol available within DeepSeek Harness’s programmable environment.
DeepSeek Harness is built on Cordis around the principle:
Everything is a Plugin.
The model adapter, tool registry, filesystem access, session system and even the agent loop itself are implemented as replaceable plugins rather than one fixed agent architecture.
The cloud model becomes one component of this environment:
GPT-5.6 Sol
│
▼
DeepSeek Harness
│
┌──────────────┼──────────────┐
▼ ▼ ▼
Skills MCP Tools
│ │ │
▼ ▼ ▼
Context Services Systems
│ │ │
└──────────────┼──────────────┘
▼
Plugin Runtime
│
┌─────────────┼─────────────┐
▼ ▼ ▼
Memory Policies Sandboxes
│ │ │
└─────────────┼─────────────┘
▼
Agent Execution
│
▼
Sub-agents / DelegationHarness currently exposes extension points for custom tools, MCP servers, Skills, memory, model adapters, sandbox backends, permissions, hooks, scheduled jobs, UI integrations and sub-agent providers. Sub-agent delegation can target other Harness agents as well as external runtimes such as Codex and Claude Code.
You can extend that environment with your own plugins.
You can build your own:
dsh-pluginUse the same runtime to register tools, providers, workflows, model adapters or new agent behaviours. DeepSeek recommends the dsh-plugin GitHub topic for discovering community plugins.
The example establishes a reusable integration pattern:
An authenticated cloud-model runtime can expose an OpenAI-compatible endpoint for DeepSeek Harness.
The runtime can then supply the capabilities needed for a particular task:
Models remain interchangeable within an open, programmable agent runtime.
Codex + GPT-5.6 Sol is only the first demonstration.
To build a system for a specific task, combine the model with Harness plugins, MCP, Skills, specialized tools, memory and sub-agents as needed.
