Skip to Content
Get Started

Get Started

This guide walks you through running Harnesst with Docker.

Install with one command

On a Linux server or a Mac with Docker, one command installs and starts the production stack from the published images:

curl -fsSL https://jr-k.github.io/harnesst/install.sh | bash

The installer sets up Docker when it is missing (Linux), downloads docker-compose.yml into ./harnesst, generates the secrets in .env (JWT key, encryption salt, database password) and starts the stack. Run it again to update: .env and your data are kept.

Every question can be answered ahead of time, for unattended installs:

VariableDefaultPurpose
HARNESST_URLhttp://localhost:<port>Public URL. An https:// URL turns secure cookies on.
HARNESST_PORT9000Host port of the web app
HARNESST_VERSIONlatestImage tag, e.g. 2026.11.1
HARNESST_INSTALL_DIR./harnesstWhere the files go
HARNESST_STARTask, else 1Start the stack right away
HARNESST_RESETask, else 0Delete existing data first
curl -fsSL https://jr-k.github.io/harnesst/install.sh | HARNESST_URL=https://agents.example.com bash

Then jump to Create the first admin account. To run from source instead, to develop or customize the stack, follow steps 1 to 3.

Prerequisites

  • Docker  and Docker Compose
  • At least one LLM API key (Anthropic, OpenAI, Google, or DeepSeek)

1. Clone the repository

git clone https://github.com/jr-k/harnesst.git cd harnesst

2. Configure environment

Copy the example environment file:

cp .env.example .env

The minimum configuration you need is a database connection, a JWT secret, an MCP encryption salt, and at least one LLM API key:

# Database DB_HOST=localhost DB_PORT=5432 DB_USER=harnesst DB_PASSWORD=harnesst DB_NAME=harnesst # Redis REDIS_HOST=localhost REDIS_PORT=6379 # At least one LLM provider ANTHROPIC_API_KEY=sk-ant-... OPENAI_API_KEY=sk-... GOOGLE_API_KEY=... DEEPSEEK_API_KEY=... OPENROUTER_API_KEY=... XIAOMI_API_KEY=... METAAI_API_KEY=... FRONTEND_URL=http://localhost:9000 BACKEND_JWT_SECRET_KEY=change-me-in-production BACKEND_COOKIE_SECURE=false BACKEND_ENCRYPTION_SALT=changeme # Backend URL — used by the Next.js proxy (server-side only) BACKEND_URL=http://localhost:8000

Optional:

# Tuning & debugging LOG_LEVEL=INFO # set to DEBUG for verbose logs (MCP traces, etc.) AGENT_RECURSION_LIMIT=100 # max LangGraph steps per agent invocation

Google OAuth, Slack, Langfuse and code-execution sandboxes are configured later in the Settings UI rather than through environment variables.

3. Start the stack

The fastest way to get everything running with hot reload:

make dev

This starts PostgreSQL, Redis, the FastAPI backend (with Alembic migrations) and the Next.js frontend in parallel.

Equivalent individual commands:

make dev-stack # docker compose -f docker-compose.dev.yml up (postgres, redis) make dev-backend # alembic upgrade head + uvicorn with reload make dev-frontend # next dev

For production (Docker Compose):

make build # or: docker compose build make up # docker compose up -d

4. Create the first admin account

Open http://localhost:9000 . The first account you create becomes the workspace admin. After that, new accounts require an invite from an admin.

Optional workspace integrations are now available under Settings → Authentication, Notifications, and Observability.

5. Enable a model

Go to Settings → Models and enable at least one model of the provider you configured. Starring one makes it the workspace default, preselected in every chat.

6. Add an MCP server

Navigate to MCP Servers in the left navigation, click Add MCP server, and either:

  • Click Add on one of the official servers (Notion, Linear, GitHub, HubSpot, BigQuery, DeepWiki, …), or
  • Click Add a custom server to register any remote MCP server by URL.

Add an MCP server from the catalog

See MCP Servers for the full registration flow and auth options.

7. Add a sandbox (optional)

If you want agents to run code, go to Settings → Sandboxes, click Add sandbox and register an OpenSandbox controller, a Daytona API key or a Cloud Run sandbox gateway. See Sandbox.

8. Create an agent

  1. Go to Agents → New agent
  2. Set a name and avatar (a Botmoji, an emoji and color, or an uploaded image)
  3. Write the instructions (system prompt)
  4. Click Add tool to bind one or more MCP servers — and a sandbox, if you added one
  5. Click Create agent, then Test in chat and send a message

Next steps

  • Build Agents — configuration, tools & permissions, sandbox, skills, subagents, triggers
  • Deploy & Configure — move from local to production, add user management, MCP servers, Slack, Langfuse
  • Tutorials — trigger agents from Slack, from HTTP, from schedulers, or inside a custom UI
Last updated on