Claude Code, Codex or another agent cannot reach Valakes, or it connects and its calls fail. Check these in order.

  1. Open Settings, then Agent API, and look at Let agents use Valakes through a local server on this computer. The API is off until you turn it on, and Valakes asks you to confirm.
  2. Open the Agents panel. If it says “API waiting for the vault to unlock”, press Unlock and start. Locking the screen or putting the computer to sleep locks the vault and stops the API, and the API does not start again by itself when the screen unlocks.
  3. Read the one line that the bridge program prints before it exits. “Valakes is not running” means you start the app and turn the API on. “Valakes is busy: try again in a moment” means wait a moment and start the agent again. A message about the token file means you create the agent in Valakes first, or check that the file is readable only by you.
  4. If the line says “Valakes could not unlock its vault: check Settings, Credentials and vault”, Valakes is running but unlocking its vault failed. Open Settings, Credentials and vault to see the state, or use any part of Valakes that needs the vault, such as opening a host with a stored credential, and try again. Unlock and start does not help here.
  5. If the line says “The server could not prove itself”, do not work around it. Check that Valakes is the process running and restart it. If it persists, rotate the agent’s token in the Agents panel, which stops the old token at once, and treat the token file as exposed.
  6. Run claude mcp list or codex mcp list. Both should list valakes as connected. Then ask the agent to call list_hosts: it sees only the hosts you opened to agents, and every host starts with agent access Off. Choose a level under Agent access in the host editor.
  7. If calls fail with “paused”, press Resume on the agent’s card. After the kill switch the API stays off, even after a restart: turn it on again, confirm, and resume each agent by hand. After Rotate access, restart the agent so it reads the new token file.
  8. If open_session fails, the host’s key may not be trusted yet. An agent can never accept a host key, so open the host yourself once and trust its key, and then the agent can connect.

Why this happens

An agent reaches Valakes only through a local server that is off until you turn it on, and every call needs that agent’s own token, as the Agents page explains. The bridge program checks that the server really knows the token before it sends it, so a failed proof stops the connection instead of being worked around.