Harmonyalpha
DocsSkillsAboutSource ↗Sign in
Harmony

Open source platform for agents. Bring your own agent. Harmony provides the substrate.

Project

  • Source
  • Docs
  • Architecture

Status

  • alpha · skeleton
  • No public API yet
© 2026 Groupanyplatform.groupany.ai

Get started

  • Get started

API reference

  • API overview
  • Authentication
  • Workspaces
  • Sessions, events, traces
  • Skills
  • Agents
  • Tools
  • Teams
  • Projects
  • A2A protocol
  • Evaluation
  • Deployments

Webhooks

  • Webhook Triggers

MCP

  • MCPdraft

CLI

  • CLIdraft

Database model

  • Database model

Research

  • LangChain — what we learn from them

Status

  • Status

Roadmap

  • Roadmap

Deployments

A deployment runs one agent's latest version in its own runtime — currently a Docker container on a Hetzner server in the workspace's compute pool. Deploying provisions real infrastructure (SSH → docker build / docker run, opening an inbound firewall port) and therefore costs money and is admin-only.

Each deployment:

  • mints a scoped bearer token (gha_…) — the agent runtime's own inbound credential, persisted as a workspace ApiKey row and returned once by the create call;
  • exposes the runtime at http://{server_ip}:{port} (default port 8080, auto-incremented to the next free port on that server);
  • has a stable deployment id. sync mutates the running deployment in place; rebuild produces a new deployment id (destroy + redeploy).

These endpoints take a Bearer API key (Authorization: Bearer $HARMONY_KEY). The chat proxy at the bottom is the exception — it is cookie-authenticated (see Sessions).

Endpoints

GET    /api/v1/workspaces/{slug}/agents/{name}/deployments        → list an agent's deployments
POST   /api/v1/workspaces/{slug}/agents/{name}/deployments        → 201, deploy latest version (admin)
DELETE /api/v1/workspaces/{slug}/agents/{name}/deployments?id=…   → tear down a deployment (admin)
POST   /api/v1/workspaces/{slug}/deployments/{id}/sync            → push prompt/config + restart (admin)
POST   /api/v1/workspaces/{slug}/deployments/{id}/rebuild         → full rebuild → NEW id (admin)
POST   /api/v1/workspaces/{slug}/deployments/{id}/sessions        → chat proxy (cookie auth)
GET    /api/v1/workspaces/{slug}/deployments/{id}/sessions        → chat proxy stream (cookie auth)

Deploy an agent

POST /api/v1/workspaces/{slug}/agents/{name}/deployments. Deploys the agent's isLatest version onto the workspace's compute. Every body field is optional — a bare POST {} auto-resolves the primary (or first) Hetzner compute provider, its first server, the primary (or first) LLM provider, and the next free port. The body is strict (unknown keys are rejected).

FieldTypeDefault
provider_idstringprimary Hetzner compute provider, else first
server_idintfirst server in that provider's pool
llm_provider_idstringprimary LLM provider, else first
portint (1–65535)8080, scanning to the next port free on the server
deployment_namestringthe agent's name

deployment_name must be a slug — it flows into remote SSH commands (container name harmony-{name} and paths). It is validated against:

^[a-z0-9][a-z0-9-]{0,62}$

(lowercase letters, digits, hyphens; 1–63 chars; must start alphanumeric).

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/agents/research-agent/deployments \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Response 201. bearer_token is shown once — store it now; the platform keeps only a hash. The LLM api_key is decrypted server-side and is never returned.

{
  "deployment": {
    "id": "dep_…",
    "container_name": "harmony-research-agent",
    "base_url": "http://203.0.113.10:8080",
    "host": "203.0.113.10",
    "port": 8080,
    "status": "ready",
    "provider": { "id": "prov_…", "name": "Hetzner Cloud" },
    "server": { "id": 12345678, "name": "harmony-1", "ip": "203.0.113.10" },
    "llm_provider": { "id": "prov_…", "name": "Anthropic", "adapter": "anthropic" }
  },
  "bearer_token": "gha_…"
}

Common failures (all validation_failed / not_found): no Hetzner compute provider configured, the provider's server pool is empty, no LLM provider configured, the chosen LLM provider has no api_key, or the agent has no deployable (latest) version.

List deployments

GET /api/v1/workspaces/{slug}/agents/{name}/deployments. Returns every deployment for the agent, newest first.

curl https://platform.groupany.ai/api/v1/workspaces/acme-research/agents/research-agent/deployments \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "deployments": [
    {
      "id": "dep_…",
      "status": "ready",
      "container_name": "harmony-research-agent",
      "base_url": "http://203.0.113.10:8080",
      "host": "203.0.113.10",
      "port": 8080,
      "created_at": "2026-05-30T11:04:22.000Z"
    }
  ]
}

Tear down a deployment

DELETE /api/v1/workspaces/{slug}/agents/{name}/deployments?id={deploymentId}. Stops and removes the runtime container on the server, revokes its bearer key, and deletes the row. id is required and must belong to this workspace and this agent.

curl -X DELETE "https://platform.groupany.ai/api/v1/workspaces/acme-research/agents/research-agent/deployments?id=dep_…" \
  -H "Authorization: Bearer $HARMONY_KEY"
{ "ok": true, "destroyed": "dep_…" }

Sync (push prompt + config)

POST /api/v1/workspaces/{slug}/deployments/{id}/sync. Pushes the agent's currently composed skill.md (including the latest _common baseline) plus config to the live deployment and restarts the container — no docker rebuild. Use after editing a prompt or the baseline. Keeps the same deployment id, server, and port. Body is ignored.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/deployments/dep_…/sync \
  -H "Authorization: Bearer $HARMONY_KEY"
{ "ok": true, "synced": "dep_…" }

Rebuild (full redeploy)

POST /api/v1/workspaces/{slug}/deployments/{id}/rebuild. Re-ships the runtime source and runs a full docker build / docker run on the server (unlike sync, which only pushes config). Use after a runtime code change. This is a destroy-and-redeploy on the same server/port, so it produces a NEW deployment id — update any stored reference to the returned id. Body is ignored.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/deployments/dep_old/rebuild \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "ok": true,
  "deployment": {
    "id": "dep_new",
    "base_url": "http://203.0.113.10:8080",
    "container_name": "harmony-research-agent"
  }
}

Chat with a deployed agent (proxy)

POST / GET /api/v1/workspaces/{slug}/deployments/{id}/sessions is the proxy that lets you talk to a deployed runtime while mirroring its events into a local Harmony Run — so deployed-agent runs land on Sessions / Threads and roll their cost up like in-platform runs.

Unlike the rest of this page, the proxy is cookie-authenticated (next-auth.session-token), not bearer. POST resolves/creates the thread, seeds the runtime with prior conversation, and forwards the turn to the runtime's /v1/sessions, returning { run, thread }. GET streams the runtime's SSE back while teeing recognised events into a local Run (response carries X-Harmony-Run-Id).

Full request/response shapes are documented in Sessions → Deployed-agent chat (proxy).