{
  "slug": "dagger-up-starts-module-defined-services-on-the-host-fa156746a332",
  "title": "dagger up starts module-defined services on the host",
  "tools": [
    "dagger"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-09T04:45:36.000Z",
  "announced_at": "2026-04-09T04:45:36.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Dagger module defines a service function marked with `@up` (or the SDK equivalent), run `dagger up` to start its services and expose their ports on the host. Configure `portMappings` when a toolchain service needs a different host port.",
    "examples": [
      "dagger up",
      "dagger up -l",
      "{\"toolchains\":[{\"name\":\"<toolchain>\",\"portMappings\":{\"<service>\":[\"<host-port>:<service-port>\"]}}]}"
    ],
    "gotchas": [
      "Version: v0.20.4",
      "Availability: experimental",
      "@up / `+up` (required): Mark a function returning `Service` for `dagger up`; SDK syntax varies.",
      "`portMappings`: Toolchain config object mapping service names to port mapping strings in `hostPort:servicePort` form. Configure when remapping is needed.",
      "`services()`: Workspace API that aggregates services across workspace modules, with include/exclude filtering.",
      "Prerequisite: Expose service functions returning `dagger.Service`; annotate them with `+up` or the SDK-equivalent annotation for discovery."
    ]
  },
  "why_it_matters": "Start a module-defined service on the host while developing a Dagger module.",
  "sources": [
    "https://github.com/dagger/dagger/releases/tag/v0.20.4",
    "https://github.com/dagger/dagger/pull/11959"
  ],
  "rank": 0.92038,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-4323971290995096-0:gate",
    "evidence_hash": "38a5e30e15c4b99da9fb1b6224089d4f6adf14141cdf123c6a6c8b3784c609b3"
  },
  "review": {
    "draft_hash": "82a93c818dbbcd2a12f3c4134443146d81b6afd685fa4cc0590510d93920e0f0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
