---
title: "Keep Claude Code running 24/7."
description: "harnessd runs Claude Code on a machine of its own, so your agent is there whenever something happens."
canonical_url: "https://www.harness-sdk.dev/harnessd/docs"
markdown_url: "https://www.harness-sdk.dev/harnessd/docs.md"
x_farming_labs_generated_preamble: true
---

# Keep Claude Code running 24/7.
URL: /harnessd/docs
LLM index: /llms.txt
Description: harnessd runs Claude Code on a machine of its own, so your agent is there whenever something happens.

harnessd keeps Claude Code running on a Mac or a Linux machine. If Claude Code stops, harnessd starts it again in the same conversation.

Diagram: harnessd keeps Claude Code running. Your apps reach it at any hour.

- Your apps → Claude Code: wake it
- harnessd → Claude Code: keeps it running

```sh
npm install -g @harness-sdk/harnessd
harnessd service install
harnessd attach
```

It needs Node.js 20.19 or newer. [Install](/harnessd/docs/setup#install) has the rest.

Next: [Always-on agents](/harnessd/docs/always-on).

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
