AI agents work under your rules

Valakes has a local API that lets an AI agent such as Claude Code or Codex open sessions and run commands on the hosts you allow. The agent never sees a password, and changes wait for your approval.

Last updated

The Valakes window with the Agents panel open on the right. The agent claude-code waits for approval to run touch /tmp/valakes-shot-agent on a staging host, with the buttons Approve, Deny and Take over, and the list of recent calls below it. Open the picture at full size in a new tab

What the agent API is

The agent API is one set of tools that an agent calls to work on your servers: list hosts, open a session, run a command, read its output and the screen, send keys, and move files. It listens on 127.0.0.1 only, on a port the system picks at each start, and it is off until you turn it on.

Every call needs the token of one agent. No tool changes a policy, approves a request, reads the audit log or reveals a credential: to use a password, the agent writes {{cred:name}} and Valakes answers the prompt itself.

How it works

You turn the API on once, connect each agent with a wizard, and then open hosts to it one by one. Every host starts closed to agents. From then on the agent’s commands appear in Valakes as tabs marked with its name, and anything that needs you waits in the approval queue.

  1. Open Settings, Agent API, and turn on “Let agents use Valakes through a local server on this computer”.
  2. In the Agents panel press Connect an agent and give it a name you will recognise.
  3. The wizard shows the exact command or configuration for your client. Run it, then press Test connection.
  4. Open a host to the agent: in the host editor, under Agent access, choose a level above Off.
The Connect an agent wizard on its Test step. Both checks are ticked: Claude Code on laptop authenticated over MCP, and its first tool call, list_hosts, returned OK. Open the picture at full size in a new tab

Host policy and approvals

Each host has its own level of agent access, and a new host starts at Off, where it does not exist for any agent. Even the most open level holds high-risk commands for you. A held command waits on a card with Valakes’ own record of it, and you approve, deny or take it over.

Level What the agent can do without asking
Off Nothing. The host does not exist for the agent.
Read-only Run commands from a fixed allow-list of read commands. Anything else is refused.
Approve writes Read commands run. Anything else waits for your approval.
Full Commands run without asking, except those Valakes rates high risk, which still wait.

If you set this up for a team, letting coding agents work on servers without losing control follows an agent from its token to the audit log.

What it does not do

The agent API limits what an agent can ask for. It does not make a server account safe that is not, and it cannot hide a secret it does not know. Read-only is an allow-list, not a sandbox: it judges the text of one command, not what that command can reach on the server.

  • cat ~/.ssh/id_ed25519 is a read command too. For real protection, point the host at a restricted server user with no sudo and no keys in its home folder.
  • Masking knows only the values in the vault, so a secret in a .env file can appear in output.
  • A token file is readable by any program that runs as you. Revoke an agent you stop using.

Questions

Can a web page reach the agent API?

No. The server refuses any request with an Origin or Sec-Fetch header, which every browser adds, accepts only the exact host 127.0.0.1 with its port, and needs a bearer token that a page cannot read.

What does the kill switch do?

In one step it turns the agent API off, cancels every pending approval, ends every share, closes the sessions agents opened and pauses every agent. Your own tabs stay, and tokens stay valid with nothing listening.

Which clients can connect?

Claude Code and Codex connect over MCP through the bridge program valakes-mcp, and any other MCP client can start the same bridge. A harness of your own can call the same tools over REST.

With an AI agent

An agent works on your servers under the host policies and approvals you set. Setup for each client: Claude Code , Codex , Cursor , MCP clients , REST API .

The app is free.

Get notified at launch

macOS is coming to the Mac App Store. iOS and Android later.