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:

Request path
DeepSeek Harness
       │
       │ OpenAI-compatible HTTP
       ▼
Local Codex Proxy
       │
       │ Codex app-server
       ▼
Official Codex Runtime
       │
       │ OAuth
       ▼
ChatGPT / Codex Subscription
       │
       ▼
GPT-5.6 Sol

DeepSeek 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:

Terminal
npx @deepseek-ai/dsh web

The 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:

Terminal
npm install -g @openai/codex@latest

Then authenticate:

Terminal
codex login

Codex 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:

Terminal
codex --version

3. Verify GPT-5.6 Sol first

Before involving Harness or the proxy, make sure the model works directly through Codex:

Terminal
codex exec \
  --model gpt-5.6-sol \
  --sandbox read-only \
  --ephemeral \
  --skip-git-repo-check \
  "Reply exactly: SOL_OK"

You should receive:

Expected output
SOL_OK

If 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:

Terminal
gh repo clone mehdic/codex-proxy
cd codex-proxy

Then install and build it:

Terminal
npm install
npm run build

codex-proxy wraps the official codex app-server and exposes OpenAI-style endpoints including:

Endpoints
/v1/chat/completions
/v1/responses
/v1/models

By 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:

Terminal
CODEX_PROXY_DEFAULT_MODEL=gpt-5.6-sol \
CODEX_PROXY_PREWARM_MODELS=gpt-5.6-sol \
npm start

Your OpenAI-compatible base endpoint is now:

Base URL
http://127.0.0.1:3466/v1

The 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:

Terminal
brew install tmux

Create a dedicated session:

Terminal
tmux new -s codex-proxy

Then start the proxy inside that session:

Terminal
cd codex-proxy

CODEX_PROXY_DEFAULT_MODEL=gpt-5.6-sol \
CODEX_PROXY_PREWARM_MODELS=gpt-5.6-sol \
npm start

Detach from the session with:

Keyboard
Ctrl+B
D

The proxy continues running. Later, reconnect with:

Terminal
tmux attach -t codex-proxy

This is particularly useful for long-running Harness agent sessions or remote development machines.

7. Verify the proxy

First check its health:

Terminal
curl http://127.0.0.1:3466/health

Then make an actual model request:

Terminal
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:

Verified path
HTTP Request
    ↓
codex-proxy
    ↓
Codex app-server
    ↓
Codex OAuth
    ↓
GPT-5.6 Sol

8. 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:

Custom provider
Provider ID:
codex-proxy

Base URL:
http://127.0.0.1:3466/v1

Protocol:
openai-completions

Model:
gpt-5.6-sol

If Harness requires a credential value, use a local placeholder such as:

Credential
local

This is not an OpenAI API key.

The authentication chain still lives here:

Authentication
Codex CLI
   ↓
Codex OAuth
   ↓
ChatGPT account

Rather than here:

Not used
DeepSeek Harness
   ↓
OPENAI_API_KEY

If /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:

Model
codex-proxy / gpt-5.6-sol

Send a simple test:

Prompt
Explain which model provider you are using and return the text HARNESS_SOL_OK.

The complete request path is now:

Complete path
DeepSeek Harness Agent
          │
          ▼
codex-proxy
          │
          ▼
Codex app-server
          │
          ▼
Codex OAuth Session
          │
          ▼
GPT-5.6 Sol

The 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:

Environment
CODEX_PROXY_HOST=127.0.0.1

Also 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:

Harness ecosystem
                    GPT-5.6 Sol
                         │
                         ▼
                 DeepSeek Harness
                         │
          ┌──────────────┼──────────────┐
          ▼              ▼              ▼
        Skills           MCP           Tools
          │              │              │
          ▼              ▼              ▼
       Context         Services       Systems
          │              │              │
          └──────────────┼──────────────┘
                         ▼
                  Plugin Runtime
                         │
           ┌─────────────┼─────────────┐
           ▼             ▼             ▼
        Memory        Policies      Sandboxes
           │             │             │
           └─────────────┼─────────────┘
                         ▼
                 Agent Execution
                         │
                         ▼
              Sub-agents / Delegation

Harness 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:

Plugin
dsh-plugin

Use 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.

DeepSeek Harness with GPT-5.6 Sol selected through Codex Proxy.