Summary
Fresh API keys generated from Machines → Add Machine → Your Computer are rejected by the hosted API. The daemon starts, attempts registration, then exits with Invalid API key.
This was reproduced with multiple newly generated local-machine keys on July 14 and July 15, 2026. No key is included in this report.
Steps to reproduce
- Sign in to
https://agent-kanban.dev.
- Open Machines and select Add Machine.
- Select Your Computer (not Cloud Sandbox).
- Copy the newly generated
ak_... key.
- Run:
ak config set --api-url https://agent-kanban.dev --api-key '<fresh-key>'
ak start
- Check
ak status and the daemon log.
Actual behavior
The daemon initially reports that it started and detects both codex and hermes, but then exits. The daemon log contains:
A direct registration request to POST /api/machines with the same freshly generated key returns:
HTTP 401
{"error":{"message":"Invalid API key.","code":"INVALID_API_KEY"}}
The key copied from the website and the key saved by the CLI were compared by SHA-256 fingerprint and length, confirming there was no transfer or quoting mismatch.
Expected behavior
The local-machine key should authenticate, the daemon should remain running, and the machine should appear online on the Machines page.
Environment
- Agent Kanban CLI:
1.13.4
- macOS:
26.3.1 (arm64)
- Node.js:
v22.23.1
- npm:
10.9.8
- API URL:
https://agent-kanban.dev
- Detected providers:
codex, hermes
Summary
Fresh API keys generated from Machines → Add Machine → Your Computer are rejected by the hosted API. The daemon starts, attempts registration, then exits with
Invalid API key.This was reproduced with multiple newly generated local-machine keys on July 14 and July 15, 2026. No key is included in this report.
Steps to reproduce
https://agent-kanban.dev.ak_...key.ak statusand the daemon log.Actual behavior
The daemon initially reports that it started and detects both
codexandhermes, but then exits. The daemon log contains:A direct registration request to
POST /api/machineswith the same freshly generated key returns:The key copied from the website and the key saved by the CLI were compared by SHA-256 fingerprint and length, confirming there was no transfer or quoting mismatch.
Expected behavior
The local-machine key should authenticate, the daemon should remain running, and the machine should appear online on the Machines page.
Environment
1.13.426.3.1(arm64)v22.23.110.9.8https://agent-kanban.devcodex,hermes