Skip to content

SDKs: unify in-module and out-of-module clients #14041

Description

@shykes

Context

Dagger SDKs have 2 main functions:

  1. Help develop modules, by generating an adapter (sometimes called "runtime" or "entrypoint") that converts the developer's native code into something the engine can load.
  2. Generate clients to call other modules natively from a given language.

Generated clients can be useful to modules (when they need to call other modules), and also to out-of-module code (for example integration tests orchestrating their dependencies).

Problem

The current generation of SDKs can't generate a client that is usable both in-module and out-of-module. They generate a completely different client for each use case. This makes SDKs more complex, and their output harder to understand for developers.

Solution

Unify client generation, so that a single client can be used in-module and out-of-module.

This requires:

  1. For the engine: A new SDK interface
  2. For each SDK: a codegen change
  3. For each SDK: , a compatibility layer and/or migration for existing modules

Engine version

FIXME (a solution is known but not yet written here)

Dependency versions

FIXME (a solution is known but not yet written her)

  • How a dependency version is selected for each client
  • Lockfile lifecycle
  • Updates
  • Static vs dynamic linking (who controls the pins?)

Activity

  1. added this to the v1.0.0 milestone on Sep 3, 2026
  2. added theissue type on Sep 3, 2026
  3. eunomie commented on Sep 23, 2026

    @eunomie
    Member

    (assigning myself, working on python and java, will jump on the missing bits on go)

  4. self-assigned this
    on Sep 23, 2026
  5. eunomie commented on Oct 15, 2026

    @eunomie
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions