App Store template
DeepSeek Harness icon

DeepSeek Harness

Open-source coding agent harness with a browser workspace for chat, models, tools, and persistent sessions.

Launch in your Sealos workspace.

DeepSeek Harness template preview
Template previewFull screenshot
Template deployments
12 on Sealos
Deployment
Your own instance
Category
AI

About this template

Overview

DeepSeek Harness is an open-source coding-agent workspace with a browser interface for chat, tools, sessions, and model configuration. This template deploys DeepSeek Harness 0.2.2-rc.5 as a single StatefulSet with persistent storage on Sealos Cloud.

From the documentation

DeepSeek Harness runs one web process on port 3080. The browser UI provides interactive coding sessions, model settings, tool execution, plugins, automation tasks, and session history. The agent can read and edit files, run shell commands, and work inside the project directory selected in the UI.

How to deploy DeepSeek Harness

  1. Choose Deploy now to start DeepSeek Harness in your Sealos workspace.
  2. Review basic_auth_username, basic_auth_password in the deployment form.
  3. Launch the template, then inspect the application status and resource cards in Canvas.

Resources to plan for

Start with the resources defined by the DeepSeek Harness template. Review CPU, memory, persistent storage, and network allocations for every service in Canvas. Capacity needs depend on your data and workload; monitor usage as they grow.

Template configuration and setup

Access after deployment

Use the application URL or connection details shown in Canvas. Follow the deployment guide for first-time account setup or client configuration, and keep generated credentials available for that step.

Hosting and billing

Sealos monthly plans include compute, memory, storage, and traffic. Size your plan for all deployed services. Software licenses and external AI or API services may have separate terms and charges. Confirm the applicable plan and optional charges in Cost Center.

Compare Sealos resource plans
Read full documentationCollapse documentation

For current cloud charges, refer to Sealos plan pricing. Upstream documentation may reference earlier billing models.

Deploy and Host DeepSeek Harness on Sealos

DeepSeek Harness is an open-source coding-agent workspace with a browser interface for chat, tools, sessions, and model configuration. This template deploys DeepSeek Harness 0.2.2-rc.5 as a single StatefulSet with persistent storage on Sealos Cloud.

DeepSeek Harness

About Hosting DeepSeek Harness

DeepSeek Harness runs one web process on port 3080. The browser UI provides interactive coding sessions, model settings, tool execution, plugins, automation tasks, and session history. The agent can read and edit files, run shell commands, and work inside the project directory selected in the UI.

The template mounts two persistent volumes: /data stores DSH profiles, credentials, settings, and session data, while /workspace stores the project files used by the agent. Both volumes survive Pod restarts and template updates.

Access uses two layers. The auth proxy requires HTTP Basic Auth with the username and password from the deployment form. After that, DeepSeek Harness requires a launch token printed by the server. Opening the tokenized URL once creates a signed browser cookie that remains valid for 30 days. The launch token is reissued whenever the container starts, while the signed cookie keeps its 30-day lifetime across restarts.

Common Use Cases

  • Repository Assistance: Inspect a codebase, explain architecture, and implement focused changes.
  • Coding Automation: Run shell commands, edit files, and iterate on tests inside a persistent workspace.
  • AI Agent Evaluation: Compare models and providers through one coding-agent interface.
  • Personal Development Workspace: Keep sessions, configuration, and project files together in one deployment.
  • Tool and Plugin Prototyping: Test DeepSeek Harness plugins, skills, and agent presets.

Dependencies for DeepSeek Harness Hosting

The Sealos template includes the DeepSeek Harness web service, an auth proxy, a Service, an HTTPS Ingress, and two 1Gi persistent volumes. Application state stays inside the PVCs created by the template.

A DeepSeek API key is required to run model requests. You can add it after deployment from Settings → Models, or configure another OpenAI-compatible, Anthropic-compatible, or Gemini-compatible provider from the same page.

Deployment Dependencies

Implementation Details

Architecture Components

This template deploys:

  • DeepSeek Harness StatefulSet: Runs the web UI and agent runtime as UID/GID 1000.
  • Auth proxy: Runs Caddy as a sidecar on port 8080, enforces HTTP Basic Auth, and forwards authenticated requests to DeepSeek Harness on port 3080.
  • Service and Ingress: Expose Service port 3080, which targets the auth proxy, through the Sealos HTTPS entry.
  • /data PVC: Stores $DSH_HOME, profiles, credentials, settings, and session data.
  • /workspace PVC: Stores the project directory available to agent sessions.

The upstream Docker Compose file defines one web service. This template keeps the application topology and adds the auth proxy as a security gate. It uses a StatefulSet because the application requires persistent per-instance storage.

Resource Allocation
ComponentCPU RequestCPU LimitMemory RequestMemory LimitStorage
DeepSeek Harness20m200m102Mi1024Mi2 × 1Gi
Auth proxy10m100m12Mi128Mi-

During validation, the web process exceeded the 512Mi limit after browser sessions and model interactions. The 768Mi test ran successfully, and the template uses the next Sealos-supported tier, 1024Mi, for production headroom. This tier passed cold start, token login, default workspace creation, model configuration, session creation, message exchange, and restart persistence. Raise DeepSeek Harness memory to 2048Mi or 4096Mi for large repositories or long agent sessions.

Configuration
  • Image: ghcr.io/yangchuansheng/deepseek-harness:v0.2.2-rc.5
  • Port: 3080
  • Auth proxy: caddy:2.11.9-alpine on internal port 8080
  • Public URL: https://<app-host>.<region-domain>/
  • Trusted host: The generated Ingress host
  • Basic Auth: The basic_auth_username and basic_auth_password deployment inputs, passed to the auth proxy
  • Telemetry: Disabled with DSH_TELEMETRY_DISABLED=1
  • Persistence: /data and /workspace PVCs
  • Default workspace: /workspace/deepseek-harness/default-workspace, configured through a DSH --patch overlay
  • Replicas: 1
License Information

DeepSeek Harness is licensed under the MIT License. This Sealos template is provided under the repository license for Sealos templates.

Why Deploy DeepSeek Harness on Sealos?

Sealos is an AI-assisted cloud operating system built on Kubernetes. It combines deployment, operations, networking, storage, and scaling in one interface. By deploying DeepSeek Harness on Sealos, you get:

  • One-Click Deployment: Open the template page and launch the application without writing Kubernetes YAML.
  • Persistent Storage Included: Session history, credentials, settings, and project files survive restarts.
  • Automatic HTTPS Access: Sealos provisions the public Ingress and certificate for the web UI.
  • Canvas Operations: Inspect logs, adjust resources, and manage storage from resource cards.
  • Pay-as-You-Go Resources: Start with the tested 300m CPU limit and 1Gi application memory.
  • Simple Model Setup: Add DeepSeek or third-party providers directly in the browser UI.

Deployment Guide

  1. Open the DeepSeek Harness template and click Deploy Now.
  2. Review the generated application name, host, and Basic Auth credentials. Save the Basic Auth password before confirming the deployment.
  3. Wait for deployment to complete, typically 2-3 minutes. Sealos redirects you to the Canvas after the resources are created.
  4. Open the application URL shown in the Canvas.
  5. Follow Login and Access to authenticate the browser.

Login and Access

Access uses two credentials. First authenticate at the auth proxy with the Basic Auth username and password from the deployment form. Then sign in to DeepSeek Harness with the launch token from the application log.

DeepSeek Harness has no self-service registration. Access is granted by the deployment's Basic Auth credentials and the launch token.

  1. Open the deployment in Sealos Canvas and open the application URL.

  2. Enter the basic_auth_username and basic_auth_password values from the deployment form when the browser asks for credentials.

  3. Open the DeepSeek Harness StatefulSet or Pod resource card and view its logs.

  4. Find the latest line that starts with dsh web::

    dsh web: https://<app-host>.<region-domain>/?token=<launch-token>
    
  5. Open the complete URL in the browser once. DeepSeek Harness sets a signed session cookie and redirects to the clean application root.

  6. Use the clean application URL for later visits. The browser keeps the Basic Auth credentials and the DeepSeek Harness cookie.

The launch token changes after every Pod or container restart. Return to the logs and open the newest dsh web: URL when the DeepSeek Harness cookie expires or the container restarts. The Basic Auth credentials stay unchanged until you update the deployment inputs.

Treat the tokenized URL as a password. It grants access to the deployment, including stored credentials and workspace files.

Select a Workspace

The first-use flow creates Default workspace automatically at /workspace/deepseek-harness/default-workspace.

To use another directory on the persistent volume:

  1. Click Choose workspace.
  2. Click Add workspace….
  3. Enter the directory path under /workspace.
  4. Click Open.

The new session can then read and edit project files stored on the workspace volume.

Configure a Model
  1. Open Settings → Models.
  2. Enter a DeepSeek API key in the DeepSeek card and click Apply, or choose Add model provider for a compatible third-party endpoint.
  3. Return to the session and choose the model from the model selector.

The API key is stored under /data/.dsh/.credentials.yaml on the persistent data volume. It survives Pod restarts and template updates.

Configuration

After deployment, manage DeepSeek Harness from:

  • Canvas AI Dialog: Describe resource, storage, or environment changes and let Sealos apply them.
  • Resource Cards: Open the StatefulSet, Service, Ingress, or PVC cards for direct changes.
  • Model Settings: Add providers, enter credentials, and manage model catalogs from Settings → Models.
  • Workspace Files: Upload project files or work with files already present in /workspace.
  • Logs: Retrieve the current launch URL after a restart.

Scaling

Increase CPU or memory from the DeepSeek Harness StatefulSet resource card when sessions need more capacity:

WorkloadSuggested Memory
UI, configuration, short conversations1024Mi
Medium repositories and tool-heavy sessions2048Mi
Large repositories or long-running agent tasks4096Mi

Keep the StatefulSet at one replica. The application uses a single shared browser session and ReadWriteOnce volumes for /data and /workspace.

Security Notes

This deployment is single-tenant. Every authenticated browser has owner access to the agent, including shell execution, stored credentials, and workspace files. Share access only with people you trust.

  • The auth proxy reads the Basic Auth password from the deployment inputs and keeps it in the Pod environment. Use a unique password and keep it out of tickets and screenshots.
  • The dsh web: launch token is a root-equivalent secret. Treat the tokenized URL as a password.
  • Existing 30-day browser cookies survive Pod restarts because the signing key is stored on the /data volume. Restarting the Pod rotates the launch token; issued cookies keep their 30-day lifetime.
  • The application has no per-device session revocation list. Changing the Basic Auth password stops browsers that use the old Basic Auth credential; existing DeepSeek Harness cookies remain valid until they expire or /data is reset.
  • To force a full reset, redeploy with a fresh /data volume. This clears credentials, settings, and session data; back up /workspace first if you need to keep project files.
  • For multi-user access or account-level revocation, replace the auth proxy with an OAuth2 or SSO proxy. Basic Auth provides one shared credential.

Troubleshooting

The browser keeps asking for Basic Auth

Enter the basic_auth_username and basic_auth_password values from the deployment form. If the browser cached old credentials, open a private window or clear the saved credentials for this host.

DeepSeek Harness returns 401

The browser has no valid session cookie. Open the latest dsh web: token URL from the Pod logs. After a Pod restart, fetch the new token.

The default workspace is unavailable

Open Choose workspace → Add workspace…, enter a directory under /workspace, and click Open. Confirm the /workspace volume is mounted and writable by UID 1000.

No models are available

Open Settings → Models and add a DeepSeek API key or a custom model provider.

The login URL no longer works

The launch token is bound to the current container process. Copy the newest dsh web: line from the Pod logs.

The UI becomes slow during large tasks

Raise the StatefulSet memory limit to 2048Mi or 4096Mi. Keep the replica count at one.

Additional Resources

License

This Sealos template is provided under the repository license for Sealos templates. DeepSeek Harness is licensed under the MIT License.

From launch to everyday operations

Why deploy
on Sealos

A shorter path from an app you want to an app you can run. Sealos brings deployment and ongoing operations into one place.

  1. One-click deployment

    Start with a ready-made template. Review its configuration and launch from the Sealos console.

  2. Managed Kubernetes

    Run on managed infrastructure with built-in workload scheduling and recovery.

  3. Automatic HTTPS

    Give your application a public HTTPS endpoint with certificates managed for you.

  4. Persistent storage

    Keep application data on persistent volumes across container restarts.

  5. Room to grow

    Adjust CPU, memory, and replicas from the console as your workload changes.

One template. Connected resources.

You Get the Whole Stack

Sealos provisions the resources defined by your template and brings them together in your workspace.

  • App Service

    Container workloads with configurable CPU, memory, and replicas.

  • Public HTTPS URL

    An address for your app, with managed TLS certificates.

  • Database

    A database provisioned alongside your app when the template calls for one.

  • Persistent Volume

    Storage for the files and data your application needs to keep.

  • Environment Variables

    Application settings and secrets configured in one place.

  • Logs & Metrics

    Inspect container logs and resource usage from the console.

Resources and their configuration vary by template. Review the deployment form for this app’s exact setup.

Explore more production-ready templates.

More