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 | bashThe 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:
| Variable | Default | Purpose |
|---|---|---|
HARNESST_URL | http://localhost:<port> | Public URL. An https:// URL turns secure cookies on. |
HARNESST_PORT | 9000 | Host port of the web app |
HARNESST_VERSION | latest | Image tag, e.g. 2026.11.1 |
HARNESST_INSTALL_DIR | ./harnesst | Where the files go |
HARNESST_START | ask, else 1 | Start the stack right away |
HARNESST_RESET | ask, else 0 | Delete existing data first |
curl -fsSL https://jr-k.github.io/harnesst/install.sh | HARNESST_URL=https://agents.example.com bashThen 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 harnesst2. Configure environment
Copy the example environment file:
cp .env.example .envThe 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:8000Optional:
# Tuning & debugging
LOG_LEVEL=INFO # set to DEBUG for verbose logs (MCP traces, etc.)
AGENT_RECURSION_LIMIT=100 # max LangGraph steps per agent invocationGoogle 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 devThis 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 devFor production (Docker Compose):
make build # or: docker compose build
make up # docker compose up -d4. 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.

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
- Go to Agents → New agent
- Set a name and avatar (a Botmoji, an emoji and color, or an uploaded image)
- Write the instructions (system prompt)
- Click Add tool to bind one or more MCP servers — and a sandbox, if you added one
- 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