Containers¶
Kata releases publish ghcr.io/kenn-io/kata:<version> for Linux amd64 and
arm64. The image runs the kata binary directly as UID/GID 1000,
with KATA_HOME=/data and daemon start --foreground as its default command.
It needs no pre-start hook, entrypoint script, config seed, or .env rewriting.
Releases 0.19.0 and 0.20.0 did not publish an image. Image publication starts
with the first release after 0.20.0; until then, build one locally with
docker buildx bake image --load --set image.tags=kata:local from a Kata
checkout. Replace <version> below with a published version without the
leading v, for example 0.21.0.
Start a persistent service¶
Create an empty data directory writable by UID/GID 1000. A bind mount keeps
its host ownership: arrange that ownership before starting the container.
Then run:
docker run --name kata --restart unless-stopped \
-p 127.0.0.1:7777:7777 \
-v /absolute/path/kata-data:/data \
-e KATA_LISTEN=0.0.0.0:7777 \
-e KATA_TRUST_PRIVATE_NETWORK=1 \
-e KATA_WEB_PUBLIC_ORIGIN=http://127.0.0.1:7777 \
-e KATA_BACKUP_DIR=/data/backups \
-e KATA_TELEMETRY_ENABLED=off \
'ghcr.io/kenn-io/kata:<version>'
Open http://127.0.0.1:7777. On the first eligible non-loopback service start,
Kata creates /data/auth-token with mode 0600; read it as the data-directory
owner and use it for token login. Kata reuses it after a restart. Preserve the
volume and token when replacing the container with a newer image.
For a proxy deployment, set KATA_WEB_PUBLIC_ORIGIN=https://daemon.example and
publish the backend only on the trusted container network. The proxy must
preserve that exact Host and Origin. Plain HTTP beyond loopback needs the
explicit private-network trust shown above. Path-prefixed deployments are
unsupported. See hosted mode for proxy, probe, and shutdown
requirements.
The shared TCP listener serves both API and browser traffic.
KATA_WEB_LISTEN configures a separate browser listener when the API uses a
Unix socket; it does not open a second port alongside a shared TCP API.
On a host-network deployment, KATA_LISTEN=iface:overlay0:7777 selects an up
interface with exactly one eligible non-public IPv4 address and fails without
fallback if that interface is unavailable.
Supply secrets and embeddings¶
Mount a regular secret file owned by UID 1000 with mode 0600, then set
KATA_AUTH_TOKEN_FILE=/run/secrets/daemon-token. Read-only secret mounts work.
The selected credential order is inline > file > named environment variable;
a nonempty KATA_AUTH_TOKEN preserves its legacy override. A selected file
failure stops startup rather than falling back or minting a replacement.
See configuration for file limits
and the auto-token opt-out.
The daemon-mounted MCP settings below require Kata 0.21.0 or later.
Enable the daemon's /mcp endpoint with KATA_MCP_ENABLED=true, set its actor
with KATA_MCP_ACTOR=gateway-agent, choose its scope with
KATA_MCP_PROJECTS=spoke-project or KATA_MCP_ALL_PROJECTS=true, and mount a
separate bearer file at
KATA_MCP_TOKEN_FILE=/run/secrets/mcp-token. The same secret-file rules apply.
Give the gateway the proxied /mcp URL and this MCP bearer; see the
MCP reference.
Add the gateway's Host, for example kata:7777, to KATA_WEB_ALLOWED_HOSTS as described in [web].allowed_hosts.
To publish selected typed tools in the gateway's first catalog after every
restart, set
KATA_MCP_STARTUP_SECTIONS=issue_discovery,issue_mutation,coordination,issue_lifecycle,projects,docs
on the daemon container. Recreate the container with the new environment, then
reconnect the gateway or refresh its catalog. No loader priming hook is needed.
All section loaders remain available for progressive loading. An empty environment value preserves
[mcp].startup_sections; with neither setting, the first catalog contains only
loaders. See Startup sections for valid
IDs, capability requirements, and configuration errors.
Semantic search needs no seeded TOML. Set
KATA_SEARCH_EMBEDDINGS_BASE_URL=https://embedding.example/v1,
KATA_SEARCH_EMBEDDINGS_MODEL=example-model, and, when needed,
KATA_SEARCH_EMBEDDINGS_DIMS=1024 and
KATA_SEARCH_EMBEDDINGS_API_KEY_FILE=/run/secrets/embedding-key.
Role prompts and dimension requests use
KATA_SEARCH_EMBEDDINGS_DOCUMENT_PREFIX, _DOCUMENT_SUFFIX, _QUERY_PREFIX,
_QUERY_SUFFIX, and _REQUEST_DIMENSIONS; see the
environment reference.
The embedding file has the same owner-only requirements. Existing inline and
named-env embedding credentials retain their precedence and failure policy.
For a separate MCP HTTP service, override the image command with
mcp serve --all --http 0.0.0.0:8080 --trust-private-network
--http-token-file /run/secrets/mcp-token and configure its backend daemon
through KATA_SERVER and an explicit daemon credential. The inbound MCP token
is a separate secret; see the MCP reference.
Preserve backups¶
KATA_BACKUP_DIR=/data/backups enables immediate and daily full JSONL snapshots.
Use KATA_BACKUP_INTERVAL and KATA_BACKUP_RETAIN for positive duration
overrides. Copy snapshots off the volume for protection against volume loss.
JSONL does not preserve mounted secrets, config.toml, or /data/auth-token;
keep those separately. See backup and restore.
Replace the image to upgrade the container. Release publication and any app store cutover happen after the upstream release; this repository does not publish releases from local workflows.