These docs track the main branch and may describe unreleased features. The stable documentation lives at docs.docker.com.

Morse

Overview

Morse is a private inference API for open-weight models, including DeepSeek, GLM, Qwen, Kimi, Gemma and Llama, through an OpenAI-compatible API. Every model in its catalog is served with zero data retention, and some also run in a trusted execution environment (TEE). Docker Agent includes Morse as a built-in provider in its embedded provider catalog.

Setup

  1. Create an API key in the Morse console.

  2. Add credits to the account in the console before the first call. A valid key on an unfunded account returns 402 insufficient_balance.

  3. Set the environment variable:

    export MORSE_API_KEY=your-api-key
    

Usage

Inline Syntax

Prefix a Morse model ID with morse/:

agents:
  root:
    model: morse/deepseek/deepseek-v4.1-flash
    description: Assistant using Morse
    instruction: You are a helpful assistant.

Morse model IDs contain a slash themselves. Docker Agent splits the inline reference at the first slash, so everything after morse/ is passed to Morse unchanged.

Named Model

models:
  morse_model:
    provider: morse
    model: deepseek/deepseek-v4.1-flash
    max_tokens: 8192

agents:
  root:
    model: morse_model
    description: Assistant using Morse
    instruction: You are a helpful assistant.

When Morse is selected automatically from available credentials, the default model is deepseek/deepseek-v4.1-flash. Model IDs are passed through as supplied.

Available Models

The model list is public, so no key is needed to read it:

curl https://inference.trymorse.ai/v1/models

Use an ID from the response unchanged as the model value, for example z-ai/glm-5.3, qwen/qwen3-coder or moonshotai/kimi-k3.1-pro. Each entry lists its supported_parameters, and its input_modalities when available. The same list is on the models page.

Morse is absent from Docker Agent's embedded models.dev catalog. Docker Agent does not import pricing, context limits or attachment capabilities from Morse's model list. Attachment detection falls back to text-only, so image and PDF attachments are dropped, with a warning logged once per model. If the model you chose lists image in input_modalities, set models.<name>.capabilities; see Attachment Capability Overrides:

models:
  morse_vision:
    provider: morse
    model: deepseek/deepseek-v4.1-flash
    capabilities:
      image: true

How It Works

Morse is an entry in Docker Agent's built-in provider catalog (pkg/model/provider/catalog/providers.json) that uses the existing OpenAI implementation:

See the Morse API docs for request options.

Example: Code Assistant

agents:
  coder:
    model: morse/qwen/qwen3-coder
    description: Code assistant using Morse
    instruction: |
      You are an expert programmer.
      Write clean code and follow language best practices.
    toolsets:
      - type: filesystem
      - type: shell
      - type: think