Command-line client for the Zero Trust services of gematik's Telematikinfrastruktur 2.0. It covers what an application needs to reach one of them, end to end:
- ZETA Guard, the Zero Trust layer in front of the services — the full OAuth2 client lifecycle (dynamic client registration, SMC-B authentication via a gematik Konnektor or a local PKCS#12 keystore, DPoP-bound tokens, refresh and revocation), plus the ASL transport the guard requires.
- PoPP — Proof-of-Patient-Presence tokens from an eGK, read through a Konnektor, a local PC/SC reader, or a card simulator.
- VSDM 2.0 — reading a patient's Versichertenstammdaten, with conditional revalidation against the service.
- TI service discovery — resolving an insurer's endpoint from the environment's catalog.
- Konnektor / TI-Gateway — card and SDS operations against the box itself.
On top of that it ships a curl-like HTTP client and a JSON-over-WebSocket client that attach the bearer token transparently, a local warm-session daemon, and a load-test harness.
The binary is called zeta after ZETA Guard, which it started out as a client for.
- Quick start
- Commands
- Options reference
- Configuration file:
zeta.yaml - Logging & output
- SDK version
- Install
- Development
| Quick start | End-to-end: configure the Konnektor, log in, read an SMC-B, get a PoPP token, read a VSDM bundle. |
zeta serve |
The local warm-session daemon and its HTTP API. |
zeta probe |
The permanently running auth-flow prober: metrics and traces via OTLP, Docker. |
zeta stress |
Load-testing ZETA Guard with a fleet of SMC-B clients. |
.kon format |
The Konnektor configuration file. |
For a full end-to-end walkthrough (configure the .kon, read the SMC-B ICCSN, log in, get a
PoPP token), see docs/quickstart.md.
# 1. See what a Zeta-Guard-protected resource advertises (no auth needed)
zeta discover https://popp.dev.poppservice.de
# 2. Log in (register + authenticate) using your SMC-B via the Konnektor
zeta login https://popp.dev.poppservice.de \
--scope popp \
--auth-method connector \
--auth-connector-telematik-id 5-2-1234567
# 3. Check local SDK state
zeta status
# 4. Call the protected resource — the bearer token is added for you
zeta http https://popp.dev.poppservice.de/some/api --scope popp
# 5. Get a PoPP token by driving the Konnektor's eGK
zeta popp connectorFor headless / no-Konnektor environments, substitute the auth options:
zeta login https://popp.dev.poppservice.de \
--scope popp \
--auth-method p12 \
--auth-p12-file ./smcb.p12(--auth-p12-alias defaults to alias, --auth-p12-password to 00 — see the PKCS#12 method table.)
Lifecycle & state
zeta discover URL— fetch + cache protected-resource and AS metadata (RFC 9728). No auth.zeta status [URL]— show cached SDK state (registration + token validity). Read-only.zeta register URL— dynamic client registration with the AS.zeta authenticate URL --scope …— exchange SMC-B subject token → access + refresh token.zeta login URL --scope …— idempotentregister+authenticate.zeta logout URL— revoke tokens; keep client registration.zeta forget URL/--all— wipe local state for one resource, or the whole profile.
Calling protected resources
zeta http URL— HTTP request to a Zeta-protected resource (curl-like).zeta ws URL— WebSocket to a Zeta-protected resource, round-tripping JSON from stdin.zeta vsdm get [POPP-TOKEN]— read a patient's VSDM bundle straight from a PoPP token: derives the environment and insurer from the token, resolves the VSDM endpoint via the TI service-discovery catalog, and fetches the bundle (scopevsdservice). Token falls back toZETA_POPP_TOKEN;--endpoint URLoverrides the catalog routing with an explicit VSDM endpoint (base URL only).--cache-db FILEturns the mandatoryIf-None-Matchinto a real conditional request, so an unchanged record is revalidated instead of re-transferred.zeta vsdm cache {stats,purge}— inspect or clear that cache file. See docs/storage.md for everything the CLI keeps on disk.
Konnektor & PoPP
zeta connector inspect— SDS / product info from the Konnektor.zeta connector get cards— list cards visible in the Konnektor's terminals.zeta connector configs— list discoverable.konfiles.zeta connector use <name>— set the default.konconfig for later commands.zeta popp connector— get a PoPP token via the Konnektor's eGK flow.zeta popp kartos— get a PoPP token via a kartos smartcard simulator.zeta popp standard— get a PoPP token from a physical eGK the client reads directly over PC/SC (contact, or contactless via PACE).zeta popp readers— list local PC/SC reader slots, the cards in them, and their PACE support.
Tooling
zeta version— print the CLI andzeta-sdkversion.zeta serve— run a local daemon holding warm sessions for one TI environment, with an HTTP API for VSDM reads and PoPP minting. See docs/serve.md.zeta probe— run forever, probing the login and token-refresh flows of one or more TI environments' endpoints on a schedule; pushes metrics and traces via OTLP. See docs/probe.md.zeta stress …— load-test ZETA Guard with a fleet of SMC-B-backed clients. See docs/stress.md.
Examples for the less obvious ones:
# Status of a single resource as JSON (good for jq pipelines)
zeta status https://popp.dev.poppservice.de -o json | jq
# HTTP POST with body and custom header
zeta http https://api.example.org/v1/foo \
--scope foo -X POST -d '{"x":1}' -H 'X-Trace-Id: dev-42'
# Larger bodies from a file (@FILE) or stdin (@-), like curl
zeta http https://api.example.org/v1/foo --scope foo \
-H 'Content-Type: application/json' -d @body.json
# WebSocket with PoPP header inlined; messages from stdin
zeta ws wss://service.example.org/stream --scope foo --popp-token "$TOKEN" <<<'{"hello":1}'
# Same in PowerShell — note the $env: prefix; bare $ZETA_POPP_TOKEN won't reach the JVM
# $env:ZETA_POPP_TOKEN = (zeta popp connector)
# zeta http https://api.example.org/v1/foo --scope foo
# List .kon files the CLI can resolve by short name
zeta connector configs
# Wipe everything in a profile (asks for confirmation on a TTY; --force skips it)
zeta forget --all --profile stagingAll options below are sticky — they're accepted at any depth: zeta -v http … and zeta http -v … both work. The same goes for -c/--connector-config, --profile, etc.
Values resolve in this precedence (high → low):
CLI flag → environment variable → zeta.yaml → built-in default.
PowerShell users:
$ZETA_POPP_TOKEN = …sets a PowerShell variable that child processes never see. Use$env:ZETA_POPP_TOKEN = …(same for any otherZETA_*env var) so the JVM picks it up.
Available on every command.
| Option | Env var | Default |
|---|---|---|
-v, --verbose (repeatable) |
— | warn (0). -v=info, -vv=debug, -vvv=trace |
--connect-timeout=<seconds> |
ZETA_CONNECT_TIMEOUT |
5 |
--request-timeout=<seconds> |
ZETA_REQUEST_TIMEOUT |
30 |
-k, --insecure |
ZETA_INSECURE |
false (TLS verified) |
--asl-prod |
ZETA_ASL_PROD |
false (non-prod) |
--ca-cert=<file> (repeatable) |
ZETA_CA_CERT |
JVM default trust store |
-o, --output-format=text|json|raw |
ZETA_OUTPUT_FORMAT |
text |
-f, --file=<file> |
ZETA_CONFIG |
auto-discovered zeta.yaml |
--no-config |
ZETA_NO_CONFIG |
false (auto-discovery on) |
-c, --connector-config=<name> |
ZETA_CONNECTOR_CONFIG |
default |
--proxy=<url> |
ZETA_PROXY |
— |
--proxy-user=<user> |
ZETA_PROXY_USER |
— |
--proxy-password=<password> |
ZETA_PROXY_PASSWORD |
— |
--trace — print in-process span tree at end of command |
ZETA_TRACE |
false |
-v is the one exception to the env-var rule: Clikt's repeat-count flag doesn't pair with a single env value. Use -v/-vv/-vvv on the CLI, or set verbose: in zeta.yaml.
--proxy accepts http[s]://[user:pass@]host[:port]. Use --proxy-user / --proxy-password to keep credentials out of the URL. It covers ZETA traffic only — the ZETA SDK (discovery, registration, tokens, ASL), PoPP, VSDM and the service-discovery catalog. The Konnektor and the Basis-Consumer never use it; see below.
A Konnektor or Basis-Consumer usually sits on the local network while the ZETA services need the forward proxy, so the servers described by a .kon file are reached directly, whatever --proxy says. If one of them does need a proxy, set the JVM's standard proxy properties through ZETA_OPTS:
| Property | Meaning |
|---|---|
https.proxyHost, https.proxyPort |
proxy for https:// targets |
http.proxyHost, http.proxyPort |
proxy for http:// targets (e.g. OCSP responders) |
http.nonProxyHosts |
hosts reached directly, |-separated, * as wildcard; applies to http and https |
These properties apply to the whole process. Where --proxy is given it wins for ZETA traffic:
| Configured | ZETA, PoPP, VSDM, service discovery | Konnektor, Basis-Consumer |
|---|---|---|
| nothing | direct | direct |
--proxy |
--proxy |
direct |
ZETA_OPTS -D… |
the -D proxy, minus nonProxyHosts |
the -D proxy, minus nonProxyHosts |
| both | --proxy |
the -D proxy, minus nonProxyHosts |
-v logs the route taken to each .kon server (Route to https://…: direct or via host:port). Proxies set this way cannot take credentials; --proxy-user / --proxy-password only apply to --proxy. zeta.yaml cannot carry JVM properties — they have to exist before the JVM starts.
How to set ZETA_OPTS (or JAVA_OPTS, which both launchers read as well):
-
macOS / Linux (bash, zsh) — for one command, or persistently in
~/.zshrc/~/.bashrc. Single quotes keep|and*away from the shell:ZETA_OPTS='-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|*.intern' zeta … export ZETA_OPTS='-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|*.intern'
-
Homebrew — as above; the Homebrew
zetawrapper passes the environment through. -
Windows cmd —
zeta.batinserts%ZETA_OPTS%into thejavacommand unquoted, so a|would be taken as a pipe. Quote thenonProxyHostsoption inside the value and the whole assignment around it;setxstores it for new windows:set "ZETA_OPTS=-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 "-Dhttp.nonProxyHosts=localhost|*.intern"" setx ZETA_OPTS "-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 \"-Dhttp.nonProxyHosts=localhost|*.intern\""
-
Windows PowerShell — the same inner quotes in a single-quoted string; the second line stores it for the user:
$env:ZETA_OPTS = '-Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 "-Dhttp.nonProxyHosts=localhost|*.intern"' [Environment]::SetEnvironmentVariable('ZETA_OPTS', $env:ZETA_OPTS, 'User')
-
Docker —
docker run -e ZETA_OPTS='…'orenvironment:in Compose. UseZETA_OPTSrather thanJAVA_OPTS, which the image uses for its memory settings. -
Kubernetes — an
enventryZETA_OPTSin the container spec.
To check what the JVM received, add -XshowSettings:properties and run zeta version; the three properties are listed on stderr:
ZETA_OPTS='-XshowSettings:properties -Dhttp.nonProxyHosts=localhost|*.intern' zeta version 2>&1 | grep nonProxyHostsState (registrations, tokens) is kept in a per-profile SQLite database at $XDG_CONFIG_HOME/telematik/zeta/<profile>.storage.db, scoped internally per resource + scope-set.
Available on: discover, status, register, authenticate, login, logout, forget, http, ws, vsdm get, popp ….
| Option | Env var | Default |
|---|---|---|
--profile=<name> |
ZETA_PROFILE |
default |
Required by: register, authenticate, login, logout, http, ws, vsdm get, popp ….
Pick a method via --auth-method, then supply that method's options.
| Option | Env var | Default |
|---|---|---|
--auth-method=connector|consumer|p12|db |
ZETA_AUTH_METHOD |
required |
Signs the SMC-B token via a Konnektor described by --connector-config. Pick exactly one card identifier (stability order, best → worst):
| Option | Env var | Default |
|---|---|---|
--auth-connector-telematik-id=<tid> |
ZETA_AUTH_CONNECTOR_TELEMATIK_ID |
— |
--auth-connector-card-iccsn=<iccsn> |
ZETA_AUTH_CONNECTOR_CARD_ICCSN |
— |
--auth-connector-card-handle=<handle> |
ZETA_AUTH_CONNECTOR_CARD_HANDLE |
— |
The Konnektor itself is described by a .kon file (JSON). The CLI resolves
--connector-config=<name> (env ZETA_CONNECTOR_CONFIG) to <name>.kon, looking in the
current directory first, then $XDG_CONFIG_HOME/telematik/connectors/. zeta connector use <name> records a sticky default so later commands can omit the flag, and zeta connector configs lists the files it can resolve by short name.
${VAR} placeholders are substituted from the environment before the file is parsed, so
secrets stay out of the file. See docs/kon-format.md for the full
format specification.
mTLS via a PKCS#12 client certificate, with a pinned trust anchor (RU):
{
"url": "https://konnektor.example.com:8443",
"mandantId": "M1",
"workplaceId": "W1",
"clientSystemId": "C1",
"userId": "U1",
"credentials": {
"type": "pkcs12",
"data": "<base64-encoded PKCS#12 container>",
"password": "00"
},
"env": "ru",
"expectedHost": "konnektor.example.com",
"trustStore": ["${KONNEKTOR_CA_DER_BASE64}"]
}Dev Konnektor over basic auth (RU), TLS verification off for self-signed setups:
{
"url": "https://10.10.10.5:443",
"mandantId": "M1",
"workplaceId": "W1",
"clientSystemId": "C1",
"credentials": {
"type": "basic",
"username": "konnektor",
"password": "${KONNEKTOR_PASSWORD}"
},
"env": "ru",
"insecureSkipVerify": true
}Signs the SMC-B token via a gematik Basis-Consumer, described by a .kon with "product": "consumer"
and selected like a Konnektor's (--connector-config). A Basis-Consumer cannot list its identities,
so one is named by its card handle only. See docs/basis-consumer.md.
| Option | Env var | Default |
|---|---|---|
--auth-consumer-card-handle=<handle> |
ZETA_AUTH_CONSUMER_CARD_HANDLE |
HSM |
For headless / no-Konnektor environments. Signs locally with a .p12 keystore.
| Option | Env var | Default |
|---|---|---|
--auth-p12-file=<file> |
ZETA_AUTH_P12_FILE |
required |
--auth-p12-alias=<name> |
ZETA_AUTH_P12_ALIAS |
alias |
--auth-p12-password=<password> |
ZETA_AUTH_P12_PASSWORD |
00 |
Signs with an SMC-B identity from a zeta-stress identity database (SQLite, built by zeta stress import-identities). For headless / bulk runs.
| Option | Env var | Default |
|---|---|---|
--auth-db=<file> |
ZETA_AUTH_DB |
stress.db |
--auth-db-telematik-id=<tid> |
ZETA_AUTH_DB_TELEMATIK_ID |
required — except zeta vsdm get, which derives it from the token's actorId |
| Option | Env var | Default |
|---|---|---|
-s, --scope=<name> (repeatable, required) — authenticate / login only |
ZETA_SCOPE |
— |
--reveal — expose redacted secrets; on the action verbs also appends the full cached entry |
ZETA_REVEAL |
false |
| Option | Env var | Default |
|---|---|---|
--all — wipe entire profile |
ZETA_FORGET_ALL |
false |
--force — skip interactive confirmation |
ZETA_FORGET_FORCE |
false |
| Option | Env var | Default |
|---|---|---|
-X, --request=<method> |
ZETA_HTTP_METHOD |
GET (or POST if -d set) |
-H, --header=<name: value> (repeatable) |
ZETA_HTTP_HEADER |
— |
-d, --data=<body> |
ZETA_HTTP_DATA |
— |
-i, --include — print status + headers |
ZETA_HTTP_INCLUDE |
false |
-s, --scope=<name> (repeatable, required) |
ZETA_SCOPE |
— |
-p, --popp-token=<token> |
ZETA_POPP_TOKEN |
— |
| Option | Env var | Default |
|---|---|---|
-H, --header=<name: value> (repeatable) |
ZETA_WS_HEADER |
— |
-s, --scope=<name> (repeatable, required) |
ZETA_SCOPE |
— |
-p, --popp-token=<token> |
ZETA_POPP_TOKEN |
— |
| Option | Env var | Default |
|---|---|---|
POPP-TOKEN (positional, optional) |
ZETA_POPP_TOKEN |
— |
--endpoint=<url> |
— | — (resolve via catalog) |
--profile-version=<version> |
— | 1.1 |
-H, --header=<name: value> |
ZETA_VSDM_HEADER |
— |
-i, --include |
ZETA_VSDM_INCLUDE |
off |
--no-cache |
ZETA_NO_CACHE |
off |
--cache-db=<file> |
ZETA_CACHE_DB |
— (no caching) |
--cache-max-entries=<n> |
ZETA_CACHE_MAX_ENTRIES |
10000 |
--cache-max-age-days=<days> |
ZETA_CACHE_MAX_AGE_DAYS |
180 |
The POPP-TOKEN argument accepts the token itself or a path to a file holding one (auto-detected). Everything else is derived from the token: the environment (from the issuer), the insurer's VSDM endpoint (from the TI service-discovery catalog), the vsdservice scope, and — for --auth-method db — the signing identity (from the token's actorId). --endpoint overrides the catalog routing with an explicit VSDM endpoint (base URL only — scheme + host[:port], any path ignored). --profile-version sets the profileVersion query parameter sent to the endpoint (default 1.1; pass --profile-version 1.0 for the older profile). -H, --header overrides (or adds) headers on the inner VSDM request — it replaces the built-in Accept / If-None-Match / PoPP defaults by name (case-insensitive) and does not affect the outer ASL/CBOR transport. Supply a profile and an auth method as for zeta http.
Caching. The VSDM service requires an If-None-Match header — the built-in default is an all-zero etag meaning "no known version", which never matches, so every read transfers the whole bundle. Point --cache-db at a file and the command instead sends the etag it stored for that patient record, and a 304 is answered from the cache. Nothing expires: the service decides on every read whether the copy still holds. The key is the reading SMC-B (actorId) + endpoint + insurer (IKNR) + insurant (KVNR) + profileVersion + media type — so several identities can share one file, each with its own entries.
--cache-db names one cache file shared by every cached kind — VSDM bundles are the first. Today it therefore holds Versichertenstammdaten and the PoPP tokens they were read with, unencrypted, mode 0600 (its -wal/-shm sidecars included) — pick its location deliberately, and note that a cache-db: key in zeta.yaml enables it just as the flag does. Keying on the reader gives attribution and per-identity purging, not isolation — the file is shared, so give each tenant its own where that matters. Deleting the file is always safe; zeta vsdm cache stats and zeta vsdm cache purge [--actor TID] [--insurer IKNR] [--insurant KVNR] [--tokens] [--all] do it selectively. --no-cache reads in full and keeps nothing, and an explicit -H 'If-None-Match: …' bypasses the cache entirely: your condition goes up untouched and the response comes back untouched. docs/storage.md covers this file alongside everything else the CLI writes to disk.
Automation output. The default output prints just the bundle. -i, --include instead prints the whole response as an HTTP message — the status line, one header per line, a blank line, then the body — so a single pipe carries the response headers (ETag, the VSDM PZ / Prüfziffer, …) alongside the bundle:
HTTP/1.1 200 OK
ETag: "a1b2c3"
PZ: <pruefziffer>
Content-Type: application/fhir+json
{ "resourceType": "Bundle", … }
On a cache hit the status line still reads 200 and the body is the cached bundle, while ETag and PZ come from the live response — the PZ is per-read and is never cached. Two headers name what happened: middleware-cache: hit and middleware-upstream-status: 304.
Parse it in bash by splitting on the first blank line — read a header, or take the body:
resp=$(zeta vsdm get … -i)
etag=$(printf '%s\n' "$resp" | sed -n 's/^ETag: //Ip') # a header value
pz=$(printf '%s\n' "$resp" | sed -n 's/^PZ: //Ip') # the Prüfziffer
body=$(printf '%s\n' "$resp" | sed '1,/^$/d') # everything after the blank line
printf '%s\n' "$body" | jq . # the FHIR bundleA long-running service (see docs/probe.md); needs an --auth-method. Everything below is also settable through zeta.yaml.
| Option | Env var | Default |
|---|---|---|
--probe-env ENV[,ENV…] (one or more of dev, ref, test, prod; one identity for all) |
ZETA_PROBE_ENV |
dev |
--endpoint URL (repeatable; env var: whitespace/comma list; belongs to the first --probe-env) |
ZETA_PROBE_ENDPOINTS |
— |
--endpoint-scope SCOPE (repeatable; i-th scope for the i-th endpoint, counts must match) |
ZETA_PROBE_ENDPOINT_SCOPES |
— |
--endpoint-name SLUG (repeatable, positional like the scope; optional as a whole) |
ZETA_PROBE_ENDPOINT_NAMES |
host name |
--endpoint-type TYPE (repeatable, positional like the scope; optional as a whole) |
ZETA_PROBE_ENDPOINT_TYPES |
the slug |
--type-label TYPE:KEY=VALUE (repeatable; env var: list; labels every target of that type) |
ZETA_PROBE_TYPE_LABELS |
— |
--no-catalog |
ZETA_PROBE_NO_CATALOG |
off |
--popp-service-url URL (single --probe-env only) |
ZETA_POPP_SERVICE_URL |
derived from the env |
--login-interval DURATION (0/off disables) |
ZETA_PROBE_LOGIN_INTERVAL |
3h |
--refresh-interval DURATION |
ZETA_PROBE_REFRESH_INTERVAL |
5m |
--catalog-interval DURATION |
ZETA_PROBE_CATALOG_INTERVAL |
1h |
--backoff-max DURATION (cap of the hold-off for failing targets; 0/off disables) |
ZETA_PROBE_BACKOFF_MAX |
1h |
--probe-timeout DURATION |
ZETA_PROBE_TIMEOUT |
2m |
--otlp-endpoint URL (metrics and traces; OTLP/HTTP) |
OTEL_EXPORTER_OTLP_ENDPOINT |
required |
--otlp-header KEY=VALUE (repeatable) |
OTEL_EXPORTER_OTLP_HEADERS |
— |
--otlp-protocol http/protobuf (gRPC is not supported) |
OTEL_EXPORTER_OTLP_PROTOCOL |
http/protobuf |
--health-host ADDR / --health-port PORT (/healthz, /readyz; port 0 disables) |
ZETA_PROBE_HEALTH_HOST / ZETA_PROBE_HEALTH_PORT |
0.0.0.0 / 8080 |
Durations take 30s, 5m, 3h, 1h30m or ISO PT3H. Metrics and traces are pushed via OTLP; OTEL_METRIC_EXPORT_INTERVAL sets the push interval (default 30000 ms), and every other OTEL_* variable (certificates, mTLS, compression, resource attributes, sampler) is honoured unchanged.
| Option | Env var | Default |
|---|---|---|
--service-url=<url> |
ZETA_POPP_SERVICE_URL |
popp dev service URL |
--connection=contact|contactless |
ZETA_POPP_CONNECTION |
contact |
EGK_HANDLE is positional and optional — auto-picked when exactly one eGK is visible.
| Option | Env var | Default |
|---|---|---|
-i, --image=<path> |
ZETA_POPP_KARTOS_IMAGE |
— |
--kartos-bin=<path> |
ZETA_KARTOS_BIN |
kartos on PATH |
--service-url=<url> |
ZETA_POPP_SERVICE_URL |
popp dev service URL |
Drive the Standard flow (cardConnectionType=*-standard) against a physical eGK that the client reads directly (javax.smartcardio) — no connector and no simulator. Each scenario APDU is transmitted straight to the card. Requires a PC/SC stack (built in on macOS/Windows; pcscd on Linux).
| Option | Env var | Default |
|---|---|---|
--connection=contact|contactless |
ZETA_POPP_CONNECTION |
contact |
--can=<digits> |
ZETA_POPP_CAN |
— (required for contactless) |
--reader=<name> |
ZETA_POPP_READER |
the first slot holding a card (a warning names the others) |
--wait=<seconds> |
— | 0 (fail immediately when no card) |
--service-url=<url> |
ZETA_POPP_SERVICE_URL |
popp dev service URL |
Picking a reader. A reader can publish more than one slot (a dual-interface reader publishes one per interface), and some drivers report a phantom card on the idle slot — so zeta probes by connecting rather than trusting isCardPresent. Without --reader it uses the first slot that answers and logs a warning naming any other slot that also held a card. Run zeta popp readers to see the slots and pick a --reader substring:
$ zeta popp readers
READER CARD PACE ATR
Identive Identive CLOUD 4700 F Dual Interface Reader no software -
Identive Identive CLOUD 4700 F Dual Interface Reader 01 yes software 3bd097ff81b1fe451f072b
PACE says which implementation a contactless card in that slot would use: reader when the reader advertises PC/SC FEATURE_EXECUTE_PACE and runs the protocol in firmware, software when zeta runs it, - when the reader would not answer the capability query.
Contactless (PACE). A contactless eGK only answers inside a PACE channel, so --connection contactless needs the card's CAN — the digits printed on the card:
zeta popp standard --connection contactless --can 123456zeta serve does not offer this: a daemon sees a different eGK on every request and each one has its own CAN, so --popp-card standard is contact-only there.
The channel is opened by the reader itself where the reader supports it (class-3 "comfort" readers advertising PC/SC FEATURE_EXECUTE_PACE run the protocol in firmware, and the CAN never reaches the host). Otherwise zeta runs PACE-ECDH-GM-AES-CBC-CMAC-128 itself and wraps every scenario APDU in secure messaging. Both paths are transparent to the PoPP service beyond the contactless-standard cardConnectionType.
Remote card terminals remain a future transport under the same standard verb.
Note on repeatable options. --ca-cert, --header, and --scope accept multiple values on the CLI (repeat the flag) and in zeta.yaml (YAML list), but their env var holds only a single value. Use the CLI flag or YAML when you need more than one.
zeta.yaml lets you persist defaults so you don't repeat flags. Keys are the long option names without leading dashes (e.g. --auth-method → auth-method).
--no-config / ZETA_NO_CONFIG |
-f / ZETA_CONFIG |
Loaded |
|---|---|---|
| no | no | ./zeta.yaml if present, else $XDG_CONFIG_HOME/telematik/zeta/zeta.yaml if present, else none |
| no | yes | the named file (must exist; missing → usage error) |
| yes | no | none — built-in defaults only |
| yes | yes | error: mutually exclusive |
First hit wins — files are never merged. When -f is passed (or ZETA_CONFIG is set) the file must exist; a missing path fails fast with a usage error rather than silently falling through. Without -f, auto-discovery applies and is happy to find no file at all.
-f is the docker-compose idiom for switching between scenarios: keep one zeta.yaml per environment, point at one with the flag.
# ~/.config/telematik/zeta/zeta-popp-ru.yaml
profile: popp-ru # SDK state lands in popp-ru.storage.db
auth-method: connector
auth-connector-telematik-id: "${SMCB_TID_RU}"
scope: [popp]zeta -f ~/.config/telematik/zeta/zeta-popp-ru.yaml http https://popp.dev.poppservice.de/some/api
# Or pin per-shell:
export ZETA_CONFIG=~/.config/telematik/zeta/zeta-popp-ru.yaml
zeta http https://popp.dev.poppservice.de/some/api
zeta popp connectorPair each scenario file with its own profile: so SDK state (registrations, tokens) is also isolated — popp-ru writes to popp-ru.storage.db, popp-tu writes to popp-tu.storage.db, no cross-contamination.
Single file only — there is no docker-compose-style multi--f merging today.
For a totally clean run with no config at all, see
--no-configbelow.
Use --no-config (or ZETA_NO_CONFIG=1) when you need built-in defaults only — no project-local ./zeta.yaml, no XDG fallback, no -f. Useful for:
- Reproducing an issue without your
zeta.yamlinterfering. - One-off ad-hoc commands from an arbitrary directory.
- CI runs where output must be predictable regardless of the surrounding environment.
zeta --no-config status # ignores any zeta.yaml on disk
ZETA_NO_CONFIG=1 zeta status # env-var equivalent--no-config is mutually exclusive with -f / ZETA_CONFIG. Passing both is treated as a mistake — the CLI exits with Error: --no-config is mutually exclusive with -f / ZETA_CONFIG rather than silently picking one. Only 1, true, or yes (case-insensitive) activate the env var; 0/empty leave it off.
- Top-level keys apply to any command that defines that option.
- Subcommand-scoped keys (
<subcommand>: { … }) only apply when that subcommand runs. Scoped wins over top-level. ${VAR}placeholders are expanded against the process environment before parse — secrets and per-host overrides stay out of the file.- Repeatable options take a YAML list.
The shape is the same as a TOML file: flat key–value pairs at the top, named sections for scope. Two rules:
- Top-level kebab keys are flag names verbatim.
auth-method↔--auth-method. The hyphen is part of the option name, not a path separator. - Nested mappings are subcommand scope, not name hierarchy.
http: { header: [...] }means "the--headerflag when invoked withzeta http". Nesting depth mirrors the command path:popp.connector.connectionis the--connectionflag underzeta popp connector.
So auth-method and popp.connector.connection look different on the page because they are different things: a flag name vs. a command-scoped flag. The two never mix — a key never means "namespaced option".
# Defaults for every command
profile: dev
connector-config: my-kon
auth-method: connector
auth-connector-telematik-id: "${SMCB_TID}"
# Per-subcommand overrides
http:
header:
- "X-Trace-Id: ${USER}-dev"
include: true
ws:
header:
- "X-WS-Trace: ${USER}-dev"
popp:
connector:
connection: contactlessWith this in ./zeta.yaml, the example from Quick start shrinks to:
zeta login https://popp.dev.poppservice.de --scope popp
zeta http https://popp.dev.poppservice.de/some/api --scope popp
zeta popp connectorCLI flag > env var > zeta.yaml value > built-in default. So a YAML value never overrides what you typed at the prompt, but it does override what the binary ships with as default.
A sticky option (e.g. --connector-config) declared at a parent depth (zeta --connector-config=X ...) gets re-read by the child from the same YAML key and may be overwritten. Workaround: pass sticky overrides at the deepest depth (zeta connector inspect --connector-config=X).
- Logs go to stderr; data goes to stdout — safe for shell pipelines.
- Default log level is
warn. Bump with-v(info),-vv(debug),-vvv(trace). -o jsonemits parseable JSON without colour when stdout is piped.-o raw(forhttp) prints the body verbatim with no framing.discover,register,authenticate,login, andlogoutprint a compact result — a green✓/ red✗verdict with the endpoint, scopes, auth server, and resulting status. The verdict is the operation's own success test, not just the raw status (e.g.loginis✓once an access or refresh token exists). Add--revealfor the full cached entry, or usezeta statusfor the detailed view.- Colour follows TTY detection and respects
NO_COLOR/FORCE_COLOR.
The CLI is built against a single zeta-sdk version (1.3.0), pinned in
gradle/libs.versions.toml. zeta version prints it:
$ zeta version
zeta-cli 0.9.0
zeta-sdk 1.3.0Override the pin at build time with -PzetaSdkVersion=<tag> (e.g. latest from mavenLocal).
Requires JDK 21. The Gradle wrapper auto-provisions one if needed.
brew install gematik/tap/zeta
brew upgrade zetaInstalls the latest release with openjdk@21 as its JDK. Installs from spilikin/tap stay at 0.15.0; switch with brew uninstall zeta && brew install gematik/tap/zeta.
Run straight from sources via :cli:run — the ./zeta-dev wrapper forwards args verbatim:
./zeta-dev version
./zeta-dev discover https://popp.dev.poppservice.deThe release .zip / .tar.gz holds zeta-<version>/bin/zeta (zeta.bat on Windows) and the jars in lib/. Unpack each release into a fresh directory rather than over an older one. On Windows the launcher loads the jars through lib/zeta-launcher.jar, whose manifest lists exactly the jars of that release, so its command line stays short at any install path and stray jars in lib/ are ignored.
./gradlew :cli:installDist
./cli/build/install/zeta/bin/zeta version
export PATH="$PWD/cli/build/install/zeta/bin:$PATH" # optionaljust install # builds tarball, materialises a private tap, brew install
zeta versionInstalls into $(brew --prefix)/bin and pins JAVA_HOME to Homebrew's openjdk@21.
Common tasks are wired up in the justfile:
just install # build and brew-install locally from Formula/zeta.rb
just demo # render demo.gif from demo.tape (requires vhs)By default the CLI builds against the version of de.gematik.zeta:zeta-sdk-jvm pinned in gradle/libs.versions.toml (currently 1.3.0, resolved from Maven Central). To swap in a local SDK build during development without editing the catalog, override the Gradle property at the command line:
# Use whatever you publishToMavenLocal'd as `latest`
./gradlew :cli:installDist -PzetaSdkVersion=latest
# Or any other tag living in your ~/.m2/repository/de/gematik/zeta/zeta-sdk-jvm/
./gradlew :cli:installDist -PzetaSdkVersion=1.0.2-localSet it persistently in ~/.gradle/gradle.properties (zetaSdkVersion=latest) to avoid passing the flag every time — Gradle will still let project- or command-line values override that.
zeta version prints the resolved SDK version so you always know which one shipped in the binary.
The release tarball (./gradlew :distTar) ships two entry points from one archive — bin/zeta (the CLI) and bin/zeta-stress (the load-test tool) — over a shared lib/.
Copyright 2026 gematik GmbH
EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
See the LICENSE for the specific language governing permissions and limitations under the License
- Copyright notice: Each published work result is accompanied by an explicit statement of the license conditions for use. These are regularly typical conditions in connection with open source or free software. Programs described/provided/linked here are free software, unless otherwise stated.
- Permission notice: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- The copyright notice (Item 1) and the permission notice (Item 2) shall be included in all copies or substantial portions of the Software.
- The software is provided "as is" without warranty of any kind, either express or implied, including, but not limited to, the warranties of fitness for a particular purpose, merchantability, and/or non-infringement. The authors or copyright holders shall not be liable in any manner whatsoever for any damages or other claims arising from, out of or in connection with the software or the use or other dealings with the software, whether in an action of contract, tort, or otherwise.
- The software is the result of research and development activities, therefore not necessarily quality assured and without the character of a liable product. For this reason, gematik does not provide any support or other user assistance (unless otherwise stated in individual cases and without justification of a legal obligation). Furthermore, there is no claim to further development and adaptation of the results to a more current state of the art.
- Gematik may remove published results temporarily or permanently from the place of publication at any time without prior notice or justification.
- Parts of this software and - in isolated cases - content such as text or images may have been developed using the support of AI tools. They are subject to the same reviews, tests, and security checks as any other contribution. The functionality of the software itself is not based on AI decisions.
We take open source license compliance very seriously. We are always striving to achieve compliance at all times and to improve our processes. This software is currently being tested to ensure its technical quality and legal compliance. Your feedback is highly valued. If you find any issues or have any suggestions or comments, or if you see any other ways in which we can improve, please reach out to us via GitHub Issues.
