schema = "m64/capsule@1" description = "DeepSeek Harness agent on GLM 5.3 Flash (OpenRouter). DeepSeek Harness 0.2.0-rc.2 (deepseek-ai/deepseek-harness), driven through its headless profile (dsh --profile headless --json; approvals off, the container is the sandbox), with GLM 5.3 Flash through OpenRouter ($0.04/$0.60 per M tokens, 1.3M context, tools + vision). Each session gets an empty directory; the agent can write and run code there, and every tool call is reported. No GPU. It needs openrouter.ai:443, so it runs with --allow-external-network (public internet, never your LAN; every connection is logged by m64 net); the m64 gate adds the OpenRouter key, so the agent never holds it." kinds = ["agent.session"] authors = ["dh7"] license = "apache-2.0" [hardware] platform = "linux-aarch64" [runtime] sandbox = "container" # No image: the Dockerfile builds on node:22-bookworm-slim pinned by digest. gpu = false internal_port = 9500 health = "/health" expected_load_seconds = 30 user = "1000:1000" [network] needs = ["openrouter.ai:443"] why = "the model runs on OpenRouter: your prompts, the files the agent reads and its replies go through openrouter.ai" [secrets] required = ["OPENROUTER_API_KEY"] # The key never enters the container: llm_relay.py calls http://openrouter.ai/api/v1 through # the gate, which adds the header and goes on over TLS. The capsule's env var holds only the # placeholder m64-injected:OPENROUTER_API_KEY. [[secrets.inject]] name = "OPENROUTER_API_KEY" host = "openrouter.ai" header = "Authorization" value = "Bearer {secret}"