How to Host DeepSeek Harness on Hostinger (+ 502 Fix)

Tested on 27 September 2026 with a Hostinger KVM 2 VPS and Hostinger’s DeepSeek Harness template (Harness 0.1.1-rc.2).

I earn a commission if you buy Hostinger through the link in my YouTube video’s description. It doesn’t change your price.

DeepSeek Harness is a free, open-source AI agent. In this guide I put it on my own Hostinger server, so it runs 24/7, even with my laptop closed. You’ll buy the server, open Harness, fix the 502 Bad Gateway error that Hostinger’s one-click template gives right now, connect OpenRouter so you can use almost any AI model, and have Harness build and publish a website from one prompt.

It takes about 10 minutes, and everything the AI did in my test cost about three cents. Got a 502? Jump to the fix.

What you need

  • A Hostinger VPS with the DeepSeek Harness template. I use Hostinger’s KVM 2: 2 CPU cores, 8 GB of memory and 100 GB of storage. It’s from US$8.99 a month on the 24-month plan (checked 3 October 2026).
  • About US$10 of OpenRouter credit, or a DeepSeek API key if you already have one.
  • About 10 minutes, plus a few minutes while Hostinger builds the server.

In this guide

  1. Buy the Hostinger VPS with the DeepSeek Harness template
  2. Set up the server
  3. Open DeepSeek Harness
  4. Fix the 502 Bad Gateway error
  5. Get an OpenRouter API key
  6. Connect OpenRouter to Harness
  7. Pick a model and test it
  8. Add a model Harness doesn’t list yet
  9. Have Harness build and publish a website
  10. What it costs

Step 1: Buy the Hostinger VPS with the DeepSeek Harness template

A VPS is a server you rent that runs all the time. Hostinger has a DeepSeek Harness template that installs Harness for you, so there’s nothing to set up by hand.

Open Hostinger’s DeepSeek Harness page and scroll down to the plans.

Hostinger's DeepSeek Harness page with the Choose plan button
Hostinger’s DeepSeek Harness page.

KVM 2 is the one to get. It has plenty of power and space for the agent and anything it builds. Click Choose plan on it.

The KVM 2 plan on Hostinger's DeepSeek Harness pricing table
KVM 2: 2 CPU cores, 8 GB of memory, 100 GB of storage. My screenshots show A$10.47 a month because a referral discount applied when I recorded. Today’s prices are in the table below.

In the cart, pick your term. 24 months is the cheapest per month, and 12 months is a good middle ground.

Hostinger cart period list with 24 months selected
Pick the term in the cart.

Under Choose what to install, make sure DeepSeek Harness is selected under Applications. Then click Continue and pay.

DeepSeek Harness selected under Applications in the Hostinger cart, and the Continue button
DeepSeek Harness selected under Applications, then Continue.
KVM 2 with DeepSeek HarnessPrice
Monthly price, 24-month planUS$8.99 (A$13.09 in Australia)
Paid upfront for 24 monthsAbout US$216 (A$314), plus any tax
Renews atUS$14.99 a month (A$21.69)
What you get2 CPU cores, 8 GB memory, 100 GB NVMe storage, 8 TB bandwidth
Money-back guarantee30 days
Checked on hostinger.com on 3 October 2026. Prices change and depend on your country. The cart shows your final price before you pay.

Step 2: Set up the server

After you pay, Hostinger walks you through the setup. If it doesn’t open on its own, go to VPS in hPanel and click Setup next to your new server.

The Setup button on the new VPS in Hostinger hPanel
Click Setup next to your new VPS.

Pick the location marked Best latency. That’s the data centre that answers you fastest.

Choosing the server location marked Best latency in the VPS setup wizard
Pick the location marked Best latency.

It asks what to install again. Switch to Applications, pick DeepSeek Harness and click Select.

DeepSeek Harness chosen under Applications in the VPS setup wizard
Applications, then DeepSeek Harness.

Set a panel password and write it down. It’s your login to Harness in a minute.

Setting the panel password in the VPS setup wizard
Set a panel password and keep it somewhere safe.

Add the free malware scanner if you want it, and click Finish setup. Hostinger builds the server and installs Harness for you. It takes a few minutes.

The Finish setup button in the VPS setup wizard
The malware scanner is optional. Click Finish setup.

Step 3: Open DeepSeek Harness

When it’s done, you land on the Well done, you’re ready page. Click Manage App. You can also find it any time on your VPS dashboard: VPS, then Manage, then Manage App.

The Manage App button on the VPS ready page
Click Manage App.

A sign-in box pops up. The username is admin, and the password is the panel password you just set.

The DeepSeek Harness sign-in box asking for a username and password
Username admin, password: your panel password.

If Harness opens, skip to Step 4. If you see 502 Bad Gateway, it’s not you. Do the fix below first.

How to fix the 502 Bad Gateway error on DeepSeek Harness

The 502 Bad Gateway error page after opening DeepSeek Harness
The 502 Bad Gateway page that Hostinger’s DeepSeek Harness template shows right now.

Why it happens: the template installs Harness 0.1.1-rc.2. A recent update to some of the parts it’s built on breaks that version, so the app never starts. The web server in front of it has nothing to hand your visit to, so it shows 502.

The fix is one line. Back on your VPS dashboard in hPanel, click Web console. That’s a command window in your browser.

The Web console button in Hostinger hPanel
Web console, on your VPS dashboard.

Paste this line and press Enter:

if [ "$(dsh --version 2>/dev/null)" = "0.1.1-rc.2" ]; then cd /tmp && D=$(dirname $(dirname $(readlink -f $(which dsh))))/node_modules/@deepseek-ai && for p in cordis@4.0.1 cordis-plugin-group@1.0.1 cordis-plugin-hmr@1.0.16 cordis-plugin-include@1.0.6 cordis-plugin-loader@1.0.2 cordis-plugin-timer@1.1.3 cosmokit@1.8.2 schemastery@3.18.1; do rm -rf $D/${p%@*}; mkdir -p $D/${p%@*}; tar xzf $(npm pack -s @deepseek-ai/$p) -C $D/${p%@*} --strip-components=1; done; systemctl restart deepseek-harness; sleep 10; systemctl is-active deepseek-harness; else echo "This fix is only for Harness 0.1.1-rc.2. Yours is $(dsh --version 2>/dev/null) - skip it."; fi

It checks your version first, so it only changes anything if you have the broken one.

The 502 fix line pasted into the Hostinger web console
The line pasted into the web console.

After about 15 seconds, it prints active. Click Manage App again.

The web console printing active after the fix
“active” means Harness is running.

Still 502? Wait 30 seconds and reload, because Harness takes a moment to start. If the line printed “This fix is only for Harness 0.1.1-rc.2”, Hostinger has changed the template. Skip the fix, and tell me in the comments on the video which version it showed.

Harness then shows a testing notice, because it’s still in testing. Click Continue. Next it asks for a DeepSeek API key: a password that lets Harness use your DeepSeek account. Already have one? Paste it in and skip to Step 6. I use OpenRouter instead, so I click Configure later.

DeepSeek Harness asking for an API key, with Configure later highlighted
No DeepSeek key? Click Configure later.

Step 4: Get an OpenRouter API key

OpenRouter gives you one key for hundreds of AI models, and you can switch between them any time.

On the OpenRouter website, open Credits and add a few dollars. US$10 is plenty, and you’ll see a small fee and tax on top.

Then go to API Keys and click New Key. Give it a name, pick an expiry and set a credit limit. I use $5, so once this key has spent $5 it stops working. Click Create and copy the key.

Creating an OpenRouter API key with a 5 dollar credit limit
A $5 credit limit caps what this key can ever spend.

Keep the key private. Anything it’s used for is billed to your account.

Step 5: Connect OpenRouter to Harness

Back in Harness, click Settings in the bottom-left corner, then Models, then Add provider.

The Add provider button in DeepSeek Harness Settings, Models
Settings, Models, Add provider.

The list is long, so scroll down to openrouter and pick it.

OpenRouter picked as the provider in DeepSeek Harness
Pick openrouter as the provider.

Paste your key, open Customized settings and click Fetch available models.

The Fetch available models button in DeepSeek Harness
Fetch available models.

It lists the models this version of Harness knows about. Leave them all ticked and click Add selected. Then scroll to the bottom and click Apply.

A green dot next to openrouter means it’s saved. The red dot next to DeepSeek is the official provider with no key. You won’t use it.

OpenRouter saved with a green dot in DeepSeek Harness
Green dot: OpenRouter is connected.

Step 6: Pick a model and test it

To chat, Harness needs a workspace: a folder on its server that it’s allowed to work in. Click Add workspace next to Workspaces, then New folder, give it a name and open it.

Open the model picker in the chat box. Under openrouter, pick DeepSeek: DeepSeek V4 Flash. It’s fast and very cheap: a simple question costs less than a tenth of a cent.

Choosing DeepSeek: DeepSeek V4 Flash under openrouter in the Harness model picker
Pick V4 Flash under openrouter, not the one under DeepSeek.

Now two quick tests. Type What model are you? It answers DeepSeek V4 Flash.

DeepSeek Harness answering that it runs DeepSeek V4 Flash
Test 1: it knows which model it is.

Then ask: What machine are you on? Give me the OS, the CPU count and the free disk. Watch as it runs the commands. Mine said Ubuntu Linux, 2 CPU cores and 94 GB free. That comes from your server, not your laptop.

DeepSeek Harness reporting Ubuntu Linux, 2 processors and 94 GB free on the VPS
Test 2: the answer comes from the VPS.

Step 7: Add a model that Harness doesn’t list yet

DeepSeek released V4.1 Flash on 10 September 2026. It isn’t in the picker, because this version of Harness came out before it did. You don’t have to wait for an update.

On OpenRouter, open the model’s page and copy its ID: the exact name with the slash in it. For this one it’s deepseek/deepseek-v4.1-flash.

Copying a model ID on OpenRouter
Copy the model ID from its OpenRouter page.

In Harness, go to Settings, then Models, and click Edit on openrouter. Under Customized settings, click Add model. Paste the ID, give it a name and click Apply.

A new model row in DeepSeek Harness with the OpenRouter model ID pasted in
Paste the ID into the new row, then Apply.

Back in the picker, there it is. Click New Session, ask “What model are you?” again, and it answers as V4.1 Flash. This works for any model on OpenRouter, the day it launches.

DeepSeek Harness answering as the newly added DeepSeek V4.1 Flash
It now answers as V4.1 Flash.

Step 8: Have Harness build and publish a website

Now give it a real job. Add a new workspace. I called mine landing-page.

Set the permission to Full access, so it can build without asking you before every step. Harness warns you first: tick the box, then click Enable Full access.

Choosing Full access in the DeepSeek Harness permission menu
Full access lets it build without stopping to ask.

Then paste this prompt:

Build me a one-page landing page for an automation consultancy called Torrington Automation, in a clean modern style: a hero, three services, a short about section, a contact form and a footer. Then serve it on this server at a URL I can open in my browser.

The website prompt pasted into DeepSeek Harness
The prompt, ready to send.

Send it. It writes itself a to-do list, builds the page and puts it online. Open the Trajectory tab to see every file it wrote and every command it ran. Nothing is hidden.

About a minute later it’s done, and it has even tested its own contact form.

DeepSeek Harness reporting the site is live and its contact form tested
Done, with its own contact form tested.

It gives you a local link, but that only works on the server itself. On your laptop, type http://, then your server’s name from the VPS dashboard, then :8080. Use http, not https.

There’s the site, live on your server from one prompt. The text is a placeholder it made up, so you’d swap in your own. And the form works.

The finished landing page DeepSeek Harness built and published on the VPS
The finished site, served from the VPS.

The site keeps running until Harness restarts. To keep it up for good, ask Harness to keep it running permanently.

What DeepSeek Harness on Hostinger costs

ItemCost
Hostinger KVM 2, 24-month planUS$8.99 a month (A$13.09 in Australia), renews at US$14.99
OpenRouter, DeepSeek V4 FlashUS$0.14 per million tokens in, US$0.28 out
Everything the AI did in this guideAbout 3 cents
DeepSeek HarnessFree and open source
Hostinger prices checked 3 October 2026, OpenRouter on 29 September 2026. You’ll see your own currency at checkout.

The one rule: keep it locked down

That sign-in box is the only thing between the internet and an agent that can run commands on your server. Keep the address and the password to yourself, and only switch on full access when you need it. Anything it puts online, like that website, is public, so treat it as a demo.

Is Hostinger right for you?

What I like

  • The template installs Harness for you. The only command you type is the 502 fix.
  • It runs 24/7, even with your laptop closed.
  • KVM 2 has room for the agent and whatever it builds.
  • There’s a 30-day money-back guarantee.

What to watch out for

  • Right now the template gives the 502 error until you run the fix.
  • The low monthly price means paying 12 or 24 months upfront, and it renews at a higher price.
  • Harness itself is still in testing.
  • The site it builds runs on http and port 8080, not a proper https web address.

Skip it if

You only want to chat with an AI now and then. DeepSeek’s own app does that for free. And if you already rent a server, you can install Harness on that instead.

FAQ

Is DeepSeek Harness free?

Yes. Harness is free and open source. You pay for the server and for what the AI uses, which was about three cents for everything in this guide.

Why does DeepSeek Harness show 502 Bad Gateway on Hostinger?

Hostinger’s template currently installs Harness 0.1.1-rc.2, which doesn’t start after a recent update to some of its parts. The one-line fix repairs it in about 15 seconds.

Which Hostinger plan do I need?

I used KVM 2 (2 CPU cores, 8 GB of memory) and it had plenty of room. I haven’t tested the smaller KVM 1.

Do I need a DeepSeek API key?

No. An OpenRouter key works instead, and it gives you DeepSeek’s models plus hundreds of others. If you already have a DeepSeek key, paste it in when Harness asks.

Does it keep running when my computer is off?

Yes. Harness runs on your Hostinger server, not your computer, so it keeps going with your laptop closed.

Get everything I used, free

The 502 fix line, the website prompt and a setup checklist are free in my Automation Vault, so you don’t have to copy anything from this page. Every new build from my channel lands there the day the video goes live.

Want another agent on the same kind of server? This video shows you Hermes.

Model prices: OpenRouter’s DeepSeek V4 Flash page.

Leave a Comment