How do I let Claude Code work on my server without giving it the password?
Claude Code connects to Valakes, and Valakes makes the SSH connection. The agent never gets the passwords or keys you saved in Valakes, and a host stays closed to it until you open it.
Last updated
Claude Code does not open an SSH connection of its own. It calls ten tools that Valakes serves on your computer, and Valakes opens the session, answers password prompts and holds risky commands for your approval. This guide covers what you decide after the client is connected. The pictures show a test setup with made-up host names. Letting coding agents work on servers without losing control covers the levels and approvals for every agent, not only Claude Code.
Steps
-
Connect Claude Code first
The setup has its own page: Connect Claude Code to your SSH servers. Follow it to turn on the agent API, add the agent and run the command the wizard shows. Copy that command from the wizard, not from a web page, because it holds your own agent handle.
The wizard ticks "authenticated over MCP" when Claude Code makes its first call, as in the picture. The wizard knows this only because Valakes saw the call. At this point Claude Code still has no server to work on: if it calls
list_hosts, it gets the hosts you opened to agents, and you have opened none. -
Open one host and keep the level low
Every host starts with agent access Off, so the host does not exist for the agent. In the host editor, under Agent access, choose a level for the one host you want it on. The picture shows the editor with Off selected.
Read-only runs commands from a short list of read commands. Approve writes runs read commands and asks you about everything else. Full runs commands of Low and Medium risk and asks about High risk. Choosing Approve writes or Full asks for a native confirmation, and a level above Read-only on a production host shows a warning.
Read-only is not a sandbox, so read the limits below before you point it at a server that matters. An agent can never accept a host key. If the key is not trusted yet, the call fails. Open the host yourself once, compare the fingerprint and trust it, and then the agent can connect.
-
Bind a saved password to a tool
Claude Code never needs the password itself. When a command needs a saved password, it writes the placeholder
{{cred:name}}and Valakes answers the program's prompt. The agent can list the names of the credentials bound to a host, never their values, and what it reads back has your saved values replaced by***.A credential works for an agent only if its binding has Auto-fill on and its value is at least 6 bytes long. Run psql on a server without typing the password shows how to bind one.
On a production host, a command that uses a credential always waits for your approval, even at the level Full. So does a production credential used on any host.
-
Approve what it asks
A call that the host policy does not allow without asking appears in the approval queue of the Agents panel (
Ctrl+Shift+J,Cmd+Shift+Jon macOS). The card shows the exact command, the host, the directory it will run in and the risk Valakes found. The text is Valakes' own record of the command, never text the agent wrote about it.Approve runs the command once. Deny refuses it. Take over moves it into your composer so that you run it yourself. The agent never gets the Run anyway button of the risk card: a High-risk command is approve or deny. In the picture, claude-code waits to run a command on a staging host with the policy Approve writes. An unanswered request expires after 300 seconds by default.
-
Pause it or switch it off
On the agent's card, Pause makes its next call fail with "paused", and Revoke ends its access for good. At the bottom of the panel, Pause all agents pauses every agent. The Kill switch turns the API off, cancels every pending approval and closes the sessions that agents opened. Your own tabs stay.
To see what an agent did afterwards, read what an AI agent ran on your servers.
The screenshots show Valakes built from commit 0b8738d, taken on 25 November 2026.
What it does not do
Valakes hides only the values it knows. A password in a .env file, or a token that a service prints, is visible to Claude Code if it can read it. Whatever Claude Code reads, including command output, goes to its own model provider under that provider's terms. Valakes cannot control that.
Read-only is a list of read commands, not a sandbox. cat ~/.ssh/id_ed25519 and grep -r password /etc both pass it and hand whatever your SSH account can read to the agent. For real protection, point the host at a server account with no write access that matters, no sudo and no keys or secrets in its home folder.
A program that runs as you on this computer can read the token file. Revoke an agent you stop using, and rotate its access if you think the file was exposed. The kill switch does not undo what a command already did: a command started with nohup or in tmux keeps running on the server after its session closes.
Read next
The app is free.
Get notified at launchmacOS is coming to the MacĀ AppĀ Store. iOS and Android later.